Skip to content

Commit

Permalink
#4318 wait until after the handshake
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Aug 12, 2024
1 parent 1893aad commit 377fae0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions xpra/client/mixins/windows.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,11 +397,6 @@ def run(self) -> ExitValue:
if FAKE_SUSPEND_RESUME:
GLib.timeout_add(FAKE_SUSPEND_RESUME * 1000, self.suspend)
GLib.timeout_add(FAKE_SUSPEND_RESUME * 1000 * 2, self.resume)
if POLL_POINTER:
if is_Wayland():
log.warn("Warning: pointer polling is unlikely to work under Wayland")
log.warn(" and may cause problems")
self.poll_pointer_timer = GLib.timeout_add(POLL_POINTER, self.poll_pointer)
return ExitCode.OK

def cleanup(self) -> None:
Expand Down Expand Up @@ -515,6 +510,11 @@ def parse_server_capabilities(self, c: typedict) -> bool:
# input devices:
self.server_input_devices = c.strget("input-devices")
self.server_precise_wheel = c.boolget("wheel.precise", False)
if POLL_POINTER:
if is_Wayland():
log.warn("Warning: pointer polling is unlikely to work under Wayland")
log.warn(" and may cause problems")
self.poll_pointer_timer = GLib.timeout_add(POLL_POINTER, self.poll_pointer)
return True

######################################################################
Expand Down

0 comments on commit 377fae0

Please sign in to comment.