summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Gerhardt <[email protected]>2015-06-09 18:50:06 +0200
committerSebastian Gerhardt <[email protected]>2015-06-09 21:06:25 +0200
commita2612db555e904be27aad46bc0802741091cb2ae (patch)
tree913a4ee25e8777d1829dcd4ea338bb21ce92d9fb
parent0235124b6d7a12f388910009dd505d38c07996b3 (diff)
downloadmarco-a2612db555e904be27aad46bc0802741091cb2ae.tar.bz2
marco-a2612db555e904be27aad46bc0802741091cb2ae.tar.xz
fix uninitialized data field for sending _NET_WM_SYNC_REQUEST event
If this field is left uninitialized, a client may mistake Marco to support more than the single update request counter described in EWMH 1.5.
-rw-r--r--src/core/window.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/window.c b/src/core/window.c
index 95d49885..254eb094 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -3333,6 +3333,7 @@ send_sync_request (MetaWindow *window)
ev.data.l[1] = meta_display_get_current_time (window->display);
ev.data.l[2] = XSyncValueLow32 (value);
ev.data.l[3] = XSyncValueHigh32 (value);
+ ev.data.l[4] = 0;
/* We don't need to trap errors here as we are already
* inside an error_trap_push()/pop() pair.