From 7b2bc7d9f98c6ba8c2c31bdf9605faadb42a7e0e Mon Sep 17 00:00:00 2001 From: ZenWalker Date: Mon, 7 Aug 2017 20:33:08 +0200 Subject: avoid deprecated gdk_screen_get_width/height --- applets/clock/clock.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'applets/clock') diff --git a/applets/clock/clock.c b/applets/clock/clock.c index a1c16159..0a325b63 100644 --- a/applets/clock/clock.c +++ b/applets/clock/clock.c @@ -914,8 +914,9 @@ position_calendar_popup (ClockData *cd) monitors */ monitor.x = 0; monitor.y = 0; - monitor.width = gdk_screen_get_width (screen); - monitor.height = gdk_screen_get_height (screen); + + gdk_window_get_geometry (gdk_screen_get_root_window (screen), NULL, NULL, + &monitor.width, &monitor.height); } /* Based on panel orientation, position the popup. -- cgit v1.2.1