diff options
author | ZenWalker <[email protected]> | 2017-08-09 01:30:37 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2017-08-18 08:16:06 +0200 |
commit | d18c2fb4acb58c408c01700682b9922de86e8b2f (patch) | |
tree | 718ebce6b9532adbb6b47ab56eba67aa0959dc2d /src | |
parent | c64a516cbca7b8d07e5de0af9223ae0199e18857 (diff) | |
download | marco-d18c2fb4acb58c408c01700682b9922de86e8b2f.tar.bz2 marco-d18c2fb4acb58c408c01700682b9922de86e8b2f.tar.xz |
avoid deprecated gdk_screen_get_width
Diffstat (limited to 'src')
-rw-r--r-- | src/ui/tabpopup.c | 4 |
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, |