aboutsummaryrefslogtreecommitdiffstats
path: root/xevents.c
diff options
context:
space:
mode:
authorokan2014-01-02 22:26:27 +0000
committerokan2014-01-02 22:26:27 +0000
commit4b9c8d497017a2ae91416a04ee4557752e07b7fd (patch)
tree3d246b5ad2b694bacfea2032d2f1ac4c4bdfb241 /xevents.c
parentab487a45dab25d30ce0645cfee16725e22c2c179 (diff)
downloadcwm-4b9c8d497017a2ae91416a04ee4557752e07b7fd.tar.gz
Accept _NET_WM_DESKTOP clientmessage; from Thomas Adam
Diffstat (limited to 'xevents.c')
-rw-r--r--xevents.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/xevents.c b/xevents.c
index 7841824..1f5cdc4 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.101 2014/01/02 21:30:20 okan Exp $
+ * $OpenBSD: xevents.c,v 1.102 2014/01/02 22:26:27 okan Exp $
*/
/*
@@ -342,6 +342,10 @@ xev_handle_clientmessage(XEvent *ee)
client_ptrsave(old_cc);
client_ptrwarp(cc);
}
+
+ if (e->message_type == ewmh[_NET_WM_DESKTOP] && e->format == 32)
+ group_movetogroup(cc, e->data.l[0]);
+
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]);