forked from AuroraMiddleware/gtk
9b3c745fc4
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. Closes: https://gitlab.gnome.org/GNOME/gtk/issues/997
24 lines
517 B
C
24 lines
517 B
C
#include "config.h"
|
|
#include "gdk-private.h"
|
|
|
|
GdkPrivateVTable *
|
|
gdk__private__ (void)
|
|
{
|
|
static GdkPrivateVTable table = {
|
|
gdk_device_grab_info,
|
|
gdk_display_open_default,
|
|
gdk_add_option_entries,
|
|
gdk_pre_parse,
|
|
gdk_gl_get_flags,
|
|
gdk_gl_set_flags,
|
|
gdk_window_freeze_toplevel_updates,
|
|
gdk_window_thaw_toplevel_updates,
|
|
gdk_display_get_rendering_mode,
|
|
gdk_display_set_rendering_mode,
|
|
gdk_display_get_debug_updates,
|
|
gdk_display_set_debug_updates,
|
|
};
|
|
|
|
return &table;
|
|
}
|