aboutsummaryrefslogtreecommitdiffstats
path: root/xevents.c
diff options
context:
space:
mode:
authorokan2013-05-21 00:29:20 +0000
committerokan2013-05-21 00:29:20 +0000
commit976a0161becef40cda31090ffd17a12442905b0c (patch)
tree4147904636ec18f7e13e8408b7c9546c952f2043 /xevents.c
parent11ee162b7549c7340e9e3514589488aa6abb24cc (diff)
downloadcwm-976a0161becef40cda31090ffd17a12442905b0c.tar.gz
handle _NET_WM_STATE ClientMessage; from Alexander Polakov.
Diffstat (limited to '')
-rw-r--r--xevents.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/xevents.c b/xevents.c
index 25927ec..65d7628 100644
--- a/xevents.c
+++ b/xevents.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: xevents.c,v 1.81 2013/05/20 21:32:00 okan Exp $
+ * $OpenBSD: xevents.c,v 1.82 2013/05/21 00:29:20 okan Exp $
*/
/*
@@ -359,6 +359,10 @@ xev_handle_clientmessage(XEvent *ee)
client_ptrsave(old_cc);
client_ptrwarp(cc);
}
+ if (e->message_type == ewmh[_NET_WM_STATE].atom &&
+ e->format == 32)
+ xu_ewmh_handle_net_wm_state_msg(cc,
+ e->data.l[0], e->data.l[1], e->data.l[2]);
}
static void