summaryrefslogtreecommitdiff
path: root/gdk/x11/gdkx11display.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-01-30 21:01:24 +0100
committerMatthias Clasen <mclasen@redhat.com>2020-01-30 21:33:37 +0100
commita46f9af1c0f321cbaafc0383bf50e4f6a1d47c94 (patch)
treea9b1f430e9e7c5f5f6c41dc827b2bf14b48f3555 /gdk/x11/gdkx11display.h
parent99c89d61e18d63f1141b8dfb423c3971f4b66c9a (diff)
downloadgtk+-a46f9af1c0f321cbaafc0383bf50e4f6a1d47c94.tar.gz
Remove primary monitor api
We only have implementations of this on X11 and Win32, so make it available as backend api there. Update all callers to use either the backend api, or just monitor 0.
Diffstat (limited to 'gdk/x11/gdkx11display.h')
-rw-r--r--gdk/x11/gdkx11display.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdk/x11/gdkx11display.h b/gdk/x11/gdkx11display.h
index c4801b2e33..9a24a4a035 100644
--- a/gdk/x11/gdkx11display.h
+++ b/gdk/x11/gdkx11display.h
@@ -106,6 +106,9 @@ GDK_AVAILABLE_IN_ALL
GdkX11Screen *gdk_x11_display_get_screen (GdkDisplay *display);
GDK_AVAILABLE_IN_ALL
+GdkMonitor * gdk_x11_display_get_primary_monitor (GdkDisplay *display);
+
+GDK_AVAILABLE_IN_ALL
void gdk_x11_display_grab (GdkDisplay *display);
GDK_AVAILABLE_IN_ALL
void gdk_x11_display_ungrab (GdkDisplay *display);
@@ -130,7 +133,6 @@ void gdk_x11_register_standard_event_type (GdkDisplay *display,
GDK_AVAILABLE_IN_ALL
void gdk_x11_set_sm_client_id (const gchar *sm_client_id);
-
G_END_DECLS
#endif /* __GDK_X11_DISPLAY_H__ */