diff options
author | Jarkko Oranen <oranenj@iki.fi> | 2017-03-19 16:35:04 +0200 |
---|---|---|
committer | Jarkko Oranen <oranenj@iki.fi> | 2017-03-19 16:57:05 +0200 |
commit | d7350915d9d9d8aba936c6139aa085804548f6b1 (patch) | |
tree | 387359879e6ad73bf0fd4ca7acc935b530765d9d /sway | |
parent | Merge pull request #1126 from zandrmartin/prevent-fullscreen-focus-stealing (diff) | |
download | sway-d7350915d9d9d8aba936c6139aa085804548f6b1.tar.gz sway-d7350915d9d9d8aba936c6139aa085804548f6b1.tar.zst sway-d7350915d9d9d8aba936c6139aa085804548f6b1.zip |
The default layout of a workspace should follow the output
Hardcoding it to L_HORIZ does not make sense to me,
as you get the unexpected behaviour that windows will be
arranged horizontally until you switch the layout.
Diffstat (limited to 'sway')
-rw-r--r-- | sway/container.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/container.c b/sway/container.c index d43ee35e..707aa4d8 100644 --- a/sway/container.c +++ b/sway/container.c | |||
@@ -218,7 +218,7 @@ swayc_t *new_workspace(swayc_t *output, const char *name) { | |||
218 | swayc_t *workspace = new_swayc(C_WORKSPACE); | 218 | swayc_t *workspace = new_swayc(C_WORKSPACE); |
219 | 219 | ||
220 | workspace->prev_layout = L_NONE; | 220 | workspace->prev_layout = L_NONE; |
221 | workspace->layout = L_HORIZ; | 221 | workspace->layout = default_layout(output); |
222 | workspace->workspace_layout = default_layout(output); | 222 | workspace->workspace_layout = default_layout(output); |
223 | 223 | ||
224 | workspace->x = output->x; | 224 | workspace->x = output->x; |