aboutsummaryrefslogtreecommitdiffstats
path: root/sway/desktop
diff options
context:
space:
mode:
authorLibravatar John Mako <jhnmlkvch9@gmail.com>2020-09-19 14:21:12 -0500
committerLibravatar Simon Ser <contact@emersion.fr>2020-09-19 21:31:31 +0200
commit4537c8b3d432a5f5afb5669666ec2a40a18a2a0c (patch)
treed95d49cdd4ff390906be1cb29d3b3e4223ab6d35 /sway/desktop
parentcursor: update hide timer during config apply (diff)
downloadsway-4537c8b3d432a5f5afb5669666ec2a40a18a2a0c.tar.gz
sway-4537c8b3d432a5f5afb5669666ec2a40a18a2a0c.tar.zst
sway-4537c8b3d432a5f5afb5669666ec2a40a18a2a0c.zip
check parent surface before it is destroyed
Diffstat (limited to 'sway/desktop')
-rw-r--r--sway/desktop/xwayland.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/desktop/xwayland.c b/sway/desktop/xwayland.c
index 89b1a481..3b42013b 100644
--- a/sway/desktop/xwayland.c
+++ b/sway/desktop/xwayland.c
@@ -95,7 +95,7 @@ static void unmanaged_handle_unmap(struct wl_listener *listener, void *data) {
95 if (seat->wlr_seat->keyboard_state.focused_surface == xsurface->surface) { 95 if (seat->wlr_seat->keyboard_state.focused_surface == xsurface->surface) {
96 // This simply returns focus to the parent surface if there's one available. 96 // This simply returns focus to the parent surface if there's one available.
97 // This seems to handle JetBrains issues. 97 // This seems to handle JetBrains issues.
98 if (xsurface->parent && 98 if (xsurface->parent && xsurface->parent->surface &&
99 wlr_surface_is_xwayland_surface(xsurface->parent->surface)) { 99 wlr_surface_is_xwayland_surface(xsurface->parent->surface)) {
100 struct wlr_xwayland_surface *next_surface = 100 struct wlr_xwayland_surface *next_surface =
101 wlr_xwayland_surface_from_wlr_surface(xsurface->parent->surface); 101 wlr_xwayland_surface_from_wlr_surface(xsurface->parent->surface);