From 3b6273bc54cda38318180c641a90d105c4e860ef Mon Sep 17 00:00:00 2001 From: Raghuram Subramani Date: Mon, 28 Jul 2025 22:37:22 +0530 Subject: Revert "regions patch" This reverts commit c2bfddc10e512149993cbffb1e2ccd6dfbbce8b5. --- dwl.c | 28 ---------------------------- 1 file changed, 28 deletions(-) (limited to 'dwl.c') diff --git a/dwl.c b/dwl.c index 034c241..9f39349 100644 --- a/dwl.c +++ b/dwl.c @@ -376,7 +376,6 @@ static Monitor *xytomon(double x, double y); static void xytonode(double x, double y, struct wlr_surface **psurface, Client **pc, LayerSurface **pl, double *nx, double *ny); static void zoom(const Arg *arg); -static void regions(const Arg *arg); /* variables */ static pid_t child_pid = -1; @@ -3401,33 +3400,6 @@ zoom(const Arg *arg) arrange(selmon); } -void -regions(const Arg *arg) -{ - int pipefd[2]; - Client *c; - Monitor *m; - - if (pipe(pipefd) == -1) - return; - if (fork() == 0) { - close(pipefd[1]); - dup2(pipefd[0], STDIN_FILENO); - close(pipefd[0]); - setsid(); - execvp(((char **)arg->v)[0], (char **)arg->v); - die("dwl: execvp %s failed:", ((char **)arg->v)[0]); - } - - close(pipefd[0]); - wl_list_for_each(m, &mons, link) - wl_list_for_each(c, &clients, link) - if (VISIBLEON(c, m)) - dprintf(pipefd[1], "%d,%d %dx%d\n", - c->geom.x, c->geom.y, c->geom.width, c->geom.height); - close(pipefd[1]); -} - #ifdef XWAYLAND void activatex11(struct wl_listener *listener, void *data) -- cgit v1.2.3