Skip to content

Commit

Permalink
#3714 xi2 needs an X11 context error checker
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Dec 26, 2022
1 parent 5fabc77 commit f2e9710
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion xpra/x11/bindings/xi2_bindings.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ from collections import deque
from xpra.log import Logger
log = Logger("x11", "bindings", "xinput")

from xpra.gtk_common.error import xlog
from xpra.x11.common import X11Event
from xpra.os_util import hexstr

Expand Down Expand Up @@ -438,7 +439,11 @@ cdef class X11XI2BindingsInstance(X11CoreBindingsInstance):
XISelectEvents(self.display, win, evmasks, 1)
XFlush(self.display)

def parse_xi_event(self, display, uintptr_t _cookie):
def parse_xi_event(self, display, _cookie):
with xlog:
return self.do_parse_xi_event(display, _cookie)

cdef do_parse_xi_event(self, display, uintptr_t _cookie):
self.context_check("parse_xi_event")
cdef XGenericEventCookie *cookie = <XGenericEventCookie*> _cookie
cdef XIHierarchyEvent *hierarchy_e
Expand Down

0 comments on commit f2e9710

Please sign in to comment.