mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
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/
This commit is contained in:
parent
7f20ab6443
commit
153f37bdf5
3 changed files with 21 additions and 34 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue