summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-12-13 12:39:01 -0800
committerKeith Packard <keithp@keithp.com>2013-12-13 12:39:01 -0800
commit466657644f6046f4409a4b9be688954583afc639 (patch)
tree739993203020b3f44fd49b51ec148bac910648be
parentf4061913a02987215984bcb0964938d873c2cd52 (diff)
Add kind/mode to Complete, set pixmap in Idle
Fix a couple of event issues noticed by Fredrik Höglund -- XPresentCompleteNotifyEvent was missing kind and mode fields, and the pixmap field was never getting set in the XPresentIdleNotifyEvent. Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--include/X11/extensions/Xpresent.h2
-rw-r--r--src/Xpresent.c3
2 files changed, 5 insertions, 0 deletions
diff --git a/include/X11/extensions/Xpresent.h b/include/X11/extensions/Xpresent.h
index 87f446c..48ba1ae 100644
--- a/include/X11/extensions/Xpresent.h
+++ b/include/X11/extensions/Xpresent.h
@@ -87,6 +87,8 @@ typedef struct {
uint32_t serial_number;
uint64_t ust;
uint64_t msc;
+ uint8_t kind;
+ uint8_t mode;
} XPresentCompleteNotifyEvent;
typedef struct {
diff --git a/src/Xpresent.c b/src/Xpresent.c
index 36dd7dc..b49ecbc 100644
--- a/src/Xpresent.c
+++ b/src/Xpresent.c
@@ -175,6 +175,8 @@ XPresentWireToCookie(Display *dpy,
ce->serial_number = proto->serial;
ce->ust = proto->ust;
ce->msc = proto->msc;
+ ce->kind = proto->kind;
+ ce->mode = proto->mode;
break;
}
@@ -193,6 +195,7 @@ XPresentWireToCookie(Display *dpy,
ce->eid = proto->eid;
ce->window = proto->window;
ce->serial_number = proto->serial;
+ ce->pixmap = proto->pixmap;
ce->idle_fence = proto->idle_fence;
break;