fixed
This commit is contained in:
		
							
								
								
									
										12
									
								
								client.c
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								client.c
									
									
									
									
									
								
							@@ -49,10 +49,12 @@ ban(Client *c)
 | 
			
		||||
void
 | 
			
		||||
focus(Client *c)
 | 
			
		||||
{
 | 
			
		||||
	if (!issel)
 | 
			
		||||
		return;
 | 
			
		||||
	Client *old = sel;
 | 
			
		||||
 | 
			
		||||
	if (!issel)
 | 
			
		||||
		return;
 | 
			
		||||
	if(sel && sel->ismax)
 | 
			
		||||
		togglemax(NULL);
 | 
			
		||||
	sel = c;
 | 
			
		||||
	if(old && old != c)
 | 
			
		||||
		drawtitle(old);
 | 
			
		||||
@@ -68,9 +70,6 @@ focusnext(Arg *arg)
 | 
			
		||||
	if(!sel)
 | 
			
		||||
		return;
 | 
			
		||||
 | 
			
		||||
	if(sel->ismax)
 | 
			
		||||
		togglemax(NULL);
 | 
			
		||||
 | 
			
		||||
	if(!(c = getnext(sel->next)))
 | 
			
		||||
		c = getnext(clients);
 | 
			
		||||
	if(c) {
 | 
			
		||||
@@ -87,9 +86,6 @@ focusprev(Arg *arg)
 | 
			
		||||
	if(!sel)
 | 
			
		||||
		return;
 | 
			
		||||
 | 
			
		||||
	if(sel->ismax)
 | 
			
		||||
		togglemax(NULL);
 | 
			
		||||
 | 
			
		||||
	if(!(c = getprev(sel->prev))) {
 | 
			
		||||
		for(c = clients; c && c->next; c = c->next);
 | 
			
		||||
		c = getprev(c);
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										2
									
								
								event.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								event.c
									
									
									
									
									
								
							@@ -144,11 +144,11 @@ buttonpress(XEvent *e)
 | 
			
		||||
static void
 | 
			
		||||
configurerequest(XEvent *e)
 | 
			
		||||
{
 | 
			
		||||
	unsigned long newmask;
 | 
			
		||||
	Client *c;
 | 
			
		||||
	XConfigureRequestEvent *ev = &e->xconfigurerequest;
 | 
			
		||||
	XEvent synev;
 | 
			
		||||
	XWindowChanges wc;
 | 
			
		||||
	unsigned long newmask;
 | 
			
		||||
 | 
			
		||||
	if((c = getclient(ev->window))) {
 | 
			
		||||
		gravitate(c, True);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user