summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorErik Reider <[email protected]>2023-03-26 17:44:21 +0200
committerGitHub <[email protected]>2023-03-26 11:44:21 -0400
commitf2d29ceb6b831a07ce2bce4534fe6fec1f16eee3 (patch)
treed90b5fd546d6f55c7be7d0af43863f8f9262b4db /include
parent7d5d7a3022eb17835cea7af7290b1a5d2fe4b03a (diff)
Extend minimize logic to work with XWayland and XDG applications (#132)
* Extend minimize logic * Removed redundant xwayland minimize logic * minor fixes * Fixed not properly checking if window is ran though XWayland * Added config option with default being off * Set scratchpad_minimize to true by default * Improve config dependant logic * Switch to using enable|disable instead of on|off
Diffstat (limited to 'include')
-rw-r--r--include/sway/commands.h1
-rw-r--r--include/sway/config.h1
-rw-r--r--include/sway/tree/view.h1
3 files changed, 3 insertions, 0 deletions
diff --git a/include/sway/commands.h b/include/sway/commands.h
index 84d44e27..91b1fc58 100644
--- a/include/sway/commands.h
+++ b/include/sway/commands.h
@@ -176,6 +176,7 @@ sway_cmd cmd_reload;
sway_cmd cmd_rename;
sway_cmd cmd_resize;
sway_cmd cmd_scratchpad;
+sway_cmd cmd_scratchpad_minimize;
sway_cmd cmd_seamless_mouse;
sway_cmd cmd_set;
sway_cmd cmd_shortcuts_inhibitor;
diff --git a/include/sway/config.h b/include/sway/config.h
index 60c810e1..2dc4b52d 100644
--- a/include/sway/config.h
+++ b/include/sway/config.h
@@ -488,6 +488,7 @@ struct sway_config {
int shadow_blur_sigma;
float shadow_color[4];
bool titlebar_separator;
+ bool scratchpad_minimize;
char *swaynag_command;
struct swaynag_instance swaynag_config_errors;
diff --git a/include/sway/tree/view.h b/include/sway/tree/view.h
index 684d13a0..9d468612 100644
--- a/include/sway/tree/view.h
+++ b/include/sway/tree/view.h
@@ -134,6 +134,7 @@ struct sway_xdg_shell_view {
struct wl_listener request_move;
struct wl_listener request_resize;
struct wl_listener request_maximize;
+ struct wl_listener request_minimize;
struct wl_listener request_fullscreen;
struct wl_listener set_title;
struct wl_listener set_app_id;