summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2017-10-04 14:21:39 -0700
committerVito Caputo <vcaputo@pengaru.com>2017-10-04 14:21:39 -0700
commit1848f22c6d7dbedaafbb9a0892a7ce6f3eb1b280 (patch)
treebe97c583d3325e12f2bb34ddd04c69275e556cd4 /src
parentcd7aade2689e7546b97c061616afb36237fe1787 (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/clickety.c2
1 files changed, 1 insertions, 1 deletions
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);
}
© All Rights Reserved