mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-08 13:29:47 -05:00
Made the window save the coordinates when being draged.
This commit is contained in:
parent
ec2e64224b
commit
88b272d9ff
1 changed files with 10 additions and 8 deletions
|
|
@ -1018,14 +1018,16 @@ handle_configure(void *data, struct wl_shell *shell,
|
||||||
window->pending_allocation.width = width;
|
window->pending_allocation.width = width;
|
||||||
window->pending_allocation.height = height;
|
window->pending_allocation.height = height;
|
||||||
|
|
||||||
if (!(edges & 15))
|
if (edges & WINDOW_TITLEBAR) {
|
||||||
return;
|
window->allocation.x = window->pending_allocation.x;
|
||||||
|
window->allocation.y = window->pending_allocation.y;
|
||||||
if (window->resize_handler)
|
} else if (edges & WINDOW_RESIZING_MASK) {
|
||||||
(*window->resize_handler)(window,
|
if (window->resize_handler)
|
||||||
window->user_data);
|
(*window->resize_handler)(window,
|
||||||
else if (window->redraw_handler)
|
window->user_data);
|
||||||
window_schedule_redraw(window);
|
else if (window->redraw_handler)
|
||||||
|
window_schedule_redraw(window);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static const struct wl_shell_listener shell_listener = {
|
static const struct wl_shell_listener shell_listener = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue