mirror of
https://github.com/brl/mutter.git
synced 2025-08-07 00:54:42 +00:00
avoid focusing a window on tab popup popdown
2001-08-29 Havoc Pennington <hp@pobox.com> * src/display.c (event_callback): avoid focusing a window on tab popup popdown * src/screen.c (meta_screen_ensure_tab_popup): compute frame outline size here
This commit is contained in:

committed by
Havoc Pennington

parent
6d31d4756e
commit
3e1c68b88a
24
src/ui.c
24
src/ui.c
@@ -171,7 +171,7 @@ meta_ui_unmap_frame (MetaUI *ui,
|
||||
|
||||
window = gdk_xid_table_lookup (xwindow);
|
||||
|
||||
if (window)
|
||||
if (window)
|
||||
gdk_window_hide (window);
|
||||
}
|
||||
|
||||
@@ -270,7 +270,10 @@ meta_image_window_set_showing (MetaImageWindow *iw,
|
||||
if (showing)
|
||||
gtk_widget_show_all (iw->window);
|
||||
else
|
||||
gtk_widget_hide (iw->window);
|
||||
{
|
||||
gtk_widget_hide (iw->window);
|
||||
meta_core_increment_event_serial (gdk_display);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
@@ -424,3 +427,20 @@ meta_ui_get_default_window_icon (MetaUI *ui)
|
||||
GTK_ICON_SIZE_LARGE_TOOLBAR,
|
||||
NULL);
|
||||
}
|
||||
|
||||
gboolean
|
||||
meta_ui_window_should_not_cause_focus (Display *xdisplay,
|
||||
Window xwindow)
|
||||
{
|
||||
GdkWindow *window;
|
||||
|
||||
window = gdk_xid_table_lookup (xwindow);
|
||||
|
||||
/* we shouldn't cause focus if we're an override redirect
|
||||
* toplevel which is not foreign
|
||||
*/
|
||||
if (window && gdk_window_get_type (window) == GDK_WINDOW_TEMP)
|
||||
return TRUE;
|
||||
else
|
||||
return FALSE;
|
||||
}
|
||||
|
Reference in New Issue
Block a user