From 3e25ef46478b533c57b646cfe630809243f0c226 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Sat, 25 Jan 2025 11:50:46 +0700 Subject: [PATCH] #4484 python int type hint was getting translated to c int what we want is unsigned long, so have to use 'long' which gets translated correctly to: __Pyx_PyInt_From_unsigned_long(__pyx_v_xevent.xproperty.time); --- xpra/x11/bindings/window.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xpra/x11/bindings/window.pyx b/xpra/x11/bindings/window.pyx index 3cdd6440ff..c4d7d2fac5 100644 --- a/xpra/x11/bindings/window.pyx +++ b/xpra/x11/bindings/window.pyx @@ -1431,7 +1431,7 @@ cdef class X11WindowBindingsInstance(X11CoreBindingsInstance): xwindow, cursor, CurrentTime) return r == 0 - def get_server_time(self, Window xwindow) -> int: + def get_server_time(self, Window xwindow) -> long: cdef unsigned char c = b"a" cdef Atom timestamp_prop = self.str_to_atom("XPRA_TIMESTAMP_PROP") XChangeProperty(self.display, xwindow, timestamp_prop,