summaryrefslogtreecommitdiffstats
path: root/sway/handlers.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/handlers.c')
-rw-r--r--sway/handlers.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sway/handlers.c b/sway/handlers.c
index ee88b247..f96a8e9d 100644
--- a/sway/handlers.c
+++ b/sway/handlers.c
@@ -166,7 +166,7 @@ static void handle_output_resolution_change(wlc_handle output, const struct wlc_
166 166
167static void handle_output_focused(wlc_handle output, bool focus) { 167static void handle_output_focused(wlc_handle output, bool focus) {
168 swayc_t *c = swayc_by_handle(output); 168 swayc_t *c = swayc_by_handle(output);
169 // if for some reason this output doesnt exist, create it. 169 // if for some reason this output doesn't exist, create it.
170 if (!c) { 170 if (!c) {
171 handle_output_created(output); 171 handle_output_created(output);
172 } 172 }
@@ -217,7 +217,7 @@ static bool handle_view_created(wlc_handle handle) {
217 wlc_view_set_state(handle, WLC_BIT_MAXIMIZED, true); 217 wlc_view_set_state(handle, WLC_BIT_MAXIMIZED, true);
218 break; 218 break;
219 219
220 // Dmenu keeps viewfocus, but others with this flag dont, for now simulate 220 // Dmenu keeps viewfocus, but others with this flag don't, for now simulate
221 // dmenu 221 // dmenu
222 case WLC_BIT_OVERRIDE_REDIRECT: 222 case WLC_BIT_OVERRIDE_REDIRECT:
223// locked_view_focus = true; 223// locked_view_focus = true;
@@ -288,7 +288,7 @@ static void handle_view_destroyed(wlc_handle handle) {
288 case WLC_BIT_POPUP: 288 case WLC_BIT_POPUP:
289 break; 289 break;
290 // DMENU has this flag, and takes view_focus, but other things with this 290 // DMENU has this flag, and takes view_focus, but other things with this
291 // flag dont 291 // flag don't
292 case WLC_BIT_OVERRIDE_REDIRECT: 292 case WLC_BIT_OVERRIDE_REDIRECT:
293// locked_view_focus = false; 293// locked_view_focus = false;
294 break; 294 break;
@@ -651,7 +651,7 @@ static bool handle_pointer_button(wlc_handle view, uint32_t time, const struct w
651 // get focused window and check if to change focus on mouse click 651 // get focused window and check if to change focus on mouse click
652 swayc_t *focused = get_focused_container(&root_container); 652 swayc_t *focused = get_focused_container(&root_container);
653 653
654 // dont change focus or mode if fullscreen 654 // don't change focus or mode if fullscreen
655 if (swayc_is_fullscreen(focused)) { 655 if (swayc_is_fullscreen(focused)) {
656 return EVENT_PASSTHROUGH; 656 return EVENT_PASSTHROUGH;
657 } 657 }