diff options
author | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2016-10-24 19:00:08 +0300 |
---|---|---|
committer | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2016-10-24 19:00:08 +0300 |
commit | de8bb6198101b82868d0e84e86c2c451a6d5a145 (patch) | |
tree | a72628a1276a0847701fe4d46feaa0a999120a33 | |
parent | 5f2cbccb6e49f0e99385047660af80a9731390e8 (diff) | |
download | metacity-de8bb6198101b82868d0e84e86c2c451a6d5a145.tar.gz |
menu: avoid deprecation warnings
-rw-r--r-- | src/ui/menu.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ui/menu.c b/src/ui/menu.c index 5fdaca2c..2f3cdf28 100644 --- a/src/ui/menu.c +++ b/src/ui/menu.c @@ -121,8 +121,10 @@ popup_position_func (GtkMenu *menu, *x = MAX (0, *x - req.width); /* Ensure onscreen */ + G_GNUC_BEGIN_IGNORE_DEPRECATIONS *x = CLAMP (*x, 0, MAX (0, gdk_screen_width () - req.width)); *y = CLAMP (*y, 0, MAX (0, gdk_screen_height () - req.height)); + G_GNUC_END_IGNORE_DEPRECATIONS } static void |