| Commit message (Collapse) | Author | Age | Lines | ||
|---|---|---|---|---|---|
| ... | |||||
| | * | | quirks: weston_csd_{on,off}: don't do anything in fullscreen mode | Daniel Eklöf | 2020-03-12 | -0/+4 | |
| | | | | |||||
| | * | | Merge branch 'master' into bindings | Daniel Eklöf | 2020-03-10 | -9/+21 | |
| | |\ \ | |/ / |/| | | |||||
| * | | | changelog: updated to mention fix for #3 | Daniel Eklöf | 2020-03-10 | -0/+4 | |
| | | | | | | | | | | | | | I really need to learn to update the changelog **with** the fix... | ||||
| * | | | terminal: appky scale factor when force-resizing on font reload | Daniel Eklöf | 2020-03-10 | -1/+1 | |
| | | | | | | | | | | | | | | | | | | | | | | If we don't, we'll end up e.g. increasing the window size when moving the window between outputs with different scaling. Closes #3 | ||||
| * | | | client: log path we actually tried to connect to (and failed) | Daniel Eklöf | 2020-03-10 | -1/+1 | |
| | | | | |||||
| * | | | client: update --server-socket usage to mention XDG_SESSION_ID | Daniel Eklöf | 2020-03-10 | -1/+1 | |
| | | | | |||||
| * | | | wayland: remove empty line | Daniel Eklöf | 2020-03-10 | -1/+0 | |
| | | | | |||||
| * | | | shm: we don't really handle SHM failures, so just abort() | Daniel Eklöf | 2020-03-10 | -0/+2 | |
| | | | | |||||
| * | | | shm: mmap returns MAP_FAILED, so use that as guard value | Daniel Eklöf | 2020-03-10 | -2/+2 | |
| | | | | |||||
| * | | | shm: set pool_fd=1 after closing it, to avoid double-closing on error | Daniel Eklöf | 2020-03-10 | -1/+1 | |
| | | | | |||||
| * | | | shm: try to mmap with MAP_UNINITIALIZED | Daniel Eklöf | 2020-03-10 | -1/+2 | |
| | | | | | | | | | | | | | | | | This flag is expected to be ignored on most systems, but can't hurt to try. | ||||
| * | | | shm: log errno error message too | Daniel Eklöf | 2020-03-10 | -1/+1 | |
| | | | | |||||
| * | | | changelog: update | Daniel Eklöf | 2020-03-09 | -0/+6 | |
| | | | | |||||
| | * | | doc/foot.1: keyboard shortcuts: add pointer to foot(5) | Daniel Eklöf | 2020-03-09 | -2/+4 | |
| | | | | |||||
| | * | | doc/foot.5: document key bindings | Daniel Eklöf | 2020-03-09 | -0/+47 | |
| | | | | |||||
| | * | | main: free config if we fail to load the config | Daniel Eklöf | 2020-03-09 | -1/+3 | |
| | | | | |||||
| | * | | config: load custom key bindings | Daniel Eklöf | 2020-03-09 | -22/+74 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | This adds parsing of a new section - "key-bindings" - where the user can configure the key bindings on the form "action=combo1 .. comboN" The validity of the key combinations are checked with the default XKB keymap. | ||||
| | * | | input: parse_key_binding_for_action: export function | Daniel Eklöf | 2020-03-09 | -4/+9 | |
| | | | | |||||
| | * | | input: parse_key_binding_for_action: repair LOG_DBG statement | Daniel Eklöf | 2020-03-09 | -1/+1 | |
| | | | | |||||
| | * | | Merge branch 'master' into bindings | Daniel Eklöf | 2020-03-09 | -22/+40 | |
| | |\ \ | |/ / |/| | | |||||
| * | | | server/client: add XDG_SESSION_ID to the default socket path | Daniel Eklöf | 2020-03-09 | -3/+10 | |
| | | | | | | | | | | | | | This allows multiple foot servers to run in multiple sessions. | ||||
| * | | | term: init: no need to roundtrip | Daniel Eklöf | 2020-03-09 | -5/+5 | |
| | | | | |||||
| * | | | wayland: make a missing presentation time interface an error | Daniel Eklöf | 2020-03-09 | -3/+4 | |
| | | | | | | | | | | | | | | | | If the user wanted to do presentation timing, and the interface isn't there, then this is an error. | ||||
| * | | | wayland: register FDM hook early, to avoid unregister errors when failing | Daniel Eklöf | 2020-03-09 | -5/+5 | |
| | | | | |||||
| * | | | .desktop: 'terminal' is not a common icon name | Daniel Eklöf | 2020-03-09 | -2/+2 | |
| | | | | | | | | | | | | | | | | Not all icon themes have a 'terminal' icon. 'utilities-terminal' on the other hand is a standardized icon name. | ||||
| * | | | config: csd: error out on invalid key | Daniel Eklöf | 2020-03-08 | -0/+6 | |
| | | | | |||||
| * | | | scripts/generate-alt-random-writes: use TIOCGWINSZ instead of shutil | Daniel Eklöf | 2020-03-08 | -4/+8 | |
| | | | | |||||
| | * | | footrc: add default key bindings | Daniel Eklöf | 2020-03-08 | -0/+11 | |
| | | | | | | | | | | | | | Note that we still don't parse this section. | ||||
| | * | | wayland: free 'search' key bindings on destroy | Daniel Eklöf | 2020-03-08 | -0/+1 | |
| | | | | |||||
| | * | | search: add support for user configurable key bindings | Daniel Eklöf | 2020-03-08 | -9/+31 | |
| | | | | | | | | | | | | | No default bindings defined yet, though. | ||||
| | * | | input: convert the rest of the normal key bindings to configurable bindings | Daniel Eklöf | 2020-03-08 | -83/+107 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | New actions defined and implemented: * scrollback up/down * font size up/down/reset * spawn terminal Break out key combo parsing to a new function, parse_key_binding_for_action(). This function parses a string containing one or more space separated key combo definitions on the form (mod1+mod2+...+key), where key is a XKB key name (e.g. KP_Add). Convert all hardcoded key bindings to configuration based bindings. These still cannot actually be configured by the user, but at least lives in the conf struct. | ||||
| | * | | wip: initial framework for dealing with key/mouse bindings in different modes | Daniel Eklöf | 2020-03-08 | -17/+130 | |
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds initial support for defining key and mouse bindings that are applied in different terminal modes/states. For example, there are two arrays dealing with key and mouse bindings in the "normal" mode. Most bindings will go here. There's also an array for "search" mode. These bindings will be used when the user has started a scrollback search. In the future, there may be a model selection mode as well. Or maybe "search" and "modal selection" will be combined into a single "keyboard" mode. We'll see. Since the keyboard bindings depend on the current XKB keymap, translation from the user specified key combination string cannot be done when loading the configuration, but must be done when we've received a keymap from the wayland server. We should explore if it's possible to load some kind of default keymap just to be able to verify the validity of the key combination strings at configuration load time, to be able to reject the configuration at startup. A couple of key bindings have been added as proof of concept. Mouse bindings aren't handled at all yet, and is likely to be re-written. For example, we can probably translate the configuration strings at configuration load time. | ||||
| * | | README: only the bundled PKGBUILD requires tllist+fcft to be installed system-wide | Daniel Eklöf | 2020-03-06 | -1/+2 | |
| | | | |||||
| * | | README: font size adjustments are in half point steps | Daniel Eklöf | 2020-03-06 | -2/+2 | |
| | | | |||||
| * | | README: space separate AUR packages | Daniel Eklöf | 2020-03-06 | -2/+4 | |
| | | | |||||
| * | | README: fix markdown markup of AUR links | Daniel Eklöf | 2020-03-06 | -2/+2 | |
| | | | |||||
| * | | README: add links to Arch AUR packages | Daniel Eklöf | 2020-03-06 | -3/+8 | |
| | | | |||||
| * | | PKGBUILD: add '-git' postfix to package names | Daniel Eklöf | 2020-03-06 | -3/+7 | |
| | | | |||||
| * | | Merge branch 'releases/1.2' | Daniel Eklöf | 2020-03-06 | -3/+8 | |
| |\| | |||||
| | * | meson/PKGBUILD/changelog: bump to 1.2.11.2.1 | Daniel Eklöf | 2020-03-06 | -2/+7 | |
| | | | |||||
| | * | generate-version: check for .git directory in *src* dir | Daniel Eklöf | 2020-03-06 | -1/+1 | |
| | | | | | | | | | | | | | | | | | | | Instead of trying to run `git --rev-parse --is-inside-work-tree`, check if there's a .git directory under the source directory. This should fix an issue where we incorrectly decided we where in a foot git clone when we're just a subdirectory under another repository. | ||||
| * | | README: add link to keyboard+mouse bindings issue | Daniel Eklöf | 2020-03-06 | -1/+2 | |
| |/ | |||||
| * | 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 | |
| | | | |||||
