Skip to content

Commit

Permalink
#1131: make threshold configurable using XPRA_WHEEL_DELTA
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@12290 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Mar 30, 2016
1 parent 3f2f42e commit 6f54d4d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/xpra/platform/win32/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@
DPI_AWARENESS = int(os.environ.get("XPRA_DPI_AWARENESS", "1"))
FORWARD_WINDOWS_KEY = os.environ.get("XPRA_FORWARD_WINDOWS_KEY", "0")=="1"
WHEEL = os.environ.get("XPRA_WHEEL", "1")=="1"
WHEEL_DELTA = int(os.environ.get("XPRA_WHEEL_DELTA", "120"))
assert WHEEL_DELTA>0


KNOWN_EVENTS = {}
Expand Down Expand Up @@ -379,7 +381,6 @@ def inputlangchange(hwnd, event, wParam, lParam):
window.keyboard_layout_changed("WM_INPUTLANGCHANGE", wParam, lParam)
win32hooks.add_window_event_handler(win32con.WM_INPUTLANGCHANGE, inputlangchange)
if WHEEL:
WHEEL_DELTA = 120
VERTICAL = "vertical"
HORIZONTAL = "horizontal"
class WheelEvent(AdHocStruct):
Expand Down

0 comments on commit 6f54d4d

Please sign in to comment.