mirror of
https://github.com/swaywm/sway.git
synced 2026-05-04 06:46:25 -04:00
Check for xsurface->mapped
This commit is contained in:
parent
e9fe1141e6
commit
57cf7292bb
1 changed files with 3 additions and 3 deletions
|
|
@ -311,7 +311,7 @@ static void handle_set_title(struct wl_listener *listener, void *data) {
|
||||||
wl_container_of(listener, xwayland_view, set_title);
|
wl_container_of(listener, xwayland_view, set_title);
|
||||||
struct sway_view *view = &xwayland_view->view;
|
struct sway_view *view = &xwayland_view->view;
|
||||||
struct wlr_xwayland_surface *xsurface = view->wlr_xwayland_surface;
|
struct wlr_xwayland_surface *xsurface = view->wlr_xwayland_surface;
|
||||||
if (!xsurface) {
|
if (!xsurface->mapped) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
view_update_title(view, false);
|
view_update_title(view, false);
|
||||||
|
|
@ -323,7 +323,7 @@ static void handle_set_class(struct wl_listener *listener, void *data) {
|
||||||
wl_container_of(listener, xwayland_view, set_class);
|
wl_container_of(listener, xwayland_view, set_class);
|
||||||
struct sway_view *view = &xwayland_view->view;
|
struct sway_view *view = &xwayland_view->view;
|
||||||
struct wlr_xwayland_surface *xsurface = view->wlr_xwayland_surface;
|
struct wlr_xwayland_surface *xsurface = view->wlr_xwayland_surface;
|
||||||
if (!xsurface) {
|
if (!xsurface->mapped) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
view_execute_criteria(view);
|
view_execute_criteria(view);
|
||||||
|
|
@ -334,7 +334,7 @@ static void handle_set_window_type(struct wl_listener *listener, void *data) {
|
||||||
wl_container_of(listener, xwayland_view, set_window_type);
|
wl_container_of(listener, xwayland_view, set_window_type);
|
||||||
struct sway_view *view = &xwayland_view->view;
|
struct sway_view *view = &xwayland_view->view;
|
||||||
struct wlr_xwayland_surface *xsurface = view->wlr_xwayland_surface;
|
struct wlr_xwayland_surface *xsurface = view->wlr_xwayland_surface;
|
||||||
if (!xsurface) {
|
if (!xsurface->mapped) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
view_execute_criteria(view);
|
view_execute_criteria(view);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue