Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This code assumed that the user had exclusive control over the size and position of all windows. While this is generally true of most window managers, for users with a tiling window manager, this meant that the code was constantly fighting the window manager for control, causing the window to flash back and forth between multiple places. The fix is to not assume that m_is_resized == (window->size != m_prev_size), and instead only try to set the size once when m_is_resized is set to true, and the same for m_is_repositioned and positions.
- Loading branch information
7ecd7c1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The problem I see here is that m_is_resized and m_is_repositioned are never actually set elsewhere in code so in order to make this change useful we need to define those cases to properly track resizes and repositions that get dispatched as events.