diff options
author | Victor Kareh <[email protected]> | 2019-10-11 21:04:39 -0400 |
---|---|---|
committer | Victor Kareh <[email protected]> | 2019-10-27 13:42:15 -0400 |
commit | 621223f9180936e946b8a89b37d4b106187a6d41 (patch) | |
tree | fa655294220896c2538c298469eb1f96ddc85bb9 /src/core | |
parent | 1e0487779920e369aaacb80e0e26398170940e45 (diff) | |
download | marco-621223f9180936e946b8a89b37d4b106187a6d41.tar.bz2 marco-621223f9180936e946b8a89b37d4b106187a6d41.tar.xz |
tabpopup: Draw transparent OSD-style popups
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/prefs.c | 5 | ||||
-rw-r--r-- | src/core/window.c | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/core/prefs.c b/src/core/prefs.c index b9f0362b..df6bed14 100644 --- a/src/core/prefs.c +++ b/src/core/prefs.c @@ -1137,7 +1137,10 @@ meta_prefs_get_cursor_size (void) int meta_prefs_get_icon_size (void) { - return icon_size; + GdkWindow *window = gdk_get_default_root_window (); + gint scale = gdk_window_get_scale_factor (window); + + return icon_size * scale; } int diff --git a/src/core/window.c b/src/core/window.c index 56cec45b..1536c62d 100644 --- a/src/core/window.c +++ b/src/core/window.c @@ -6115,7 +6115,7 @@ meta_window_update_icon_now (MetaWindow *window) icon = NULL; mini_icon = NULL; - + int icon_size = meta_prefs_get_icon_size(); if (meta_read_icons (window->screen, |