mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
config: add csd.double-click-to-maximize=no|yes option
When enabled, double-clicking the CSD titlebar will (un)maximize the window. Defaults to ‘yes’ (since this is the old hard-coded behavior). Closes #1293
This commit is contained in:
parent
3cd0e2adb0
commit
3f7be59062
7 changed files with 19 additions and 1 deletions
5
input.c
5
input.c
|
|
@ -2287,7 +2287,10 @@ wl_pointer_button(void *data, struct wl_pointer *wl_pointer,
|
|||
struct wl_window *win = term->window;
|
||||
|
||||
/* Toggle maximized state on double-click */
|
||||
if (button == BTN_LEFT && seat->mouse.count == 2) {
|
||||
if (term->conf->csd.double_click_to_maximize &&
|
||||
button == BTN_LEFT &&
|
||||
seat->mouse.count == 2)
|
||||
{
|
||||
if (win->is_maximized)
|
||||
xdg_toplevel_unset_maximized(win->xdg_toplevel);
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue