summaryrefslogtreecommitdiff
path: root/src/window.h
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2020-12-23 01:12:51 -0800
committerVito Caputo <vcaputo@pengaru.com>2020-12-23 16:58:42 -0800
commit3161db573424a554b536aaa492397341b84683ce (patch)
tree1f72d7aa908dbb484bb8907b17bf493f551e2b85 /src/window.h
parenta6998186a3546f9f871e2cab3e994c782bd98a98 (diff)
*: introduce and use direction parameter
This adds a direction parameter to vwm_desktop_next{_mru}() and vwm_win_focus_next(), deprecating _prev() variants in favor of a vwm_direction_t parameter. XK_r has been wired up as a modifier for reversing the direction of actions like Mod1+Tab (window next MRU cycle) and Mod1+Space (desktop next MRU cycle). So now if you overshoot, simply hold the "r" key and repeat the operation to go back, much like how Shift is often used for reversing alt+tab in i.e. Windows.
Diffstat (limited to 'src/window.h')
-rw-r--r--src/window.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/window.h b/src/window.h
index c142d89..00ebc72 100644
--- a/src/window.h
+++ b/src/window.h
@@ -4,6 +4,7 @@
#include <X11/Xlib.h>
#include <X11/Xutil.h>
+#include "direction.h"
#include "list.h"
#include "screen.h"
@@ -71,7 +72,7 @@ typedef enum _vwm_fence_t {
VWM_FENCE_MASKED_VIOLATE /* leave the screen for any other not masked */
} vwm_fence_t;
-vwm_window_t * vwm_win_focus_next(vwm_t *vwm, vwm_window_t *vwin, vwm_fence_t fence);
+vwm_window_t * vwm_win_focus_next(vwm_t *vwm, vwm_window_t *vwin, vwm_direction_t direction, vwm_fence_t fence);
void vwm_win_shelve(vwm_t *vwm, vwm_window_t *vwin);
void vwm_win_unfocus(vwm_t *vwm, vwm_window_t *vwin);
vwm_xwindow_t * vwm_win_unmanage(vwm_t *vwm, vwm_window_t *vwin);
© All Rights Reserved