make public

2002-10-24  Havoc Pennington  <hp@pobox.com>

	* src/window.c (meta_window_get_icon_geometry): make public

	* src/screen.c (meta_screen_ensure_tab_popup): put the alt+tab
	highlight-window indicator on the icon, not the window itself,
	if the window is minimized.
This commit is contained in:
Havoc Pennington 2002-10-24 05:21:51 +00:00 committed by Havoc Pennington
parent 15a05467bd
commit 9702903343
4 changed files with 16 additions and 5 deletions

View File

@ -1,3 +1,11 @@
2002-10-24 Havoc Pennington <hp@pobox.com>
* src/window.c (meta_window_get_icon_geometry): make public
* src/screen.c (meta_screen_ensure_tab_popup): put the alt+tab
highlight-window indicator on the icon, not the window itself,
if the window is minimized.
2002-10-24 Havoc Pennington <hp@pobox.com>
* src/display.c (meta_display_get_tab_list): put minimized windows

View File

@ -1005,7 +1005,10 @@ meta_screen_ensure_tab_popup (MetaScreen *screen,
entries[i].key = (MetaTabEntryKey) window->xwindow;
entries[i].title = window->title;
entries[i].icon = window->icon;
meta_window_get_outer_rect (window, &r);
if (!window->minimized || !meta_window_get_icon_geometry (window, &r))
meta_window_get_outer_rect (window, &r);
entries[i].x = r.x;
entries[i].y = r.y;
entries[i].width = r.width;

View File

@ -102,9 +102,6 @@ static void meta_window_hide (MetaWindow *window);
static GList* meta_window_get_workspaces (MetaWindow *window);
static gboolean meta_window_get_icon_geometry (MetaWindow *window,
MetaRectangle *rect);
static void meta_window_save_rect (MetaWindow *window);
static void adjust_for_gravity (MetaWindow *window,
@ -4499,7 +4496,7 @@ update_mwm_hints (MetaWindow *window)
recalc_window_features (window);
}
static gboolean
gboolean
meta_window_get_icon_geometry (MetaWindow *window,
MetaRectangle *rect)
{

View File

@ -430,4 +430,7 @@ void meta_window_update_resize_grab_op (MetaWindow *window,
void meta_window_update_layer (MetaWindow *window);
gboolean meta_window_get_icon_geometry (MetaWindow *window,
MetaRectangle *rect);
#endif