xiwm

simple window manager
git clone https://git.ce9e.org/xiwm.git

commit
16766b00b73650c3fc539ea25d8c55cec1ed0da3
parent
4704536322b396f8a8294cd21e5fda4d635646b0
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2019-10-13 07:08
ignore pointer events on dock

Diffstat

M xiwm.c 4 +++-

1 files changed, 3 insertions, 1 deletions


diff --git a/xiwm.c b/xiwm.c

@@ -621,9 +621,11 @@ buttonpress(XEvent *e)
  621   621 	XButtonPressedEvent *ev = &e->xbutton;
  622   622 
  623   623 	if ((c = wintoclient(ev->window))) {
   -1   624 		XAllowEvents(dpy, ReplayPointer, CurrentTime);
   -1   625 		if (c->isdock)
   -1   626 			return;
  624   627 		focus(c);
  625   628 		restack();
  626    -1 		XAllowEvents(dpy, ReplayPointer, CurrentTime);
  627   629 		for (i = 0; i < LENGTH(buttons); i++)
  628   630 			if (buttons[i].func && buttons[i].button == ev->button
  629   631 			&& CLEANMASK(buttons[i].mask) == CLEANMASK(ev->state))