From d18c2fb4acb58c408c01700682b9922de86e8b2f Mon Sep 17 00:00:00 2001 From: ZenWalker Date: Wed, 9 Aug 2017 01:30:37 +0200 Subject: avoid deprecated gdk_screen_get_width --- src/ui/tabpopup.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ui/tabpopup.c b/src/ui/tabpopup.c index a9e6d35e..f3d64733 100644 --- a/src/ui/tabpopup.c +++ b/src/ui/tabpopup.c @@ -259,7 +259,9 @@ meta_ui_tab_popup_new (const MetaTabEntry *entries, popup->current_selected_entry = NULL; popup->border = border; - screen_width = gdk_screen_get_width (screen); + gdk_window_get_geometry (gdk_screen_get_root_window (screen), NULL, NULL, + &screen_width, NULL); + for (i = 0; i < entry_count; ++i) { TabEntry* new_entry = tab_entry_new (&entries[i], screen_width, -- cgit v1.2.1