aboutsummaryrefslogtreecommitdiffstats
path: root/sway/main.c
diff options
context:
space:
mode:
authorLibravatar mwenzkowski <29407878+mwenzkowski@users.noreply.github.com>2018-12-21 23:25:07 +0100
committerLibravatar emersion <contact@emersion.fr>2019-01-28 16:14:35 +0100
commit7c27d73b02a1958f323a7c30f46c99414cd6f6bf (patch)
tree44b7f0cd093a14c776ad4781d41cdc36f5e64efd /sway/main.c
parentIntroduce container_is_scratchpad_hidden (diff)
downloadsway-7c27d73b02a1958f323a7c30f46c99414cd6f6bf.tar.gz
sway-7c27d73b02a1958f323a7c30f46c99414cd6f6bf.tar.zst
sway-7c27d73b02a1958f323a7c30f46c99414cd6f6bf.zip
Check xdg_surface's role before using its toplevel
Don't access xdg_surface->toplevel if xdg_surface->role is equal to WLR_XDG_SURFACE_ROLE_NONE, since this could lead to crash. The same checks are added for xdg_surface_v6. Fixes #3311
Diffstat (limited to 'sway/main.c')
0 files changed, 0 insertions, 0 deletions