diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-01-15 00:04:36 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-01-15 00:04:36 +0400 |
commit | dfdf07c21ae8cf91cf98c90d182652a00f080225 (patch) | |
tree | 78272d266d8bb78bdf20c2423b44d696bb9bc24e /intern | |
parent | ef0ed228ec15083021cd780f6245c390a5736013 (diff) |
fix [#33831] "Alt" key is "Alt Window Deactivated"
Patch from Patrick Zulke (pazul)
Diffstat (limited to 'intern')
-rw-r--r-- | intern/ghost/intern/GHOST_SystemX11.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/intern/ghost/intern/GHOST_SystemX11.cpp b/intern/ghost/intern/GHOST_SystemX11.cpp index f5cb0d9323c..4abcfcc73ae 100644 --- a/intern/ghost/intern/GHOST_SystemX11.cpp +++ b/intern/ghost/intern/GHOST_SystemX11.cpp @@ -785,6 +785,11 @@ GHOST_SystemX11::processEvent(XEvent *xe) /* May have to look at the type of event and filter some out. */ + if (xfe.detail != NotifyNonlinear) { + /* Needed for Ubuntu-Unity, see bug [#33831] */ + break; + } + GHOST_TEventType gtype = (xfe.type == FocusIn) ? GHOST_kEventWindowActivate : GHOST_kEventWindowDeactivate; |