wayland/dragsurface: Get current size with compute-size signal
authorIvan Molodetskikh <yalterz@gmail.com>
Sun, 5 Mar 2023 18:18:56 +0000 (10:18 -0800)
committerIvan Molodetskikh <yalterz@gmail.com>
Wed, 15 Mar 2023 02:41:44 +0000 (19:41 -0700)
commitf63fc91b0ebc9fc91a0b79b0a5c8c3cde3592e28
treec07776882df127b603ece0494460040a52008584
parente041646bfca044f79b0d498a4df59dde4dc66c50
wayland/dragsurface: Get current size with compute-size signal

GdkDragSurface-backed widgets are not parented to an existing widget,
unlike popovers, and like toplevels. This means that there's nobody to
actively call gdk_drag_surface_present() to update the size, and
GdkDragSurface should do it on its own, just like GdkToplevel.

This commit implements this for the Wayland backend.
gdk/wayland/gdkdragsurface-wayland.c