diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2023-07-14 10:03:35 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2023-07-14 10:03:35 +0000 |
| commit | 3f7be59062f00cd99d832eaa5d389b880a3c512e (patch) | |
| tree | 2849470c94e9fc7a7300a60a7542a5e459bf70d8 /input.c | |
| parent | themes: enable custom cursor colors in all themes that define such colors (diff) | |
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
Diffstat (limited to 'input.c')
| -rw-r--r-- | input.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 |
