dragsurface: Add compute-size signal
authorIvan Molodetskikh <yalterz@gmail.com>
Sun, 5 Mar 2023 18:14:56 +0000 (10:14 -0800)
committerIvan Molodetskikh <yalterz@gmail.com>
Wed, 15 Mar 2023 02:41:44 +0000 (19:41 -0700)
commitc3dde05d338d78b0f6f1c3d3fb16e47513af4351
treee2e67b61f17328df911ef31126febd215976aa85
parent45434d501cd97efeb7a667e8ef60aeae1da1d2f6
dragsurface: Add compute-size signal

Similarly to GdkToplevel, GdkDragSurface's compute-size should be called
by backends to query the current surface size, and should be connected
to by widget implementations (like GtkDragIcon) to report the current
size.

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.
gdk/gdkdragsurface.c
gdk/gdkdragsurfaceprivate.h