Skip to content

Commit

Permalink
add list of all known win32 events for better event debugging
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@8546 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Jan 25, 2015
1 parent f66360a commit 03b71bc
Show file tree
Hide file tree
Showing 2 changed files with 751 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/xpra/platform/win32/win32_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from xpra.log import Logger
log = Logger("events", "win32")

from xpra.platform.win32.wndproc_events import WNDPROC_EVENT_NAMES

#no idea where we're supposed to get those from:
WM_WTSSESSION_CHANGE = 0x02b1
Expand All @@ -32,10 +33,7 @@
win32con.WM_TIMECHANGE : "WM_TIMECHANGE: time change event",
}
KNOWN_WM_EVENTS = IGNORE_EVENTS.copy()
for x in dir(win32con):
if x.startswith("WM_"):
v = getattr(win32con, x)
KNOWN_WM_EVENTS[v] = x
KNOWN_WM_EVENTS.update(WNDPROC_EVENT_NAMES)
NIN_BALLOONSHOW = win32con.WM_USER + 2
NIN_BALLOONHIDE = win32con.WM_USER + 3
NIN_BALLOONTIMEOUT = win32con.WM_USER + 4
Expand All @@ -48,6 +46,12 @@
}
KNOWN_WM_EVENTS.update(BALLOON_EVENTS)

#anything else we don't have yet:
for x in dir(win32con):
if x.startswith("WM_") and x not in KNOWN_WM_EVENTS:
v = getattr(win32con, x)
KNOWN_WM_EVENTS[v] = x


singleton = None
def get_win32_event_listener(create=True):
Expand Down
Loading

0 comments on commit 03b71bc

Please sign in to comment.