mirror of
https://gitlab.freedesktop.org/wayland/weston
synced 2024-10-06 17:55:05 +00:00
xwm: Fix configure notify handler
We only get configure notify for toplevel (frame or override-redirect window) and those are the cases where we want to update window->x/y. The way the code worked, we'd exit immeidately in those cases and window->x/y would not be updated.
This commit is contained in:
parent
69981d9621
commit
122877d5e7
|
@ -574,17 +574,10 @@ weston_wm_handle_configure_notify(struct weston_wm *wm, xcb_generic_event_t *eve
|
|||
configure_notify->x, configure_notify->y,
|
||||
configure_notify->width, configure_notify->height);
|
||||
|
||||
if (our_resource(wm, configure_notify->window))
|
||||
return;
|
||||
|
||||
window = hash_table_lookup(wm->window_hash, configure_notify->window);
|
||||
/* resize falls here */
|
||||
if (configure_notify->window != window->id)
|
||||
return;
|
||||
|
||||
weston_wm_window_get_child_position(window, &x, &y);
|
||||
window->x = configure_notify->x - x;
|
||||
window->y = configure_notify->y - y;
|
||||
window->x = configure_notify->x;
|
||||
window->y = configure_notify->y;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue