diff options
Diffstat (limited to 'xorg-server/present/present_event.c')
-rw-r--r-- | xorg-server/present/present_event.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/xorg-server/present/present_event.c b/xorg-server/present/present_event.c index 9015c9371..3d0aaa799 100644 --- a/xorg-server/present/present_event.c +++ b/xorg-server/present/present_event.c @@ -136,6 +136,14 @@ present_send_config_notify(WindowPtr window, int x, int y, int w, int h, int bw, } } +static present_complete_notify_proc complete_notify; + +void +present_register_complete_notify(present_complete_notify_proc proc) +{ + complete_notify = proc; +} + void present_send_complete_notify(WindowPtr window, CARD8 kind, CARD8 mode, CARD32 serial, uint64_t ust, uint64_t msc) { @@ -163,6 +171,8 @@ present_send_complete_notify(WindowPtr window, CARD8 kind, CARD8 mode, CARD32 se } } } + if (complete_notify) + (*complete_notify)(window, mode, serial, ust, msc); } void |