Skip to content

Commit

Permalink
make it possible to turn off simulated clicks using an env var
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@11812 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Feb 2, 2016
1 parent 5d34cdb commit 17cc834
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/xpra/client/client_window_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@


REPAINT_ALL = os.environ.get("XPRA_REPAINT_ALL", "")
SIMULATE_MOUSE_DOWN = os.environ.get("XPRA_SIMULATE_MOUSE_DOWN", "1")=="1"


class ClientWindowBase(ClientWidgetBase):
Expand Down Expand Up @@ -632,7 +633,7 @@ def _button_action(self, button, event, depressed):
def send_button(pressed):
self._client.send_button(wid, button, pressed, pointer, modifiers, buttons)
pressed_state = self.button_state.get(button, False)
if pressed_state is False and depressed is False:
if SIMULATE_MOUSE_DOWN and pressed_state is False and depressed is False:
mouselog("button action: simulating a missing mouse-down event for window %s before sending the mouse-up event", wid)
#(needed for some dialogs on win32):
send_button(True)
Expand Down

0 comments on commit 17cc834

Please sign in to comment.