Bugfix: on Linux (X11) the inactive window was not getting mouse-move events.

This feature has been working in OSX for long - to see mouse-overs on buttons
from inactive windows (and tooltips) and allow a button to be active for
input right away.

Will need check by linuxers if this works satisfying. Also Windows now might
support this feature.
This commit is contained in:
Ton Roosendaal
2012-11-06 13:22:33 +00:00
parent 804f642ebd
commit 48f968edc2

View File

@@ -2731,10 +2731,9 @@ void wm_event_add_ghostevent(wmWindowManager *wm, wmWindow *win, int type, int U
event = *evt;
switch (type) {
/* mouse move */
/* mouse move, also to inactive window (X11 does this) */
case GHOST_kEventCursorMove:
{
if (win->active) {
GHOST_TEventCursorData *cd = customdata;
wmEvent *lastevent = win->queue.last;
int cx, cy;
@@ -2771,7 +2770,6 @@ void wm_event_add_ghostevent(wmWindowManager *wm, wmWindow *win, int type, int U
wm_event_add(owin, &oevent);
}
}
break;
}
case GHOST_kEventTrackpad: