diff options
author | Luminarys <kizunanohikari@gmail.com> | 2015-08-23 13:18:07 -0500 |
---|---|---|
committer | Luminarys <kizunanohikari@gmail.com> | 2015-08-23 13:18:07 -0500 |
commit | 5bfed9b2131761f29e2cc095fbdf2083d2665848 (patch) | |
tree | 7b36a6a13a2138ec8d3efd6a13d36bb0aab27538 /sway | |
parent | e01cf0b56654ff459a98a90e5e35615ad8d9203e (diff) | |
download | sway-5bfed9b2131761f29e2cc095fbdf2083d2665848.tar.xz |
Cleanup and minor adjustments to disabling
Diffstat (limited to 'sway')
-rw-r--r-- | sway/handlers.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/sway/handlers.c b/sway/handlers.c index 1ff430f2..23db5c15 100644 --- a/sway/handlers.c +++ b/sway/handlers.c @@ -90,18 +90,11 @@ static bool handle_output_created(wlc_handle output) { return false; } - wlc_output_focus(output); // Switch to workspace if we need to if (swayc_active_workspace() == NULL) { - sway_log(L_INFO, "Focus switch"); swayc_t *ws = op->children->items[0]; workspace_switch(ws); } - /* - if (wlc_output_get_sleep(wlc_get_focused_output())) { - wlc_output_focus(output); - } - */ return true; } @@ -115,6 +108,8 @@ static void handle_output_destroyed(wlc_handle output) { } if (i < list->length) { destroy_output(list->items[i]); + } else { + return; } if (list->length > 0) { // switch to other outputs active workspace |