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, 8 insertions, 0 deletions
diff --git a/sway/handlers.c b/sway/handlers.c
index 136ef577..3161c677 100644
--- a/sway/handlers.c
+++ b/sway/handlers.c
@@ -331,6 +331,10 @@ static void handle_view_state_request(wlc_handle view, enum wlc_view_state_bit s
331static bool handle_key(wlc_handle view, uint32_t time, const struct wlc_modifiers *modifiers, 331static bool handle_key(wlc_handle view, uint32_t time, const struct wlc_modifiers *modifiers,
332 uint32_t key, enum wlc_key_state state) { 332 uint32_t key, enum wlc_key_state state) {
333 333
334 if (desktop_shell.is_locked) {
335 return EVENT_PASSTHROUGH;
336 }
337
334 if (locked_view_focus && state == WLC_KEY_STATE_PRESSED) { 338 if (locked_view_focus && state == WLC_KEY_STATE_PRESSED) {
335 return EVENT_PASSTHROUGH; 339 return EVENT_PASSTHROUGH;
336 } 340 }
@@ -383,6 +387,10 @@ static bool handle_key(wlc_handle view, uint32_t time, const struct wlc_modifier
383} 387}
384 388
385static bool handle_pointer_motion(wlc_handle handle, uint32_t time, const struct wlc_point *origin) { 389static bool handle_pointer_motion(wlc_handle handle, uint32_t time, const struct wlc_point *origin) {
390 if (desktop_shell.is_locked) {
391 return EVENT_PASSTHROUGH;
392 }
393
386 struct wlc_point new_origin = *origin; 394 struct wlc_point new_origin = *origin;
387 // Switch to adjacent output if touching output edge. 395 // Switch to adjacent output if touching output edge.
388 // 396 //