mirror of
https://github.com/brl/mutter.git
synced 2025-03-25 04:33:52 +00:00
Increase typical icon size to 96
Since we want nice alt-tab applications for gnome-shell, we should up the limit to 96. In the future, we probably want to get rid of the icon-cache, and allow looking up a correctly sized icon directly from the window. To prevent app breakage, set the legacy WM_HINTS pixmap size directly to 32x32. https://bugzilla.gnome.org/show_bug.cgi?id=689651
This commit is contained in:
parent
8830814d70
commit
9d904f9a85
@ -311,13 +311,20 @@ set_wm_icon_size_hint (MetaScreen *screen)
|
|||||||
#define N_VALS 6
|
#define N_VALS 6
|
||||||
gulong vals[N_VALS];
|
gulong vals[N_VALS];
|
||||||
|
|
||||||
|
/* We've bumped the real icon size up to 96x96, but
|
||||||
|
* we really should not add these sorts of constraints
|
||||||
|
* on clients still using the legacy WM_HINTS interface.
|
||||||
|
*/
|
||||||
|
#define LEGACY_ICON_SIZE 32
|
||||||
|
|
||||||
/* min width, min height, max w, max h, width inc, height inc */
|
/* min width, min height, max w, max h, width inc, height inc */
|
||||||
vals[0] = META_ICON_WIDTH;
|
vals[0] = LEGACY_ICON_SIZE;
|
||||||
vals[1] = META_ICON_HEIGHT;
|
vals[1] = LEGACY_ICON_SIZE;
|
||||||
vals[2] = META_ICON_WIDTH;
|
vals[2] = LEGACY_ICON_SIZE;
|
||||||
vals[3] = META_ICON_HEIGHT;
|
vals[3] = LEGACY_ICON_SIZE;
|
||||||
vals[4] = 0;
|
vals[4] = 0;
|
||||||
vals[5] = 0;
|
vals[5] = 0;
|
||||||
|
#undef LEGACY_ICON_SIZE
|
||||||
|
|
||||||
XChangeProperty (screen->display->xdisplay, screen->xroot,
|
XChangeProperty (screen->display->xdisplay, screen->xroot,
|
||||||
screen->display->atom_WM_ICON_SIZE,
|
screen->display->atom_WM_ICON_SIZE,
|
||||||
|
@ -366,7 +366,7 @@ meta_window_class_init (MetaWindowClass *klass)
|
|||||||
PROP_ICON,
|
PROP_ICON,
|
||||||
g_param_spec_object ("icon",
|
g_param_spec_object ("icon",
|
||||||
"Icon",
|
"Icon",
|
||||||
"32 pixel sized icon",
|
"96 pixel sized icon",
|
||||||
GDK_TYPE_PIXBUF,
|
GDK_TYPE_PIXBUF,
|
||||||
G_PARAM_READABLE));
|
G_PARAM_READABLE));
|
||||||
|
|
||||||
|
@ -298,8 +298,8 @@ struct _MetaFrameBorders
|
|||||||
void meta_frame_borders_clear (MetaFrameBorders *self);
|
void meta_frame_borders_clear (MetaFrameBorders *self);
|
||||||
|
|
||||||
/* should investigate changing these to whatever most apps use */
|
/* should investigate changing these to whatever most apps use */
|
||||||
#define META_ICON_WIDTH 32
|
#define META_ICON_WIDTH 96
|
||||||
#define META_ICON_HEIGHT 32
|
#define META_ICON_HEIGHT 96
|
||||||
#define META_MINI_ICON_WIDTH 16
|
#define META_MINI_ICON_WIDTH 16
|
||||||
#define META_MINI_ICON_HEIGHT 16
|
#define META_MINI_ICON_HEIGHT 16
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user