aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-07-18 18:51:03 +0100
committeremersion <contact@emersion.fr>2018-07-18 18:51:03 +0100
commit153f37bdf57c61e7fb09162a6791afe8b9b4d0ef (patch)
tree70f69a01ae350d625e5f9785f247dce8f0863bbf /include
parent7f20ab644347b11fd8242beaf7a6fe42c910d014 (diff)
xwayland: handle override_redirect flag changes
The override_redirect flag can change on configure notify and on map notify. This adds an event to know when it changes. This removes wlr_xwayland_surface_is_unmanaged which was wrongly using the window type to decide whether the view should be unmanaged. A similar patch was proposed to Weston, but has never been merged upstream [1]. [1]: https://patchwork.freedesktop.org/patch/211161/
Diffstat (limited to 'include')
-rw-r--r--include/wlr/xwayland.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/include/wlr/xwayland.h b/include/wlr/xwayland.h
index 7471bbc6..31d5c964 100644
--- a/include/wlr/xwayland.h
+++ b/include/wlr/xwayland.h
@@ -150,6 +150,7 @@ struct wlr_xwayland_surface {
struct wl_signal set_parent;
struct wl_signal set_pid;
struct wl_signal set_window_type;
+ struct wl_signal set_override_redirect;
struct wl_signal ping_timeout;
} events;
@@ -200,9 +201,6 @@ void wlr_xwayland_surface_set_fullscreen(struct wlr_xwayland_surface *surface,
void wlr_xwayland_set_seat(struct wlr_xwayland *xwayland,
struct wlr_seat *seat);
-bool wlr_xwayland_surface_is_unmanaged(
- const struct wlr_xwayland_surface *surface);
-
bool wlr_surface_is_xwayland_surface(struct wlr_surface *surface);
struct wlr_xwayland_surface *wlr_xwayland_surface_from_wlr_surface(