about summary refs log tree commit diff stats
path: root/event.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@suckless.org>2007-02-14 08:14:41 +0100
committerAnselm R. Garbe <arg@suckless.org>2007-02-14 08:14:41 +0100
commit64cfebc5e7d005dfff93a2468df860522fad085a (patch)
treec7d6a4bedfed8d317d17cbade8cf90b7211fd5fa /event.c
parent7a095d0ce241698d8b3ea896499031f1d72b622e (diff)
downloaddwm-64cfebc5e7d005dfff93a2468df860522fad085a.tar.gz
made configurerequest more tidy
Diffstat (limited to 'event.c')
-rw-r--r--event.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/event.c b/event.c
index a2df33f..9a91d49 100644
--- a/event.c
+++ b/event.c
@@ -173,12 +173,17 @@ configurerequest(XEvent *e) {
 
 	if((c = getclient(ev->window))) {
 		c->ismax = False;
-		c->border = (ev->value_mask & CWBorderWidth) ? ev->border_width : c->border;
+		if(ev->value_mask & CWBorderWidth)
+			c->border = ev->border_width;
 		if(c->isfixed || c->isfloat || (arrange == dofloat)) {
-			c->x = (ev->value_mask & CWX) ? ev->x : c->x;
-			c->y = (ev->value_mask & CWY) ? ev->y : c->y;
-			c->w = (ev->value_mask & CWWidth) ? ev->width : c->w;
-			c->h = (ev->value_mask & CWHeight) ? ev->height : c->h;
+			if(ev->value_mask & CWX)
+				c->x = ev->x;
+			if(ev->value_mask & CWY)
+				c->y = ev->y;
+			if(ev->value_mask & CWWidth)
+				c->w = ev->width;
+			if(ev->value_mask & CWHeight)
+				c->h = ev->height;
 			if((ev->value_mask & (CWX | CWY)) && !(ev->value_mask & (CWWidth | CWHeight)))
 				configure(c);
 			resize(c, False);
vabit.com> 2010-09-11 22:56:00 +0200 committer hut <hut@lavabit.com> 2010-09-11 22:56:00 +0200 Makefile, setup.py: Fixed `make doc`' href='/akspecs/ranger/commit/setup.py?h=v1.9.1&id=27eec7c6b53303acfd7713f7cc696ea50894a6b1'>27eec7c6 ^
19978ad2 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
                     
                                                                       
                                                                        



                     



                                                    
                                                




                                                                 
                                                            
                                                                  

                                                                    




                                                
                                          


                                            
                                                
iv>
1
2
3
4
5
6
7
8
9
10
11
12
13
14