diff options
author | ZenWalker <[email protected]> | 2017-07-29 02:10:08 +0200 |
---|---|---|
committer | ZenWalker <[email protected]> | 2017-07-29 02:10:08 +0200 |
commit | ed1a6302c87c6070bbec549ec36c5b56c12a6564 (patch) | |
tree | 1e5042d3a0e8159065360af12d9f9467d6f5f134 /src/ui/frames.c | |
parent | c3ab92182c2a97d74c5b8cbd6dade9b48fab5c95 (diff) | |
download | marco-ed1a6302c87c6070bbec549ec36c5b56c12a6564.tar.bz2 marco-ed1a6302c87c6070bbec549ec36c5b56c12a6564.tar.xz |
avoid deprecated gdk_display_get_screen
Diffstat (limited to 'src/ui/frames.c')
-rw-r--r-- | src/ui/frames.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/ui/frames.c b/src/ui/frames.c index 2703f448..2cee5192 100644 --- a/src/ui/frames.c +++ b/src/ui/frames.c @@ -550,12 +550,11 @@ meta_frames_calc_geometry (MetaFrames *frames, } MetaFrames* -meta_frames_new (int screen_number) +meta_frames_new (void) { GdkScreen *screen; - screen = gdk_display_get_screen (gdk_display_get_default (), - screen_number); + screen = gdk_display_get_default_screen (gdk_display_get_default ()); return g_object_new (META_TYPE_FRAMES, "screen", screen, @@ -1155,7 +1154,6 @@ show_tip_now (MetaFrames *frames) MetaFrameGeometry fgeom; GdkRectangle *rect; int dx, dy; - int screen_number; meta_frames_calc_geometry (frames, frame, &fgeom); @@ -1169,10 +1167,7 @@ show_tip_now (MetaFrames *frames) if (meta_ui_get_direction() == META_UI_DIRECTION_RTL) dx += rect->width; - screen_number = gdk_x11_screen_get_screen_number (gtk_widget_get_screen (GTK_WIDGET (frames))); - - meta_fixed_tip_show (screen_number, - rect->x + dx, + meta_fixed_tip_show (rect->x + dx, rect->y + rect->height + 2 + dy, tiptext); } |