aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTobias Langendorf <junglerobba@jngl.one>2020-07-18 21:37:02 +0200
committerSimon Ser <contact@emersion.fr>2020-07-21 13:20:17 +0200
commitbd387da62d78f25027f1f80d25d85970fd09c235 (patch)
tree6e3c6b02521bb20b5a22234c58624078484031bc /include
parent751a21d94f1b4f0345d040ddfd54b723631d5991 (diff)
xwm: add support for xwayland minimize
Diffstat (limited to 'include')
-rw-r--r--include/wlr/xwayland.h10
-rw-r--r--include/xwayland/xwm.h2
2 files changed, 12 insertions, 0 deletions
diff --git a/include/wlr/xwayland.h b/include/wlr/xwayland.h
index 03201718..26a14aea 100644
--- a/include/wlr/xwayland.h
+++ b/include/wlr/xwayland.h
@@ -173,6 +173,7 @@ struct wlr_xwayland_surface {
bool modal;
bool fullscreen;
bool maximized_vert, maximized_horz;
+ bool minimized;
bool has_alpha;
@@ -181,6 +182,7 @@ struct wlr_xwayland_surface {
struct wl_signal request_configure;
struct wl_signal request_move;
struct wl_signal request_resize;
+ struct wl_signal request_minimize;
struct wl_signal request_maximize;
struct wl_signal request_fullscreen;
struct wl_signal request_activate;
@@ -221,6 +223,11 @@ struct wlr_xwayland_resize_event {
uint32_t edges;
};
+struct wlr_xwayland_minimize_event {
+ struct wlr_xwayland_surface *surface;
+ bool minimize;
+};
+
struct wlr_xwayland_server *wlr_xwayland_server_create(
struct wl_display *display, struct wlr_xwayland_server_options *options);
void wlr_xwayland_server_destroy(struct wlr_xwayland_server *server);
@@ -250,6 +257,9 @@ void wlr_xwayland_surface_configure(struct wlr_xwayland_surface *surface,
void wlr_xwayland_surface_close(struct wlr_xwayland_surface *surface);
+void wlr_xwayland_surface_set_minimized(struct wlr_xwayland_surface *surface,
+ bool minimized);
+
void wlr_xwayland_surface_set_maximized(struct wlr_xwayland_surface *surface,
bool maximized);
diff --git a/include/xwayland/xwm.h b/include/xwayland/xwm.h
index 2569092f..1085cb14 100644
--- a/include/xwayland/xwm.h
+++ b/include/xwayland/xwm.h
@@ -44,7 +44,9 @@ enum atom_name {
NET_WM_STATE_FULLSCREEN,
NET_WM_STATE_MAXIMIZED_VERT,
NET_WM_STATE_MAXIMIZED_HORZ,
+ NET_WM_STATE_HIDDEN,
NET_WM_PING,
+ WM_CHANGE_STATE,
WM_STATE,
CLIPBOARD,
PRIMARY,