sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit 4537c8b3d432a5f5afb5669666ec2a40a18a2a0c
parent 41999d7c9f9878017d9199f4cdeaf621d5fd706e
Author: John Mako <jhnmlkvch9@gmail.com>
Date:   Sat, 19 Sep 2020 14:21:12 -0500

check parent surface before it is destroyed

Diffstat:
Msway/desktop/xwayland.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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) { if (seat->wlr_seat->keyboard_state.focused_surface == xsurface->surface) { // This simply returns focus to the parent surface if there's one available. // This seems to handle JetBrains issues. - if (xsurface->parent && + if (xsurface->parent && xsurface->parent->surface && wlr_surface_is_xwayland_surface(xsurface->parent->surface)) { struct wlr_xwayland_surface *next_surface = wlr_xwayland_surface_from_wlr_surface(xsurface->parent->surface);