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: Pekka Paalanen <pekka.paalanen@collabora.com>dev
parent
134e14969f
commit
a24989e47b
Loading…
Reference in new issue