|
|
db633a |
From 4ee272a5a88351a03619deae4e5dd4ab16f32b07 Mon Sep 17 00:00:00 2001
|
|
|
db633a |
From: Rui Matos <tiagomatos@gmail.com>
|
|
|
db633a |
Date: Wed, 2 Nov 2016 17:55:01 +0100
|
|
|
db633a |
Subject: [PATCH] wayland-xdg-shell: Handle the wl_output on the set_fullscreen
|
|
|
db633a |
request
|
|
|
db633a |
|
|
|
db633a |
This makes us fullscreen wayland windows on the requested monitor.
|
|
|
db633a |
|
|
|
db633a |
https://bugzilla.gnome.org/show_bug.cgi?id=772525
|
|
|
db633a |
---
|
|
|
db633a |
src/wayland/meta-wayland-xdg-shell.c | 8 ++++++++
|
|
|
db633a |
1 file changed, 8 insertions(+)
|
|
|
db633a |
|
|
|
db633a |
diff --git a/src/wayland/meta-wayland-xdg-shell.c b/src/wayland/meta-wayland-xdg-shell.c
|
|
|
db633a |
index 450acda..e1195c7 100644
|
|
|
db633a |
--- a/src/wayland/meta-wayland-xdg-shell.c
|
|
|
db633a |
+++ b/src/wayland/meta-wayland-xdg-shell.c
|
|
|
db633a |
@@ -27,6 +27,7 @@
|
|
|
db633a |
|
|
|
db633a |
#include "core/window-private.h"
|
|
|
db633a |
#include "wayland/meta-wayland.h"
|
|
|
db633a |
+#include "wayland/meta-wayland-outputs.h"
|
|
|
db633a |
#include "wayland/meta-wayland-popup.h"
|
|
|
db633a |
#include "wayland/meta-wayland-private.h"
|
|
|
db633a |
#include "wayland/meta-wayland-seat.h"
|
|
|
db633a |
@@ -363,6 +364,13 @@ xdg_toplevel_set_fullscreen (struct wl_client *client,
|
|
|
db633a |
{
|
|
|
db633a |
MetaWaylandSurface *surface = surface_from_xdg_toplevel_resource (resource);
|
|
|
db633a |
|
|
|
db633a |
+ if (output_resource)
|
|
|
db633a |
+ {
|
|
|
db633a |
+ MetaWaylandOutput *output = wl_resource_get_user_data (output_resource);
|
|
|
db633a |
+ if (output)
|
|
|
db633a |
+ meta_window_move_to_monitor (surface->window, output->monitor_info->number);
|
|
|
db633a |
+ }
|
|
|
db633a |
+
|
|
|
db633a |
meta_window_make_fullscreen (surface->window);
|
|
|
db633a |
}
|
|
|
db633a |
|
|
|
db633a |
--
|
|
|
db633a |
2.9.3
|
|
|
db633a |
|