diff options
author | ZenWalker <[email protected]> | 2017-08-05 03:18:01 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2017-08-12 08:19:44 +0200 |
commit | 5bece5503aba40119eea2e2d5e18f219749472be (patch) | |
tree | 9f317dcbccee82d023b7ad4089b0d0d23c31e4a5 | |
parent | 109a32aac32790397e3cddd906e6dedf2dd3d856 (diff) | |
download | pluma-5bece5503aba40119eea2e2d5e18f219749472be.tar.bz2 pluma-5bece5503aba40119eea2e2d5e18f219749472be.tar.xz |
avoid deprecated gdk_screen_get_width/height
-rw-r--r-- | pluma/pluma-app.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pluma/pluma-app.c b/pluma/pluma-app.c index 0c5d9bc1..dd1b899f 100644 --- a/pluma/pluma-app.c +++ b/pluma/pluma-app.c @@ -676,8 +676,8 @@ is_in_viewport (PlumaWindow *window, x += vp_x; y += vp_y; - sc_width = gdk_screen_get_width (screen); - sc_height = gdk_screen_get_height (screen); + gdk_window_get_geometry (gdk_screen_get_root_window (screen), NULL, NULL, + &sc_width, &sc_height); return x + width * .25 >= viewport_x && x + width * .75 <= viewport_x + sc_width && |