don't make delayed focus-follows-mouse interupt menus and move/resizes

This commit is contained in:
Dana Jansens 2007-08-03 19:50:36 -04:00
parent fa05df8b0c
commit 1ed9988132

View file

@ -1837,6 +1837,9 @@ static gboolean focus_delay_func(gpointer data)
ObFocusDelayData *d = data; ObFocusDelayData *d = data;
Time old = event_curtime; Time old = event_curtime;
/* don't move focus and kill the menu or the move/resize */
if (menu_frame_visible || moveresize_in_progress) return FALSE;
event_curtime = d->time; event_curtime = d->time;
if (focus_client != d->client) { if (focus_client != d->client) {
if (client_focus(d->client) && config_focus_raise) if (client_focus(d->client) && config_focus_raise)