mirror of
https://github.com/swaywm/sway.git
synced 2026-05-03 06:46:26 -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);
|
||||
struct sway_view *view = &xwayland_view->view;
|
||||
struct wlr_xwayland_surface *xsurface = view->wlr_xwayland_surface;
|
||||
if (!xsurface) {
|
||||
if (!xsurface->mapped) {
|
||||
return;
|
||||
}
|
||||
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);
|
||||
struct sway_view *view = &xwayland_view->view;
|
||||
struct wlr_xwayland_surface *xsurface = view->wlr_xwayland_surface;
|
||||
if (!xsurface) {
|
||||
if (!xsurface->mapped) {
|
||||
return;
|
||||
}
|
||||
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);
|
||||
struct sway_view *view = &xwayland_view->view;
|
||||
struct wlr_xwayland_surface *xsurface = view->wlr_xwayland_surface;
|
||||
if (!xsurface) {
|
||||
if (!xsurface->mapped) {
|
||||
return;
|
||||
}
|
||||
view_execute_criteria(view);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue