xiwm

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

commit
81dd1b9ec700ef2a02088d84de6d2c6f96cdbdb1
parent
dc7a5438e4dcbf2b9fc2335a97bcaf13bdbd753a
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2019-10-13 08:26
automatically restack after focus

Diffstat

M xiwm.c 8 ++------

1 files changed, 2 insertions, 6 deletions


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

@@ -493,6 +493,7 @@ focus(Client *c)
  493   493 		XDeleteProperty(dpy, root, netatom[NetActiveWindow]);
  494   494 	}
  495   495 	sel = c;
   -1   496 	restack();
  496   497 }
  497   498 
  498   499 void
@@ -586,7 +587,6 @@ buttonpress(XEvent *e)
  586   587 		if (c->isdock)
  587   588 			return;
  588   589 		focus(c);
  589    -1 		restack();
  590   590 		for (i = 0; i < LENGTH(buttons); i++)
  591   591 			if (buttons[i].func && buttons[i].button == ev->button
  592   592 			&& CLEANMASK(buttons[i].mask) == CLEANMASK(ev->state))
@@ -727,10 +727,8 @@ focusstack(const Arg *arg)
  727   727 				if (ISVISIBLE(i))
  728   728 					c = i;
  729   729 	}
  730    -1 	if (c) {
   -1   730 	if (c)
  731   731 		focus(c);
  732    -1 		restack();
  733    -1 	}
  734   732 }
  735   733 
  736   734 void
@@ -779,7 +777,6 @@ movemouse(const Arg *arg)
  779   777 		return;
  780   778 	if (c->isfullscreen || c->position != PFloat)
  781   779 		return;
  782    -1 	restack();
  783   780 	ocx = c->x;
  784   781 	ocy = c->y;
  785   782 	if (XGrabPointer(dpy, root, False, MOUSEMASK, GrabModeAsync, GrabModeAsync,
@@ -821,7 +818,6 @@ resizemouse(const Arg *arg)
  821   818 		return;
  822   819 	if (c->isfullscreen || c->position != PFloat)
  823   820 		return;
  824    -1 	restack();
  825   821 	ocx = c->x;
  826   822 	ocy = c->y;
  827   823 	if (XGrabPointer(dpy, root, False, MOUSEMASK, GrabModeAsync, GrabModeAsync,