display: Use XI2 constants for mode/detail focus event values
This makes no functional difference, except conceptual clarity. https://bugzilla.gnome.org/show_bug.cgi?id=647706
This commit is contained in:
parent
7a4c808e43
commit
d03ffd801e
@ -1966,10 +1966,10 @@ handle_window_focus_event (MetaDisplay *display,
|
|||||||
* keybinding is used.
|
* keybinding is used.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (event->mode == NotifyGrab ||
|
if (event->mode == XINotifyGrab ||
|
||||||
event->mode == NotifyUngrab ||
|
event->mode == XINotifyUngrab ||
|
||||||
/* From WindowMaker, ignore all funky pointer root events */
|
/* From WindowMaker, ignore all funky pointer root events */
|
||||||
event->detail > NotifyNonlinearVirtual)
|
event->detail > XINotifyNonlinearVirtual)
|
||||||
{
|
{
|
||||||
meta_topic (META_DEBUG_FOCUS,
|
meta_topic (META_DEBUG_FOCUS,
|
||||||
"Ignoring focus event generated by a grab or other weirdness\n");
|
"Ignoring focus event generated by a grab or other weirdness\n");
|
||||||
@ -1988,7 +1988,7 @@ handle_window_focus_event (MetaDisplay *display,
|
|||||||
}
|
}
|
||||||
else if (event->evtype == XI_FocusOut)
|
else if (event->evtype == XI_FocusOut)
|
||||||
{
|
{
|
||||||
if (event->detail == NotifyInferior)
|
if (event->detail == XINotifyInferior)
|
||||||
{
|
{
|
||||||
/* This event means the client moved focus to a subwindow */
|
/* This event means the client moved focus to a subwindow */
|
||||||
meta_topic (META_DEBUG_FOCUS,
|
meta_topic (META_DEBUG_FOCUS,
|
||||||
|
Loading…
Reference in New Issue
Block a user