x11: fix enter/leave events for frames
We need to pass all events on frames to GTK, even if we handled them internally, to make sure that the hover state is properly updated.
This commit is contained in:
parent
d53e04f4c8
commit
c55f64fdf2
@ -952,6 +952,10 @@ handle_input_xevent (MetaDisplay *display,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Don't eat events for GTK frames (we need to update the :hover state on buttons) */
|
||||||
|
if (window && window->frame && modified == window->frame->xwindow)
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
/* Don't pass these events through to Clutter / GTK+ */
|
/* Don't pass these events through to Clutter / GTK+ */
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user