diff options
| -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, | 
