fix of XGetTransientForHint in manage() 06f7eed1
Premysl Hruby · 2008-08-14 22:35 1 file(s) · +2 −3
dwm.c +2 −3
865 865
void
866 866
manage(Window w, XWindowAttributes *wa) {
867 867
	Client *c, *t = NULL;
868 -
	Status rettrans;
869 868
	Window trans;
870 869
	XWindowChanges wc;
871 870
903 902
	XSelectInput(dpy, w, EnterWindowMask|FocusChangeMask|PropertyChangeMask|StructureNotifyMask);
904 903
	grabbuttons(c, False);
905 904
	updatetitle(c);
906 -
	if((rettrans = XGetTransientForHint(dpy, w, &trans)) == Success)
905 +
	if(XGetTransientForHint(dpy, w, &trans))
907 906
		t = getclient(trans);
908 907
	if(t)
909 908
		c->tags = t->tags;
910 909
	else
911 910
		applyrules(c);
912 911
	if(!c->isfloating)
913 -
		c->isfloating = (rettrans == Success) || c->isfixed;
912 +
		c->isfloating = trans || c->isfixed;
914 913
	if(c->isfloating)
915 914
		XRaiseWindow(dpy, c->win);
916 915
	attach(c);