mirror of
https://github.com/swaywm/sway.git
synced 2026-04-26 06:46:26 -04:00
Fix segfault on toggling a scratchpad hidden view
This commit is contained in:
parent
ad189d27f9
commit
27a2a57a38
1 changed files with 1 additions and 1 deletions
|
|
@ -28,7 +28,7 @@ static void scratchpad_toggle_auto(void) {
|
||||||
|
|
||||||
// Check if the currently focused window is a scratchpad window and should
|
// Check if the currently focused window is a scratchpad window and should
|
||||||
// be hidden again.
|
// be hidden again.
|
||||||
if (focus && focus->scratchpad) {
|
if (focus && focus->scratchpad && focus->workspace) {
|
||||||
sway_log(SWAY_DEBUG, "Focus is a scratchpad window - hiding %s",
|
sway_log(SWAY_DEBUG, "Focus is a scratchpad window - hiding %s",
|
||||||
focus->title);
|
focus->title);
|
||||||
root_scratchpad_hide(focus);
|
root_scratchpad_hide(focus);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue