Skip to content

Commit

Permalink
Merge pull request #3865 from dgl/fix-side-shadow
Browse files Browse the repository at this point in the history
Fix side buttons on win32 shadow server
  • Loading branch information
totaam authored May 26, 2023
2 parents 4170bfe + e442417 commit 6e939d6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions xpra/platform/win32/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -2519,6 +2519,7 @@
MONITOR_DEFAULTTONULL=0
MONITOR_DEFAULTTOPRIMARY=1
MOUSEEVENTF_ABSOLUTE=32768
MOUSEEVENTF_HWHEEL=4096
MOUSEEVENTF_LEFTDOWN=2
MOUSEEVENTF_LEFTUP=4
MOUSEEVENTF_MIDDLEDOWN=32
Expand Down Expand Up @@ -4712,6 +4713,8 @@
WVR_REDRAW=768
WVR_VALIDRECTS=1024
WVR_VREDRAW=512
XBUTTON1=1
XBUTTON2=2
cchTextLimitDefault=32767
lDefaultTab=720
yHeightCharPtsMost=1638
8 changes: 8 additions & 0 deletions xpra/platform/win32/shadow_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,14 @@
(4, False) : NOEVENT,
(5, True) : (win32con.MOUSEEVENTF_WHEEL, -win32con.WHEEL_DELTA),
(5, False) : NOEVENT,
(6, True) : (win32con.MOUSEEVENTF_HWHEEL, win32con.WHEEL_DELTA),
(6, False) : NOEVENT,
(7, True) : (win32con.MOUSEEVENTF_HWHEEL, -win32con.WHEEL_DELTA),
(7, False) : NOEVENT,
(8, True) : (win32con.MOUSEEVENTF_XDOWN, win32con.XBUTTON1),
(8, False) : (win32con.MOUSEEVENTF_XUP, win32con.XBUTTON1),
(9, True) : (win32con.MOUSEEVENTF_XDOWN, win32con.XBUTTON2),
(9, False) : (win32con.MOUSEEVENTF_XUP, win32con.XBUTTON2),
}

SEAMLESS = envbool("XPRA_WIN32_SEAMLESS", False)
Expand Down

0 comments on commit 6e939d6

Please sign in to comment.