diff options
author | Victor Kareh <[email protected]> | 2021-06-14 08:40:35 -0400 |
---|---|---|
committer | Victor Kareh <[email protected]> | 2023-03-07 13:35:05 -0500 |
commit | df299574f6db9bcdccc9413f173c2dd4ceff6467 (patch) | |
tree | 73e9feadbeded2be39e8797563f4d35833bd7a99 /src/core/window.c | |
parent | 319ee4ffaae7bec3289a1a65ce9774982564cd61 (diff) | |
download | marco-df299574f6db9bcdccc9413f173c2dd4ceff6467.tar.bz2 marco-df299574f6db9bcdccc9413f173c2dd4ceff6467.tar.xz |
iconcache: replace width and height with size in read_icons
meta_read_icons is used in MetaWindow. In it ideal_width and
ideal_height have same value - default icon size. Same with
ideal_mini_width and ideal_mini_height.
Simplify function by replacing width and height parameters with size
parameter.
Adapted from https://gitlab.gnome.org/GNOME/libwnck/-/commit/c1460f79
Diffstat (limited to 'src/core/window.c')
-rw-r--r-- | src/core/window.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/core/window.c b/src/core/window.c index de3f9c99..4c90fee4 100644 --- a/src/core/window.c +++ b/src/core/window.c @@ -6126,11 +6126,9 @@ meta_window_update_icon_now (MetaWindow *window) window->wm_hints_pixmap, window->wm_hints_mask, &icon, - icon_size, /* width */ - icon_size, /* height */ + icon_size, &mini_icon, - META_MINI_ICON_WIDTH, - META_MINI_ICON_HEIGHT)) + META_MINI_ICON_SIZE)) { if (window->icon) g_object_unref (G_OBJECT (window->icon)); |