gdk: Make gdk_surface_move_to_rect public
authorJonas Ådahl <jadahl@gmail.com>
Tue, 5 Jun 2018 15:46:34 +0000 (17:46 +0200)
committerJonas Ådahl <jadahl@gmail.com>
Tue, 5 Jun 2018 15:53:05 +0000 (17:53 +0200)
commitc0e1044d5c11ec810b81bad91affb23576364ca8
tree78840c80795fbd9192e6a4d1ae2515dd4b57a0d2
parent5c24bbf00c1208a7550c723d46ef501dd644959a
gdk: Make gdk_surface_move_to_rect public

This is the API used by GtkMenu to properly position menus on the screen
without requiring GTK to query the menu window's position or the work
area of where the window is positioned. It makes it possible to position
popup windows properly when using Wayland.

Make this API available to external users so custom popup windows can be
positioned properly as well.

Related: https://gitlab.gnome.org/GNOME/gtk/issues/997
gdk/gdk-private.h
gdk/gdksurface.c
gdk/gdksurface.h