client.c
changeset 715 5b3e4cdb6674
parent 714 7034ee0f48d6
child 716 4ce65f61f01b
equal deleted inserted replaced
714:7034ee0f48d6 715:5b3e4cdb6674
    93 	}
    93 	}
    94 	sel = c;
    94 	sel = c;
    95 	drawstatus();
    95 	drawstatus();
    96 	if(!activescreen)
    96 	if(!activescreen)
    97 		return;
    97 		return;
    98 	if(sel) {
    98 	if(c) {
    99 		XSetWindowBorder(dpy, c->win, dc.sel[ColBorder]);
    99 		XSetWindowBorder(dpy, c->win, dc.sel[ColBorder]);
   100 		XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime);
   100 		XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime);
   101 	}
   101 	}
   102 	else
   102 	else
   103 		XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime);
   103 		XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime);
   155 	c->proto = getproto(c->win);
   155 	c->proto = getproto(c->win);
   156 	XSelectInput(dpy, c->win,
   156 	XSelectInput(dpy, c->win,
   157 		StructureNotifyMask | PropertyChangeMask | EnterWindowMask);
   157 		StructureNotifyMask | PropertyChangeMask | EnterWindowMask);
   158 	XGetTransientForHint(dpy, c->win, &trans);
   158 	XGetTransientForHint(dpy, c->win, &trans);
   159 	grabbuttons(c, False);
   159 	grabbuttons(c, False);
       
   160 	XSetWindowBorder(dpy, c->win, dc.norm[ColBorder]);
   160 	updatetitle(c);
   161 	updatetitle(c);
   161 	settags(c, getclient(trans));
   162 	settags(c, getclient(trans));
   162 	if(!c->isfloat)
   163 	if(!c->isfloat)
   163 		c->isfloat = trans || c->isfixed;
   164 		c->isfloat = trans || c->isfixed;
   164 	if(clients)
   165 	if(clients)