diff options
Diffstat (limited to 'dwl.c')
-rw-r--r-- | dwl.c | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -189,6 +189,7 @@ static void keypress(struct wl_listener *listener, void *data); static void keypressmod(struct wl_listener *listener, void *data); static void killclient(const Arg *arg); static void maprequest(struct wl_listener *listener, void *data); +static void monocle(Monitor *m); static void motionabsolute(struct wl_listener *listener, void *data); static void motionnotify(uint32_t time); static void motionrelative(struct wl_listener *listener, void *data); @@ -933,6 +934,18 @@ maprequest(struct wl_listener *listener, void *data) } void +monocle(Monitor *m) +{ + Client *c; + + wl_list_for_each(c, &clients, link) { + if (!VISIBLEON(c, m) || c->isfloating) + continue; + resize(c, m->w.x, m->w.y, m->w.width, m->w.height, 0); + } +} + +void motionabsolute(struct wl_listener *listener, void *data) { /* This event is forwarded by the cursor when a pointer emits an _absolute_ |