aboutsummaryrefslogtreecommitdiff
path: root/sway/handlers.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2015-09-07 18:14:37 -0400
committerDrew DeVault <sir@cmpwn.com>2015-09-07 18:14:37 -0400
commit7654f5e7cdbf5edff2f576a59cf04c530dd6efb5 (patch)
tree8496fd8673d31bac1802d756885a8fc64245a552 /sway/handlers.c
parentafe9cf0be0f12662f10ebb888a2a41aa613a9422 (diff)
parent3eb29ea7364724af99e4f4a5f7a6f633e17baf8d (diff)
downloadsway-7654f5e7cdbf5edff2f576a59cf04c530dd6efb5.tar.xz
Merge pull request #173 from taiyu-len/config_mode
config modes
Diffstat (limited to 'sway/handlers.c')
-rw-r--r--sway/handlers.c11
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_
if (!c) return;
c->width = to->w;
c->height = to->h;
- if (config->default_layout == L_NONE && config->default_orientation == L_NONE) {
- if (c->width >= c->height) {
- ((swayc_t*)c->children->items[0])->layout = L_HORIZ;
- } else {
- ((swayc_t*)c->children->items[0])->layout = L_VERT;
- }
- }
arrange_windows(&root_container, -1, -1);
}
@@ -348,7 +341,7 @@ static bool handle_key(wlc_handle view, uint32_t time, const struct wlc_modifier
}
if (match) {
if (state == WLC_KEY_STATE_PRESSED) {
- handle_command(config, binding->command);
+ handle_command(binding->command);
return EVENT_HANDLED;
} else if (state == WLC_KEY_STATE_RELEASED) {
// TODO: --released
@@ -486,7 +479,7 @@ static void handle_wlc_ready(void) {
sway_log(L_DEBUG, "Compositor is ready, executing cmds in queue");
// Execute commands until there are none left
while (config->cmd_queue->length) {
- handle_command(config, config->cmd_queue->items[0]);
+ handle_command(config->cmd_queue->items[0]);
free(config->cmd_queue->items[0]);
list_del(config->cmd_queue, 0);
}