mirror of
https://github.com/swaywm/sway.git
synced 2024-11-14 06:24:20 +01:00
Fix crash when moving window to scratchpad
This commit is contained in:
parent
1a9145e409
commit
5fab8a2ad4
@ -354,7 +354,8 @@ static void get_deco_rect(struct sway_container *c, struct wlr_box *deco_rect) {
|
|||||||
enum sway_container_layout parent_layout = container_parent_layout(c);
|
enum sway_container_layout parent_layout = container_parent_layout(c);
|
||||||
if ((parent_layout != L_TABBED && parent_layout != L_STACKED &&
|
if ((parent_layout != L_TABBED && parent_layout != L_STACKED &&
|
||||||
c->current.border != B_NORMAL) ||
|
c->current.border != B_NORMAL) ||
|
||||||
c->fullscreen_mode != FULLSCREEN_NONE) {
|
c->fullscreen_mode != FULLSCREEN_NONE ||
|
||||||
|
c->workspace == NULL) {
|
||||||
deco_rect->x = deco_rect->y = deco_rect->width = deco_rect->height = 0;
|
deco_rect->x = deco_rect->y = deco_rect->width = deco_rect->height = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user