diff options
author | Joe <rbo@gmx.us> | 2025-03-02 15:28:10 +0100 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2025-03-02 15:28:10 +0100 |
commit | 8a3d0bd0dc0c1b9d0353672f112d6ecb0de20c6e (patch) | |
tree | b1b93a3f4db9c2d476f2a899fc3c0f63499ea08c /dwl.c | |
parent | nice nice (diff) | |
download | dwl-8a3d0bd0dc0c1b9d0353672f112d6ecb0de20c6e.tar.gz dwl-8a3d0bd0dc0c1b9d0353672f112d6ecb0de20c6e.tar.bz2 dwl-8a3d0bd0dc0c1b9d0353672f112d6ecb0de20c6e.tar.xz dwl-8a3d0bd0dc0c1b9d0353672f112d6ecb0de20c6e.tar.zst dwl-8a3d0bd0dc0c1b9d0353672f112d6ecb0de20c6e.zip |
winviewed
Diffstat (limited to 'dwl.c')
-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) { |