display: Remove ungrab_should_not_cause_focus_window

It's been unused ever since we removed tabpopup.c
This commit is contained in:
Jasper St. Pierre 2015-01-17 17:55:21 -08:00
parent ef32bbdc99
commit 5c66bee84b
4 changed files with 0 additions and 14 deletions

View File

@ -175,7 +175,6 @@ struct _MetaDisplay
* ignore
*/
unsigned long ignored_crossing_serials[N_IGNORED_CROSSING_SERIALS];
Window ungrab_should_not_cause_focus_window;
guint32 current_time;

View File

@ -651,7 +651,6 @@ meta_display_open (void)
display->ignored_crossing_serials[i] = 0;
++i;
}
display->ungrab_should_not_cause_focus_window = None;
display->current_time = CurrentTime;
display->sentinel_counter = 0;

View File

@ -7559,8 +7559,6 @@ reset_ignored_crossing_serials (MetaDisplay *display)
display->ignored_crossing_serials[i] = 0;
++i;
}
display->ungrab_should_not_cause_focus_window = None;
}
typedef struct

View File

@ -1717,16 +1717,6 @@ meta_display_handle_xevent (MetaDisplay *display,
event->xany.serial);
}
}
else if (input_event &&
input_event->evtype == XI_Leave &&
((XILeaveEvent *)input_event)->mode == XINotifyUngrab &&
modified == display->ungrab_should_not_cause_focus_window)
{
meta_display_add_ignored_crossing_serial (display, event->xany.serial);
meta_topic (META_DEBUG_FOCUS,
"Adding LeaveNotify serial %lu to ignored focus serials\n",
event->xany.serial);
}
#ifdef HAVE_XI23
if (meta_display_process_barrier_xevent (display, input_event))