Commit a24989e4 authored by Pekka Paalanen's avatar Pekka Paalanen Committed by Daniel Stone
Browse files

xwm: remove configure_source on dispatch

This function is called also directly from weston_wm_window_set_toplevel(). If
configure_source is set at that point, simply resetting the pointer will "leak"
the source until it fires and calls this function again.

Let's keep the variable up-to-date by removing the source when called,
dispatched or not. This removes the second call. I only hope it doesn't cause
issues. This is also necessary if we intend to remove the source on window
destruction too.

Found by inspection.
Signed-off-by: default avatarPekka Paalanen <>
parent 134e1496
......@@ -2687,6 +2687,11 @@ weston_wm_window_configure(void *data)
uint32_t values[4];
int x, y, width, height;
if (window->configure_source) {
window->configure_source = NULL;
weston_wm_window_set_allow_commits(window, false);
weston_wm_window_get_child_position(window, &x, &y);
......@@ -2709,8 +2714,6 @@ weston_wm_window_configure(void *data)
window->configure_source = NULL;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment