diff options
Diffstat (limited to 'sway/handlers.c')
-rw-r--r-- | sway/handlers.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/sway/handlers.c b/sway/handlers.c index 482d52c6..c0472817 100644 --- a/sway/handlers.c +++ b/sway/handlers.c | |||
@@ -130,13 +130,6 @@ static void handle_output_resolution_change(wlc_handle output, const struct wlc_ | |||
130 | if (!c) return; | 130 | if (!c) return; |
131 | c->width = to->w; | 131 | c->width = to->w; |
132 | c->height = to->h; | 132 | c->height = to->h; |
133 | if (config->default_layout == L_NONE && config->default_orientation == L_NONE) { | ||
134 | if (c->width >= c->height) { | ||
135 | ((swayc_t*)c->children->items[0])->layout = L_HORIZ; | ||
136 | } else { | ||
137 | ((swayc_t*)c->children->items[0])->layout = L_VERT; | ||
138 | } | ||
139 | } | ||
140 | arrange_windows(&root_container, -1, -1); | 133 | arrange_windows(&root_container, -1, -1); |
141 | } | 134 | } |
142 | 135 | ||
@@ -348,7 +341,7 @@ static bool handle_key(wlc_handle view, uint32_t time, const struct wlc_modifier | |||
348 | } | 341 | } |
349 | if (match) { | 342 | if (match) { |
350 | if (state == WLC_KEY_STATE_PRESSED) { | 343 | if (state == WLC_KEY_STATE_PRESSED) { |
351 | handle_command(config, binding->command); | 344 | handle_command(binding->command); |
352 | return EVENT_HANDLED; | 345 | return EVENT_HANDLED; |
353 | } else if (state == WLC_KEY_STATE_RELEASED) { | 346 | } else if (state == WLC_KEY_STATE_RELEASED) { |
354 | // TODO: --released | 347 | // TODO: --released |
@@ -486,7 +479,7 @@ static void handle_wlc_ready(void) { | |||
486 | sway_log(L_DEBUG, "Compositor is ready, executing cmds in queue"); | 479 | sway_log(L_DEBUG, "Compositor is ready, executing cmds in queue"); |
487 | // Execute commands until there are none left | 480 | // Execute commands until there are none left |
488 | while (config->cmd_queue->length) { | 481 | while (config->cmd_queue->length) { |
489 | handle_command(config, config->cmd_queue->items[0]); | 482 | handle_command(config->cmd_queue->items[0]); |
490 | free(config->cmd_queue->items[0]); | 483 | free(config->cmd_queue->items[0]); |
491 | list_del(config->cmd_queue, 0); | 484 | list_del(config->cmd_queue, 0); |
492 | } | 485 | } |