| Commit message (Collapse) | Author | Age | Lines | |
|---|---|---|---|---|
| * | meson/PKGBUILD/changelog: prepare for 1.2.01.2.0 | Daniel Eklöf | 2020-03-06 | -6/+11 |
| | | ||||
| * | changelog: add all major changes for 1.2.0 | Daniel Eklöf | 2020-03-06 | -0/+29 |
| | | ||||
| * | README: fix backtick | Daniel Eklöf | 2020-03-06 | -1/+1 |
| | | ||||
| * | changelog: template | Daniel Eklöf | 2020-03-06 | -0/+9 |
| | | ||||
| * | PKGBUILD: only do a PGO build if we have a Wayland session | Daniel Eklöf | 2020-03-06 | -7/+10 |
| | | ||||
| * | README: mention that configurable keyboard shortcuts are coming | Daniel Eklöf | 2020-03-06 | -2/+3 |
| | | ||||
| * | README: "server" -> server/daemon | Daniel Eklöf | 2020-03-06 | -1/+1 |
| | | ||||
| * | README: remove 'todo' - let's just ignore this for now | Daniel Eklöf | 2020-03-06 | -1/+1 |
| | | ||||
| * | Merge branch 'csd' | Daniel Eklöf | 2020-03-06 | -266/+1595 |
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | This implements client side decorations and have been tested on GNOME and Weston. They also render correctly in KWin, but cannot be used to move or resize the window. I believe this is a bug in KWin's handling of sub-surfaces positioned outside the parent surface. Luckily, KWin uses server side decorations. This merge also contains a lot of bug fixes related to resizing and rendering of sub-surfaces in general (i.e. the scrollback search box). | |||
| | * | wayland: remove debug logs | Daniel Eklöf | 2020-03-06 | -4/+0 |
| | | | ||||
| | * | wayland: log: say 'requesting' instead of 'referring' client/server decorations | Daniel Eklöf | 2020-03-06 | -1/+1 |
| | | | ||||
| | * | render: never render CSD and/or search box "immediately" | Daniel Eklöf | 2020-03-06 | -81/+118 |
| | | | | | | | | | | | | | | | | | | | | | Handle the CSDs and the search box the same way we handle the main grid; when we need to redraw them, call render_refresh_{csd,search}(). This sets a flag that is checked after each FDM iteration. All actual rendering is done here. This also ties the commits of the Wayland sub-surfaces to the commit of the main surface. | |||
| | * | render: csd: improved look of minimize/maximize/close buttons | Daniel Eklöf | 2020-03-06 | -20/+117 |
| | | | | | | | | | | | | | | | | | | | | | * minimize: a downward triangle * maximize (window): an upward triangle * maximize (already maximized): a hollow square * close: a filled square The glyphs are now rendered using the default background color instead of hardcoded to black. | |||
| | * | render: CSD: use *default* foreground, not current foreground | Daniel Eklöf | 2020-03-06 | -1/+1 |
| | | | | | | | | | | | | | | | Applications may temporarily change the foreground color. Don't use this when rendering the CSD title bar - use the default foreground (i.e the default default one, or the one configured by the user in footrc). | |||
| | * | sixel: don't try to dirty an un-allocated row | Daniel Eklöf | 2020-03-06 | -0/+5 |
| | | | | | | | | | This may happen e.g. when resizing a grid | |||
| | * | config: change default CSD button width from 22 -> 26 | Daniel Eklöf | 2020-03-06 | -3/+3 |
| | | | ||||
| | * | render: oops, add missing '}' | Daniel Eklöf | 2020-03-03 | -1/+1 |
| | | | ||||
| | * | render: configure a clip region to exclude the grid margins | Daniel Eklöf | 2020-03-03 | -0/+5 |
| | | | | | | | | | | | | | This ensures content in the last column doesn't flow over into the margins (where they are typically never erased, unless the window is resized). | |||
| | * | wayland: set window geometry to exclude the invisible CSD borders | Daniel Eklöf | 2020-03-03 | -63/+28 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | But it *does* include the title bar. This simplifies the 'adjustment' needed to be done to the configured window size. It also fixes a number of issues: * the compositor will now properly snap the window to screen edges (before, there was an empty space between the edge and the window - the CSD border). * This also removes the need for the mutter 'commit' workaround. We must be doing something right now. | |||
| | * | render: csd: render surfaces in reverse order | Daniel Eklöf | 2020-03-03 | -2/+2 |
| | | | | | | | | | | | This ensures the inner most child surfaces are rendered and comitted before the parent surfaces. | |||
| | * | render: csd: assert surfaces exist before trying to use them | Daniel Eklöf | 2020-03-03 | -0/+3 |
| | | | ||||
| | * | render: csd: center 'close' button's cross | Daniel Eklöf | 2020-03-03 | -2/+2 |
| | | | ||||
| | * | render: csd: don't even try to render CSDs when we're in fullscreen mode | Daniel Eklöf | 2020-03-03 | -0/+3 |
| | | | ||||
| | * | render: don't try to render CSDs when the terminal is shutting down | Daniel Eklöf | 2020-03-03 | -1/+9 |
| | | | ||||
| | * | input: do a full CSD repaint on pointer motion over CSD buttons | Daniel Eklöf | 2020-03-03 | -31/+12 |
| | | | | | | | | | This fixes repainting issues on mutter. | |||
| | * | wayland: don't destroy keyboard/pointer if they haven't been removed | Daniel Eklöf | 2020-03-03 | -14/+22 |
| | | | | | | | | | | | | | | | | | | | | | When the seat capabilities change, we used to destroy all pointers and keyboards, and then re-creating them as necessary. This caused a crash on mutter - probably because we removed a keyboard device the compositor had already sent an event for (or was about to). Now, we only destroy and create devices when it's needed. | |||
| | * | quirks: add shortcut for flipping all CSD surfaces sync/desync state | Daniel Eklöf | 2020-03-03 | -20/+28 |
| | | | ||||
| | * | config: CSD borders are always invisible | Daniel Eklöf | 2020-03-03 | -56/+10 |
| | | | | | | | | | | | That is, remove all configuration options and always draw them fully transparent. | |||
| | * | render: csd: maximize: change default color to a lighter green | Daniel Eklöf | 2020-03-02 | -2/+2 |
| | | | ||||
| | * | render: csd: close: change default color to a lighter blue | Daniel Eklöf | 2020-03-02 | -2/+2 |
| | | | ||||
| | * | render: csd: minimize: change default color to a lighter blue | Daniel Eklöf | 2020-03-02 | -2/+2 |
| | | | ||||
| | * | render: initial minimize/maximize/close glyphs | Daniel Eklöf | 2020-03-02 | -5/+75 |
| | | | | | | | | | | | These are really ugly, but is meant to get something up there, that can be polished afterwards. | |||
| | * | csd: initial implementation of minimize/maximize/close buttons | Daniel Eklöf | 2020-03-02 | -21/+268 |
| | | | ||||
| | * | README: CSDs have been implemented | Daniel Eklöf | 2020-03-02 | -12/+0 |
| | | | ||||
| | * | config: no need to free 'line' between each call to getline() | Daniel Eklöf | 2020-03-02 | -14/+6 |
| | | | | | | | | | | | | | getline() will re-use the allocated line if it large enough, or resize it otherwise. Thus there's no need to free it and set it to NULL between each call. | |||
| | * | doc: foot.5: describe what each section in the configuration file does | Daniel Eklöf | 2020-03-02 | -0/+6 |
| | | | ||||
| | * | footrc: default geometry has changed to 700x500 | Daniel Eklöf | 2020-03-02 | -2/+2 |
| | | | ||||
| | * | input: don't change xcursor if active surface isn't the main grid | Daniel Eklöf | 2020-03-02 | -1/+1 |
| | | | ||||
| | * | quirks: log when applying weston sub-surface desync quirk | Daniel Eklöf | 2020-03-02 | -0/+6 |
| | | | ||||
| | * | slave: set $SHELL when command line is a shell listed in /etc/shells | Daniel Eklöf | 2020-03-02 | -0/+51 |
| | | | ||||
| | * | config: prefer $SHELL over /etc/passwd | Daniel Eklöf | 2020-03-02 | -10/+15 |
| | | | | | | | | | | | If the user hasn't configured a shell in footrc, use $SHELL. Only if that variable isn't set do we use the shell from /etc/passwd. | |||
| | * | terminal: workaround founds with negative line gaps | Daniel Eklöf | 2020-03-02 | -1/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | Some fonts, even monospaced ones, have a negative line gap (line height < ascent + descent). Using the font's line height as cell height will result in some glyphs overflowing into the cell above or below. Workaround by using which ever value is the largest: the line height or ascent + descent. | |||
| | * | wayland: log whether CSDs or SSDs are used at info level, not debug | Daniel Eklöf | 2020-03-02 | -2/+2 |
| | | | ||||
| | * | config: make CSD user configurable | Daniel Eklöf | 2020-03-02 | -107/+210 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The user can now configure the following: * Whether to prefer CSDs or SSDs. But note that this is only a hint to the compositor - it may deny our request. Furthermore, not all compositors implement the decoration manager protocol, meaning CSDs will be used regardless of the user configuration (GNOME/mutter being the most prominent one). * Title bar size and color, including transparency * Border size and color, including transparency Also drop support for rendering the CSDs inside the main surface. | |||
| | * | input: raise window 'move' timeout to 200ms | Daniel Eklöf | 2020-03-01 | -1/+1 |
| | | | | | | | | | | | 100ms was a bit low and prevented double-tap on touchpads from working. | |||
| | * | render: csd: don't try to render a zero-width/height border | Daniel Eklöf | 2020-03-01 | -0/+5 |
| | | | ||||
| | * | term: visual_focus_{in,out}: use quirk_weston_subsurface_desync_{on,off} | Daniel Eklöf | 2020-03-01 | -28/+29 |
| | | | ||||
| | * | search: don't mark the entire sub-surface as opaque | Daniel Eklöf | 2020-03-01 | -5/+0 |
| | | | ||||
| | * | search: enable/disable weston sub-surface desync quirk when rendering search box | Daniel Eklöf | 2020-03-01 | -6/+26 |
| | | | ||||
| | * | render: search: add todo to only position sub-surface on a window resize | Daniel Eklöf | 2020-03-01 | -0/+1 |
| | | | ||||
| | * | render: search: mark visible portion of sub-surface opaque | Daniel Eklöf | 2020-03-01 | -0/+47 |
| | | | ||||
| | * | render: search: kwin has problems with a resizing/repositioned sub-surface | Daniel Eklöf | 2020-03-01 | -9/+15 |
| | | | | | | | | | | | So, make it equal to the window size, and make the non-used area fully transparent. | |||
| | * | render: csd: switch-based CSD positioning | Daniel Eklöf | 2020-03-01 | -29/+35 |
| | | | ||||
| | * | search: update search box before we update the main grid | Daniel Eklöf | 2020-03-01 | -1/+1 |
| | | | ||||
| | * | shm: log 'size' when failing to fallocate() | Daniel Eklöf | 2020-03-01 | -1/+1 |
| | | | ||||
| | * | input: use xdg_toplevel_resize_edge enum type | Daniel Eklöf | 2020-03-01 | -2/+2 |
| | | | ||||
| | * | render: csd: split up positioning from rendering | Daniel Eklöf | 2020-02-29 | -75/+136 |
| | | | ||||
| | * | render: don't update last 'un-maximized' size when in fullscreen | Daniel Eklöf | 2020-02-29 | -1/+1 |
| | | | ||||
| | * | wayland: always update window->is_fullscreen, not just when using CSDs | Daniel Eklöf | 2020-02-29 | -1/+1 |
| | | | ||||
| | * | wayland: don't resize when we're not mapped anywhere | Daniel Eklöf | 2020-02-29 | -0/+3 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Normally, we resize and update the font's DPI whenever our window enters or leaves an output. This is since a change in the outputs we're mapped on means the scale factor to use, or the DPI to use for the fonts may have changed. However, a special case is when we're removed from the last output. This should only happen at shutdown, when we're un-mapping ourselves. In this case, we typically don't have a access to e.g. the PTMX fd (often, the reason we're shutting down is because the client exited). This resulted in (harmless) error messages when emitting the TIOCSWINSZ event. Since we're shutting down anyway, we can simply skip the resize and everything. This gets rid of the error message, and also means we're shutting down faster. | |||
| | * | input: start window move right away if user starts dragging the window | Daniel Eklöf | 2020-02-29 | -0/+19 |
| | | | | | | | | | | | | | | | | | | | | | | | | | When the user left-clicks the title-bar, we start a timer. When the timer has elapsed, we initiate a 'move' operation. However, if the user clicked, and then started dragging right away, there was a very visible lag since we waited for the timeout before starting the move. Now, on a pointer motion event we detect a running 'move' timer, and abort it and instead start the 'move' operation right away. | |||
| | * | input: fix 'unused variable' warning (release builds) | Daniel Eklöf | 2020-02-29 | -1/+2 |
| | | | ||||
| | * | input: cleanup | Daniel Eklöf | 2020-02-29 | -73/+71 |
| | | | ||||
| | * | input: don't update xcursor on keyboard enter/leave | Daniel Eklöf | 2020-02-29 | -4/+2 |
| | | | | | | | | | | | | | | | | | | | I'm not sure why I added this in the first place... our cursor doesn't depend on keyboard focus. Furthermore, with CSDs, we may get keyboard enter events for the CSD surfaces, and these should definitely *not* update the xcursor as if it was inside the main surface. | |||
| | * | input: csd: add a small delay before initiating a move | Daniel Eklöf | 2020-02-29 | -5/+43 |
| | | | | | | | | | | | This ensures the user has time to double-click to toggle the maximized state. | |||
| | * | wayland: remove all usages of wayl_terminal_from_surface() | Daniel Eklöf | 2020-02-29 | -19/+6 |
| | | | | | | | | | Use the 'user data' pointer from the wayland surface instead. | |||
| | * | wayland: store pointer to window instance in all surfaces | Daniel Eklöf | 2020-02-29 | -1/+10 |
| | | | ||||
| | * | input: reset mouse state on pointer leave | Daniel Eklöf | 2020-02-29 | -0/+3 |
| | | | ||||
| | * | input: toggle maximized state when double-clicking the title bar | Daniel Eklöf | 2020-02-29 | -12/+11 |
| | | | ||||
| | * | input: handle double/triple click state regardless of surface | Daniel Eklöf | 2020-02-29 | -21/+23 |
| | | | ||||
| | * | render: resize: redraw search box, if visible | Daniel Eklöf | 2020-02-29 | -1/+7 |
| | | | ||||
| | * | render: search: fix off-by-one error in number of visible characters | Daniel Eklöf | 2020-02-29 | -2/+2 |
| | | | ||||
| | * | render: wl_subsurface_set_position() uses un-scaled coordinates | Daniel Eklöf | 2020-02-29 | -3/+3 |
| | | | | | | | | | | | This fixes an issue where the CSDs and the search box was incorrectly positioned when output's scale != 1. | |||
| | * | config: change default geometry from 800x600 -> 700x500 | Daniel Eklöf | 2020-02-29 | -4/+4 |
| | | | | | | | | | | | | | | | | | If the display resolution *is* 800x600, using this size is bad since there will typically be panels and other things on the screen too. Not that 800x600 is something we expect to see in real life, but may happen on virtual displays. | |||
| | * | render: csd: bump title bar height from 20 -> 26 | Daniel Eklöf | 2020-02-29 | -1/+1 |
| | | | ||||
| | * | input: handle CSD border corners correctly | Daniel Eklöf | 2020-02-29 | -31/+88 |
| | | | | | | | | | That is, change to correct cursor, and do resize correctly. | |||
| | * | term: loop through all sub-surfaces when switching sync/desync mode | Daniel Eklöf | 2020-02-29 | -4/+5 |
| | | | ||||
| | * | render: csd: use a struct for positioning information | Daniel Eklöf | 2020-02-28 | -5/+10 |
| | | | ||||
| | * | render: resize: change 'resize' log from info to debug | Daniel Eklöf | 2020-02-28 | -4/+4 |
| | | | ||||
| | * | render: CSDs: transparent borders | Daniel Eklöf | 2020-02-28 | -3/+6 |
| | | | | | | | | | | | This gives the illusion that window is border-less, but still gives us surfaces the user can grab to resize the window. | |||
| | * | render: resize: exclude CSD borders when loading default geometry in maximized mode | Daniel Eklöf | 2020-02-28 | -6/+17 |
| | | | ||||
| | * | render: CSDs: don't render borders (only title bar) in maximized mode | Daniel Eklöf | 2020-02-28 | -1/+13 |
| | | | ||||
| | * | wayland: configure: work around GNOME/mutter weirdness | Daniel Eklöf | 2020-02-28 | -4/+34 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When resizing the window under mutter, mutter seems to expect a configure ack *and* a surface commit *right* away, or things get out of sync. Unlike kwin, which is requires a commit for each configure ack, but is fine with having the commit arrive later (after we've rendered it), mutter is not. I even tried delaying the configure ack until just before the commit, but still no go. So for now, detect when we're running under mutter and always do a surface commit right away. This can *not* be done on any other compositor as it breaks the CSD and main surface synchronization; we've resized the CSDs, but not the main surface. I.e. this *should* not work, but for some reason is the *only* way to make things work on mutter. Interestingly, doing it any other way on mutter causes visual glitches; window jumping around when resizing, or de-synchronized CSDs/main surface. | |||
| | * | wayland: fix window size adjustment for CSDs placed outside main surface | Daniel Eklöf | 2020-02-28 | -10/+18 |
| | | | | | | | | | | | | | | | * Do this both in XDG configure, and when the decoration manager switches between CSDs/SSDs at run-time. * Exclude CSD borders when we're maximized | |||
| | * | wayland: warn when compositor doesn't implement the decoration manager interface | Daniel Eklöf | 2020-02-28 | -0/+1 |
| | | | ||||
| | * | wayland: request server side decorations | Daniel Eklöf | 2020-02-28 | -2/+0 |
| | | | ||||
| | * | wayland: drop required wl_output interface version from 3 -> 2 | Daniel Eklöf | 2020-02-28 | -1/+1 |
| | | | | | | | | | We don't need version 3, and mutter 3.34 only implements version 2. | |||
| | * | render: color_hex_to_pixman_with_alpha(): handle alpha == 0 (transparent) | Daniel Eklöf | 2020-02-28 | -0/+3 |
| | | | ||||
| | * | terminal: error out when we fail to load the primary font | Daniel Eklöf | 2020-02-28 | -1/+2 |
| | | | ||||
| | * | config: add default font when using the default config | Daniel Eklöf | 2020-02-28 | -1/+1 |
| | | | | | | | | | | | | | When there is no configuration file, and we're using the default configuration, we accidentally jumped pasted the code that ensures we have at least "monospace" in the font list. | |||
| | * | render: remember, and use, last unmaximized size | Daniel Eklöf | 2020-02-26 | -10/+28 |
| | | | | | | | | | | | | | | | | | When the compositor wants us to decide the size (it sends a configure event with width/height == 0), then use the last unmaximized size, if there is one. If there isn't one, use the size from the user configuration. | |||
| | * | wayland: once again switch to positioning CSDs outside the main surface | Daniel Eklöf | 2020-02-26 | -1/+1 |
| | | | ||||
| | * | render: resize: adjust user configured size for CSDs | Daniel Eklöf | 2020-02-26 | -0/+5 |
| | | | ||||
| | * | wayland: document what FOOT_CSD_OUTSIDE does | Daniel Eklöf | 2020-02-26 | -0/+5 |
| | | | ||||
| | * | wayland: switch back to positioning CSDs inside the main surface | Daniel Eklöf | 2020-02-26 | -1/+1 |
| | | | ||||
| | * | wayland: resize main surface when enabling CSDs runtime | Daniel Eklöf | 2020-02-26 | -1/+11 |
| | | | | | | | | | | | | | | | | | | | | | When we position CSDs inside the main surface, and CSDs are switched on run-time, we need to force a grid resize, since the actual window content will now be smaller. Alternative solution: call resize with width/height increased, to account for the CSDs. This would increase the window size, but would keep the grid size fixed. | |||
| | * | input: temporary code to trigger maximize/minimize | Daniel Eklöf | 2020-02-26 | -0/+12 |
| | | | ||||
| | * | wayland: track window maximized state | Daniel Eklöf | 2020-02-26 | -2/+7 |
| | | | ||||
| | * | render: csd: fix typo when CSDs are positioned *inside* main surface | Daniel Eklöf | 2020-02-26 | -1/+1 |
| | | | ||||
| | * | wayland: don't adjust size when CSDs are positioned inside main surface | Daniel Eklöf | 2020-02-26 | -0/+5 |
| | | | ||||
