diff options
Diffstat (limited to '')
-rw-r--r-- | dwl.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -414,6 +414,7 @@ static void urgent(struct wl_listener *listener, void *data); static void view(const Arg *arg); static void virtualkeyboard(struct wl_listener *listener, void *data); static void virtualpointer(struct wl_listener *listener, void *data); +static void winview(const Arg *a); static void wmenuspawn(const Arg *arg); static Monitor *xytomon(double x, double y); static void xytonode(double x, double y, struct wlr_surface **psurface, @@ -3757,6 +3758,17 @@ wmenuspawn(const Arg *arg) free(cmd); } +void +winview(const Arg *a) { + Arg b = {0}; + Client *sel = focustop(selmon); + if(!sel) + return; + b.ui = sel -> tags; + view(&b); + return; +} + Monitor * xytomon(double x, double y) { |