diff options
author | Jeremy Whiting <jpwhiting@kde.org> | 2015-07-13 10:30:42 -0600 |
---|---|---|
committer | Jeremy Whiting <jpwhiting@kde.org> | 2015-07-25 07:08:59 -0600 |
commit | f9d903995dda32674f8297e8496dc6846e220c88 (patch) | |
tree | 6c38df4a179ff839f7e3894964eaff2f4b67c887 /gdk/wayland/gdkscreen-wayland.c | |
parent | 2a2a1487d9bfd43606e34ba2294f708e6df067d9 (diff) | |
download | gtk+-f9d903995dda32674f8297e8496dc6846e220c88.tar.gz |
Added api to set a window to fullscreen on a given monitor.
https://bugzilla.gnome.org/show_bug.cgi?id=752677
Diffstat (limited to 'gdk/wayland/gdkscreen-wayland.c')
-rw-r--r-- | gdk/wayland/gdkscreen-wayland.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gdk/wayland/gdkscreen-wayland.c b/gdk/wayland/gdkscreen-wayland.c index a2740871af..b07483bc69 100644 --- a/gdk/wayland/gdkscreen-wayland.c +++ b/gdk/wayland/gdkscreen-wayland.c @@ -1143,6 +1143,15 @@ _gdk_wayland_screen_add_output (GdkScreen *screen, wl_output_add_listener (output, &output_listener, monitor); } +struct wl_output * +_gdk_wayland_screen_get_wl_output (GdkScreen *screen, + gint monitor_num) +{ + GdkWaylandScreen *screen_wayland = GDK_WAYLAND_SCREEN (screen); + GdkWaylandMonitor *monitor = g_ptr_array_index (screen_wayland->monitors, monitor_num); + return monitor->output; +} + void _gdk_wayland_screen_remove_output (GdkScreen *screen, guint32 id) |