Permalink
Browse files

A dirty, dirty hack to allow WMs using xpybutil to actually get the M…

…apRequestEvents they subscribe to.
  • Loading branch information...
1 parent dd7326d commit b9394a2d80d248c3d0023db9b617266a2c8f38ad @whitelynx whitelynx committed May 21, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 xpybutil/event.py
View
@@ -130,6 +130,8 @@ def main():
w = None
if isinstance(e, xproto.MappingNotifyEvent):
w = None
+ elif isinstance(e, xproto.MapRequestEvent):
+ w = root
elif hasattr(e, 'window'):
w = e.window
elif hasattr(e, 'event'):

0 comments on commit b9394a2

Please sign in to comment.