summaryrefslogtreecommitdiff
path: root/src/window.h
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2017-10-05 16:48:58 -0700
committerVito Caputo <vcaputo@pengaru.com>2017-10-05 16:53:35 -0700
commit7096b3b6c1325630d18e5d61aac58f9c3772b8e1 (patch)
tree2b615b2bbf82b7c1463e01ed0e73cacf6896c397 /src/window.h
parent29fa9c0870eebc152a92da2290e405be6e37fc56 (diff)
window: split out focused window setter
vwm_win_focus() previously simultaneously told the X server to set the input focus on the window (if mapped) and set the internal vwm state of the window to focused. These are really two separate operations: 1. request the X server to focus the window 2. change vwm's concept of the currently focused window Since clients can call XSetInputFocus() as well, there's need for doing step 2 discretely in response to FocusIn events. Nothing is functionally different after this commit, it just exposes step 2 as a separate vwm_win_set_focused() function for a future commit to leverage in handling of FocusIn events.
Diffstat (limited to 'src/window.h')
-rw-r--r--src/window.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/window.h b/src/window.h
index 4d75440..c177b48 100644
--- a/src/window.h
+++ b/src/window.h
@@ -43,6 +43,7 @@ void vwm_win_map(vwm_t *vwm, vwm_window_t *vwin);
void vwm_win_mru(vwm_t *vwm, vwm_window_t *vwin);
vwm_window_t * vwm_win_lookup(vwm_t *vwm, Window win);
vwm_window_t * vwm_win_get_focused(vwm_t *vwm);
+void vwm_win_set_focused(vwm_t *vwm, vwm_window_t *vwin);
typedef enum _vwm_side_t {
VWM_SIDE_TOP,
© All Rights Reserved