mirror of
https://github.com/yshui/picom.git
synced 2024-11-11 13:51:02 -05:00
core: added proper event handling for XESetWireToEvent
This commit is contained in:
parent
cee1287562
commit
07303ce2cb
2 changed files with 5 additions and 2 deletions
|
@ -7,6 +7,7 @@
|
||||||
#include <X11/extensions/sync.h>
|
#include <X11/extensions/sync.h>
|
||||||
#include <xcb/damage.h>
|
#include <xcb/damage.h>
|
||||||
#include <xcb/randr.h>
|
#include <xcb/randr.h>
|
||||||
|
#include <xcb/xcb_event.h>
|
||||||
|
|
||||||
#include "atom.h"
|
#include "atom.h"
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
|
@ -687,9 +688,9 @@ void ev_handle(session_t *ps, xcb_generic_event_t *ev) {
|
||||||
// For even more details, see:
|
// For even more details, see:
|
||||||
// https://bugs.freedesktop.org/show_bug.cgi?id=35945
|
// https://bugs.freedesktop.org/show_bug.cgi?id=35945
|
||||||
// https://lists.freedesktop.org/archives/xcb/2011-November/007337.html
|
// https://lists.freedesktop.org/archives/xcb/2011-November/007337.html
|
||||||
auto proc = XESetWireToEvent(ps->dpy, ev->response_type, 0);
|
auto proc = XESetWireToEvent(ps->dpy, XCB_EVENT_RESPONSE_TYPE(ev), 0);
|
||||||
if (proc) {
|
if (proc) {
|
||||||
XESetWireToEvent(ps->dpy, ev->response_type, proc);
|
XESetWireToEvent(ps->dpy, XCB_EVENT_RESPONSE_TYPE(ev), proc);
|
||||||
XEvent dummy;
|
XEvent dummy;
|
||||||
|
|
||||||
// Stop Xlib from complaining about lost sequence numbers.
|
// Stop Xlib from complaining about lost sequence numbers.
|
||||||
|
|
|
@ -31,6 +31,8 @@ foreach i : required_xcb_packages
|
||||||
base_deps += [dependency(i, version: '>=1.12.0', required: true)]
|
base_deps += [dependency(i, version: '>=1.12.0', required: true)]
|
||||||
endforeach
|
endforeach
|
||||||
|
|
||||||
|
base_deps += [dependency('xcb-util', version: '>=0.4.0', required: true)]
|
||||||
|
|
||||||
if not cc.has_header('uthash.h')
|
if not cc.has_header('uthash.h')
|
||||||
error('Dependency uthash not found')
|
error('Dependency uthash not found')
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in a new issue