summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Luminarys <kizunanohikari@gmail.com>2015-08-23 13:18:07 -0500
committerLibravatar Luminarys <kizunanohikari@gmail.com>2015-08-23 13:18:07 -0500
commit5bfed9b2131761f29e2cc095fbdf2083d2665848 (patch)
tree7b36a6a13a2138ec8d3efd6a13d36bb0aab27538
parentAdded in glitchy disabling (diff)
downloadsway-5bfed9b2131761f29e2cc095fbdf2083d2665848.tar.gz
sway-5bfed9b2131761f29e2cc095fbdf2083d2665848.tar.zst
sway-5bfed9b2131761f29e2cc095fbdf2083d2665848.zip
Cleanup and minor adjustments to disabling
-rw-r--r--sway/handlers.c9
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) {
90 return false; 90 return false;
91 } 91 }
92 92
93 wlc_output_focus(output);
94 // Switch to workspace if we need to 93 // Switch to workspace if we need to
95 if (swayc_active_workspace() == NULL) { 94 if (swayc_active_workspace() == NULL) {
96 sway_log(L_INFO, "Focus switch");
97 swayc_t *ws = op->children->items[0]; 95 swayc_t *ws = op->children->items[0];
98 workspace_switch(ws); 96 workspace_switch(ws);
99 } 97 }
100 /*
101 if (wlc_output_get_sleep(wlc_get_focused_output())) {
102 wlc_output_focus(output);
103 }
104 */
105 return true; 98 return true;
106} 99}
107 100
@@ -115,6 +108,8 @@ static void handle_output_destroyed(wlc_handle output) {
115 } 108 }
116 if (i < list->length) { 109 if (i < list->length) {
117 destroy_output(list->items[i]); 110 destroy_output(list->items[i]);
111 } else {
112 return;
118 } 113 }
119 if (list->length > 0) { 114 if (list->length > 0) {
120 // switch to other outputs active workspace 115 // switch to other outputs active workspace