[PATCH] Don't set the SendEvent bit in XRREventToWire as the server does this for us

Sam Spilsbury sam.spilsbury at canonical.com
Tue Sep 13 19:17:33 PDT 2011


---
 src/Xrandr.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/Xrandr.c b/src/Xrandr.c
index 8ab1eae..5c0e2c3 100644
--- a/src/Xrandr.c
+++ b/src/Xrandr.c
@@ -157,7 +157,7 @@ static Status XRREventToWire(Display *dpy, XEvent *event, xEvent *wire)
       case RRScreenChangeNotify: {
 	xRRScreenChangeNotifyEvent *awire = (xRRScreenChangeNotifyEvent *) wire;
 	XRRScreenChangeNotifyEvent *aevent = (XRRScreenChangeNotifyEvent *) event;
-	awire->type = aevent->type | (aevent->send_event ? 0x80 : 0);
+	awire->type = aevent->type;
 	awire->rotation = (CARD8) aevent->rotation;
 	awire->sequenceNumber = aevent->serial & 0xFFFF;
 	awire->timestamp = aevent->timestamp;
@@ -175,7 +175,7 @@ static Status XRREventToWire(Display *dpy, XEvent *event, xEvent *wire)
       case RRNotify: {
 	xRRCrtcChangeNotifyEvent *awire = (xRRCrtcChangeNotifyEvent *) wire;
 	XRRNotifyEvent *aevent = (XRRNotifyEvent *) event;
-	awire->type = aevent->type | (aevent->send_event ? 0x80 : 0);
+	awire->type = aevent->type;
 	awire->sequenceNumber = aevent->serial & 0xFFFF;
 	awire->subCode = aevent->subtype;
 	switch (aevent->subtype) {
-- 
1.7.5.4


--=-tImb+IwkIjL7etbW/oXq--



More information about the xorg-devel mailing list