diff options
author | Luminarys <[email protected]> | 2015-08-23 12:22:45 -0500 |
---|---|---|
committer | Luminarys <[email protected]> | 2015-08-23 12:23:01 -0500 |
commit | e01cf0b56654ff459a98a90e5e35615ad8d9203e (patch) | |
tree | 7f3aff68c417f0b733621086860fd39f0b78211d /sway/handlers.c | |
parent | 98fad060e28c81c8340afbb473615f7889a6097a (diff) |
Added in glitchy disabling
Diffstat (limited to 'sway/handlers.c')
-rw-r--r-- | sway/handlers.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/sway/handlers.c b/sway/handlers.c index 9fca6387..1ff430f2 100644 --- a/sway/handlers.c +++ b/sway/handlers.c @@ -86,22 +86,22 @@ swayc_t *container_under_pointer(void) { static bool handle_output_created(wlc_handle output) { swayc_t *op = new_output(output); - if (!op) { - return false; - } + if (!op) { + return false; + } - wlc_output_focus(output); + wlc_output_focus(output); // Switch to workspace if we need to if (swayc_active_workspace() == NULL) { - sway_log(L_INFO, "Focus switch"); + 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); - } - */ + /* + if (wlc_output_get_sleep(wlc_get_focused_output())) { + wlc_output_focus(output); + } + */ return true; } |