From 2f65100bee904493cb90863d6dc54d774b6a39c3 Mon Sep 17 00:00:00 2001 From: Tony Crisci Date: Mon, 1 Aug 2016 22:25:08 -0400 Subject: Remove dead global locked_view_focus The value of `locked_view_focus` is always false. Remove dead code associated with this variable to simplify things. --- sway/handlers.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'sway/handlers.c') diff --git a/sway/handlers.c b/sway/handlers.c index 684e45ba..80692371 100644 --- a/sway/handlers.c +++ b/sway/handlers.c @@ -343,7 +343,6 @@ static bool handle_view_created(wlc_handle handle) { // Dmenu keeps viewfocus, but others with this flag don't, for now simulate // dmenu case WLC_BIT_OVERRIDE_REDIRECT: - // locked_view_focus = true; wlc_view_focus(handle); wlc_view_set_state(handle, WLC_BIT_ACTIVATED, true); wlc_view_bring_to_front(handle); @@ -437,7 +436,6 @@ static void handle_view_destroyed(wlc_handle handle) { // DMENU has this flag, and takes view_focus, but other things with this // flag don't case WLC_BIT_OVERRIDE_REDIRECT: -// locked_view_focus = false; break; case WLC_BIT_OVERRIDE_REDIRECT|WLC_BIT_UNMANAGED: locked_container_focus = false; @@ -646,10 +644,6 @@ static bool handle_key(wlc_handle view, uint32_t time, const struct wlc_modifier return EVENT_PASSTHROUGH; } - if (locked_view_focus && state == WLC_KEY_STATE_PRESSED) { - return EVENT_PASSTHROUGH; - } - // reset pointer mode on keypress if (state == WLC_KEY_STATE_PRESSED && pointer_state.mode) { pointer_mode_reset(); -- cgit v1.2.3