summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPekka Paalanen <ppaalanen@gmail.com>2012-01-18 16:51:30 +0200
committerKristian Høgsberg <krh@bitplanet.net>2012-01-18 13:09:56 -0500
commit40e49ac7b52713fef8cc8b623ad78a4ef0cd55e3 (patch)
tree7955b105c915939106b980b8143f47d15b75fe3b
parent08fcbf0f3d1995b8b895a8811845b2f30ad21a40 (diff)
downloadweston-40e49ac7b52713fef8cc8b623ad78a4ef0cd55e3.tar.gz
desktop-shell: fix the unlock dialog decorations
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@gmail.com>
-rw-r--r--clients/desktop-shell.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/clients/desktop-shell.c b/clients/desktop-shell.c
index 4303ad00..e2e2433c 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;
}