summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorZhang Xianwei <[email protected]>2018-11-26 13:19:00 +0800
committerlukefromdc <[email protected]>2018-11-26 19:40:15 +0000
commite7222d9a010f59a3056ea61e28c0176309c8b8e6 (patch)
treec1487d5704e8a4fe6e27076d2af59b561d7000a9 /plugins
parentf5ae497f5c7ba2510267447b37176ab0538e5dba (diff)
downloadmate-settings-daemon-e7222d9a010f59a3056ea61e28c0176309c8b8e6.tar.bz2
mate-settings-daemon-e7222d9a010f59a3056ea61e28c0176309c8b8e6.tar.xz
media-keys: Tweak the OSD's volume bar position
Move it down a little. Signed-off-by: Zhang Xianwei <[email protected]>
Diffstat (limited to 'plugins')
-rw-r--r--plugins/media-keys/msd-media-keys-window.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/media-keys/msd-media-keys-window.c b/plugins/media-keys/msd-media-keys-window.c
index 0f6eff6..912b2b8 100644
--- a/plugins/media-keys/msd-media-keys-window.c
+++ b/plugins/media-keys/msd-media-keys-window.c
@@ -490,9 +490,9 @@ draw_action_volume (MsdMediaKeysWindow *window,
volume_box_height = round (window_height * 0.05);
icon_box_x0 = (window_width - icon_box_width) / 2;
- icon_box_y0 = (window_height - icon_box_height - volume_box_height) / 2;
+ icon_box_y0 = (window_height - icon_box_height) / 2;
volume_box_x0 = round (icon_box_x0);
- volume_box_y0 = round (icon_box_height + icon_box_y0);
+ volume_box_y0 = round (window_height - icon_box_y0 / 2 - volume_box_height);
#if 0
g_message ("icon box: w=%f h=%f _x0=%f _y0=%f",