Skip to content

Commit

Permalink
#4484 python int type hint was getting translated to c int
Browse files Browse the repository at this point in the history
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);
  • Loading branch information
totaam committed Jan 25, 2025
1 parent 104e22b commit 131799b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xpra/x11/bindings/window.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1330,7 +1330,7 @@ cdef class X11WindowBindingsInstance(X11CoreBindingsInstance):
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.xatom("XPRA_TIMESTAMP_PROP")
XChangeProperty(self.display, xwindow, timestamp_prop,
Expand Down

0 comments on commit 131799b

Please sign in to comment.