[PATCH] desktop-shell: fix the unlock dialog decorations

Pekka Paalanen ppaalanen at gmail.com
Wed Jan 18 06:51:30 PST 2012


The decorations were not responding, could not move or resize the
dialog, and it painted with a black shade.

When the dialog is created, schedule a resize instead of a repaint. The
resize will initialise the widget tree, and let everything draw and work
as it should.

Signed-off-by: Pekka Paalanen <ppaalanen at gmail.com>
---
 clients/desktop-shell.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/clients/desktop-shell.c b/clients/desktop-shell.c
index 4303ad0..e2e2433 100644
--- a/clients/desktop-shell.c
+++ b/clients/desktop-shell.c
@@ -530,7 +530,7 @@ unlock_dialog_create(struct desktop *desktop)
 	desktop_shell_set_lock_surface(desktop->shell,
 	       window_get_wl_shell_surface(dialog->window));
 
-	window_schedule_redraw(dialog->window);
+	window_schedule_resize(dialog->window, 260, 230);
 
 	return dialog;
 }
-- 
1.7.3.4



More information about the wayland-devel mailing list