Skip to content

Commit

Permalink
#1152: add XPRA_FORWARD_WINDOWS_KEY to enable windows-key forwarding,…
Browse files Browse the repository at this point in the history
… disabled by default now

git-svn-id: https://xpra.org/svn/Xpra/trunk@12229 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Mar 26, 2016
1 parent 2a27dc7 commit 8b23823
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/xpra/platform/win32/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@

DPI_AWARE = os.environ.get("XPRA_DPI_AWARE", "1")=="1"
DPI_AWARENESS = int(os.environ.get("XPRA_DPI_AWARENESS", "1"))
FORWARD_WINDOWS_KEY = os.environ.get("XPRA_FORWARD_WINDOWS_KEY", "0")=="1"


KNOWN_EVENTS = {}
Expand Down Expand Up @@ -705,8 +706,9 @@ def __init__(self, client, opts):
except Exception as e:
log.error("cannot register focus and power callbacks: %s", e)
self.keyboard_hook_id = None
from xpra.make_thread import make_thread
make_thread(self.init_keyboard_listener, "keyboard-listener", daemon=True).start()
if FORWARD_WINDOWS_KEY:
from xpra.make_thread import make_thread
make_thread(self.init_keyboard_listener, "keyboard-listener", daemon=True).start()

def cleanup(self):
log("ClientExtras.cleanup()")
Expand Down

0 comments on commit 8b23823

Please sign in to comment.