mirror of
https://github.com/swaywm/sway.git
synced 2025-01-02 18:37:55 +01:00
Fix container_parent_layout for scratchpad windows
This commit is contained in:
parent
19df2e5906
commit
8b6bd106aa
1 changed files with 4 additions and 1 deletions
|
@ -1163,8 +1163,11 @@ enum sway_container_layout container_parent_layout(struct sway_container *con) {
|
||||||
if (con->parent) {
|
if (con->parent) {
|
||||||
return con->parent->layout;
|
return con->parent->layout;
|
||||||
}
|
}
|
||||||
|
if (con->workspace) {
|
||||||
return con->workspace->layout;
|
return con->workspace->layout;
|
||||||
}
|
}
|
||||||
|
return L_NONE;
|
||||||
|
}
|
||||||
|
|
||||||
enum sway_container_layout container_current_parent_layout(
|
enum sway_container_layout container_current_parent_layout(
|
||||||
struct sway_container *con) {
|
struct sway_container *con) {
|
||||||
|
|
Loading…
Reference in a new issue