From 1848f22c6d7dbedaafbb9a0892a7ce6f3eb1b280 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Wed, 4 Oct 2017 14:21:39 -0700 Subject: clickety: always (re)focus clicked window Currently vwm doesn't notice when something else takes the input focus. In some situations, this can leave a desktop without any focused windows, and no way to focus one because the only window is already focused as far as vwm knows. As a stop-gap solution, remove the !focused condition to the focus-on-window-click block. This way one can always force a window to be focused by simply mod-clicking the window. --- src/clickety.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/clickety.c') diff --git a/src/clickety.c b/src/clickety.c index fad2d60..9a9e150 100644 --- a/src/clickety.c +++ b/src/clickety.c @@ -211,7 +211,7 @@ int vwm_clickety_pressed(vwm_t *vwm, Window win, XButtonPressedEvent *impetus) /* always set the input focus to the clicked window, note if we allow this to happen on the root window, it enters sloppy focus mode * until a non-root window is clicked, which is an interesting hybrid but not how I prefer it. */ - if (vwin != vwm->focused_desktop->focused_window && vwin->xwindow->id != VWM_XROOT(vwm)) { + if (vwin->xwindow->id != VWM_XROOT(vwm)) { vwm_win_focus(vwm, vwin); vwm_win_mru(vwm, vwin); } -- cgit v1.2.3