Skip to content

Commit

Permalink
prevent an unlikely race between "new-window" and "draw" packets: que…
Browse files Browse the repository at this point in the history
…ue the draw requests via idle_add so that the new-window packets will always be processed before we get the draw request (which needs window to draw on)

git-svn-id: https://xpra.org/svn/Xpra/trunk@2662 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Feb 5, 2013
1 parent 6c891fa commit e31e82d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xpra/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,12 +318,12 @@ def init_packet_handlers(self):
"desktop_size": self._process_desktop_size,
"window-icon": self._process_window_icon,
"sound-data": self._process_sound_data,
"draw": self._process_draw,
# "clipboard-*" packets are handled by a special case below.
}.items():
self._ui_packet_handlers[k] = v
#these handlers can run directly from the network thread:
for k,v in {
"draw": self._process_draw,
"ping": self._process_ping,
"ping_echo": self._process_ping_echo,
"info-response": self._process_info_response,
Expand Down

0 comments on commit e31e82d

Please sign in to comment.