summary refs log tree commit diff
diff options
context:
space:
mode:
authorokan <okan>2013-07-15 23:51:59 +0000
committerokan <okan>2013-07-15 23:51:59 +0000
commit4ef96a27726725e2a0919e4de59ee00114b0d0e2 (patch)
tree4d09b7ef0f52147ff894174fd09dac349eab60d4
parent4119b5c065ee32189f26a0a95d4c36539003b142 (diff)
downloadcwm-4ef96a27726725e2a0919e4de59ee00114b0d0e2.tar.gz
cwm-4ef96a27726725e2a0919e4de59ee00114b0d0e2.tar.xz
cwm-4ef96a27726725e2a0919e4de59ee00114b0d0e2.zip
collapse lines
-rw-r--r--client.c3
-rw-r--r--xevents.c10
-rw-r--r--xutil.c3
3 files changed, 6 insertions, 10 deletions
diff --git a/client.c b/client.c
index b92132a..9a90588 100644
--- a/client.c
+++ b/client.c
@@ -840,8 +840,7 @@ client_getmwmhints(struct client_ctx *cc)
 {
 	struct mwm_hints	*mwmh;
 
-	if (xu_getprop(cc->win,
-	    cwmh[_MOTIF_WM_HINTS], cwmh[_MOTIF_WM_HINTS],
+	if (xu_getprop(cc->win, cwmh[_MOTIF_WM_HINTS], cwmh[_MOTIF_WM_HINTS],
 	    PROP_MWM_HINTS_ELEMENTS, (u_char **)&mwmh) == MWM_NUMHINTS)
 		if (mwmh->flags & MWM_HINTS_DECORATIONS &&
 		    !(mwmh->decorations & MWM_DECOR_ALL) &&
diff --git a/xevents.c b/xevents.c
index 2d9f8dd..4b6ad60 100644
--- a/xevents.c
+++ b/xevents.c
@@ -348,22 +348,20 @@ xev_handle_clientmessage(XEvent *ee)
 	if ((cc = client_find(e->window)) == NULL)
 		return;
 
-	if (e->message_type == cwmh[WM_CHANGE_STATE] &&
-	    e->format == 32 && e->data.l[0] == IconicState)
+	if (e->message_type == cwmh[WM_CHANGE_STATE] && e->format == 32 &&
+	    e->data.l[0] == IconicState)
 		client_hide(cc);
 
 	if (e->message_type == ewmh[_NET_CLOSE_WINDOW])
 		client_send_delete(cc);
 
-	if (e->message_type == ewmh[_NET_ACTIVE_WINDOW] &&
-	    e->format == 32) {
+	if (e->message_type == ewmh[_NET_ACTIVE_WINDOW] && e->format == 32) {
 		old_cc = client_current();
 		if (old_cc)
 			client_ptrsave(old_cc);
 		client_ptrwarp(cc);
 	}
-	if (e->message_type == ewmh[_NET_WM_STATE] &&
-	    e->format == 32)
+	if (e->message_type == ewmh[_NET_WM_STATE] && e->format == 32)
 		xu_ewmh_handle_net_wm_state_msg(cc,
 		    e->data.l[0], e->data.l[1], e->data.l[2]);
 }
diff --git a/xutil.c b/xutil.c
index 932835d..1e408a9 100644
--- a/xutil.c
+++ b/xutil.c
@@ -177,8 +177,7 @@ xu_set_wm_state(Window win, int state)
 	dat[0] = state;
 	dat[1] = None;
 
-	XChangeProperty(X_Dpy, win,
-	    cwmh[WM_STATE], cwmh[WM_STATE], 32,
+	XChangeProperty(X_Dpy, win, cwmh[WM_STATE], cwmh[WM_STATE], 32,
 	    PropModeReplace, (unsigned char *)dat, 2);
 }