summaryrefslogtreecommitdiff
path: root/src/ui/resizepopup.c
diff options
context:
space:
mode:
authorZenWalker <[email protected]>2017-07-29 02:10:08 +0200
committerZenWalker <[email protected]>2017-07-29 02:10:08 +0200
commited1a6302c87c6070bbec549ec36c5b56c12a6564 (patch)
tree1e5042d3a0e8159065360af12d9f9467d6f5f134 /src/ui/resizepopup.c
parentc3ab92182c2a97d74c5b8cbd6dade9b48fab5c95 (diff)
downloadmarco-ed1a6302c87c6070bbec549ec36c5b56c12a6564.tar.bz2
marco-ed1a6302c87c6070bbec549ec36c5b56c12a6564.tar.xz
avoid deprecated gdk_display_get_screen
Diffstat (limited to 'src/ui/resizepopup.c')
-rw-r--r--src/ui/resizepopup.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ui/resizepopup.c b/src/ui/resizepopup.c
index a4d9e976..c60fcd65 100644
--- a/src/ui/resizepopup.c
+++ b/src/ui/resizepopup.c
@@ -78,8 +78,7 @@ ensure_size_window (MetaResizePopup *popup)
popup->size_window = gtk_window_new (GTK_WINDOW_POPUP);
gtk_window_set_screen (GTK_WINDOW (popup->size_window),
- gdk_display_get_screen (gdk_x11_lookup_xdisplay (popup->display),
- popup->screen_number));
+ gdk_display_get_default_screen (gdk_x11_lookup_xdisplay (popup->display)));
/* never shrink the size window */
gtk_window_set_resizable (GTK_WINDOW (popup->size_window),