[PATCH] Resize the shell when the mode is switched

Hardening rdp.effort at gmail.com
Mon Sep 23 15:45:53 PDT 2013


Resize the panel and the background when we're notified of a mode
switch.
---
 clients/desktop-shell.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/clients/desktop-shell.c b/clients/desktop-shell.c
index 599c0a5..5d7d765 100644
--- a/clients/desktop-shell.c
+++ b/clients/desktop-shell.c
@ -1160,6 +1160,12 @@ output_handle_mode(void *data,
 		   int height,
 		   int refresh)
 {
+	struct output *output = (struct output *)data;
+
+	if(flags & WL_OUTPUT_MODE_CURRENT) {
+		window_schedule_resize(output->panel->window, width, 32);
+		window_schedule_resize(output->background->window, width, height);
+	}
 }
 
 static void
-- 
1.8.1.2



More information about the wayland-devel mailing list