From: Joel Teichroeb Date: Tue, 30 Nov 2010 18:22:13 +0000 (-0800) Subject: Made the window save the coordinates when being draged. X-Git-Tag: 0.85.0~362 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=88b272d9ffc8958178385e9ff05fee45d7771738;p=platform%2Fupstream%2Fwayland.git Made the window save the coordinates when being draged. --- diff --git a/clients/window.c b/clients/window.c index 3860d1e..f720bf8 100644 --- a/clients/window.c +++ b/clients/window.c @@ -1018,14 +1018,16 @@ handle_configure(void *data, struct wl_shell *shell, window->pending_allocation.width = width; window->pending_allocation.height = height; - if (!(edges & 15)) - return; - - if (window->resize_handler) - (*window->resize_handler)(window, - window->user_data); - else if (window->redraw_handler) - window_schedule_redraw(window); + if (edges & WINDOW_TITLEBAR) { + window->allocation.x = window->pending_allocation.x; + window->allocation.y = window->pending_allocation.y; + } else if (edges & WINDOW_RESIZING_MASK) { + if (window->resize_handler) + (*window->resize_handler)(window, + window->user_data); + else if (window->redraw_handler) + window_schedule_redraw(window); + } } static const struct wl_shell_listener shell_listener = {