diff options
author | 2019-04-02 13:17:01 -0400 | |
---|---|---|
committer | 2019-04-03 19:45:17 +0300 | |
commit | f0f20f96aa5cea382ca079b6a88fbcaf5b3782ad (patch) | |
tree | 86ad935b1ecd5d77659c68523ec092a2c872745a /README.it.md | |
parent | fix broken link to README.zh-CN.md (diff) | |
download | sway-f0f20f96aa5cea382ca079b6a88fbcaf5b3782ad.tar.gz sway-f0f20f96aa5cea382ca079b6a88fbcaf5b3782ad.tar.zst sway-f0f20f96aa5cea382ca079b6a88fbcaf5b3782ad.zip |
root_scratchpad_hide: fix crash when layer focused
This fixes a crash in `root_scratchpad_hide` when a layer surface is
focused. Since `seat_get_focus` is NULL when a layer surface is
focused, the call to `node_has_ancestor` was causing a SIGSEGV since it
was attempting to access the parent of NULL. This changes the call to
`seat_get_focus_inactive`, which will return a node even when a layer
surface is focused and is also guaranteed to have something in the
focus stack if a scratchpad container is being hidden (otherwise there
would not be any containers yet).
Diffstat (limited to 'README.it.md')
0 files changed, 0 insertions, 0 deletions