summaryrefslogtreecommitdiff
path: root/src/ui/tabpopup.c
diff options
context:
space:
mode:
authorZenWalker <[email protected]>2017-08-09 01:30:37 +0200
committerraveit65 <[email protected]>2017-08-18 08:16:06 +0200
commitd18c2fb4acb58c408c01700682b9922de86e8b2f (patch)
tree718ebce6b9532adbb6b47ab56eba67aa0959dc2d /src/ui/tabpopup.c
parentc64a516cbca7b8d07e5de0af9223ae0199e18857 (diff)
downloadmarco-d18c2fb4acb58c408c01700682b9922de86e8b2f.tar.bz2
marco-d18c2fb4acb58c408c01700682b9922de86e8b2f.tar.xz
avoid deprecated gdk_screen_get_width
Diffstat (limited to 'src/ui/tabpopup.c')
-rw-r--r--src/ui/tabpopup.c4
1 files changed, 3 insertions, 1 deletions
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,