diff options
-rw-r--r-- | src/window.c | 2 | ||||
-rw-r--r-- | src/window.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/window.c b/src/window.c index 6e83d52..61931c1 100644 --- a/src/window.c +++ b/src/window.c @@ -81,7 +81,7 @@ vwm_window_t * vwm_win_lookup(vwm_t *vwm, Window win) /* return the currently focused window, may return NULL */ -vwm_window_t * vwm_win_get_focused(vwm_t *vwm) +vwm_window_t * vwm_win_get_focused(const vwm_t *vwm) { return vwm->focused_desktop->focused_window; } diff --git a/src/window.h b/src/window.h index daddf14..74f30ab 100644 --- a/src/window.h +++ b/src/window.h @@ -42,7 +42,7 @@ void vwm_win_unmap(vwm_t *vwm, vwm_window_t *vwin); void vwm_win_map(vwm_t *vwm, vwm_window_t *vwin); vwm_window_t * 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); +vwm_window_t * vwm_win_get_focused(const vwm_t *vwm); void vwm_win_set_focused(vwm_t *vwm, vwm_window_t *vwin); typedef enum _vwm_side_t { |