Revert "Mostly fix editor GUIs drifting in negative coords"

I've also tried a lot of other things, but none of the solutions I've
tried work 100% of the time. It sounds like a better idea to have
something that doesn't work consistently than to have something that
inconsistently sort of works. Setting the size in `WM_WINDOWPOSCHANGING`
to (0, 0) fixes the drifting, but the mouse coordinates are still wrong
and `SetWindowPos()` breaks the reparenting.

This reverts commit db2cc5800a.
This commit is contained in:
Robbert van der Helm
2020-12-26 18:13:40 +01:00
parent db2cc5800a
commit bce3afa5e4
3 changed files with 4 additions and 48 deletions
-11
View File
@@ -250,17 +250,6 @@ class Editor {
*/
const xcb_window_t topmost_window;
/**
* In `fix_local_coordinates()` we send a ConfigureNotify event to the Wine
* window with its screen coordinates. Because you're not supposed to do
* that directly, we're getting some strange behaviour on some plugins when
* the window gets dragged off screen to the left or the top. We perform a
* small workaround to mostly correct this issue. This flag indicates
* whether we have done this in the last call to `fix_local_coordinates()`,
* since we only only need to undo the changes made there once.
*/
mutable std::atomic_bool has_negative_coordinate_correction = false;
/**
* The atom corresponding to `_NET_ACTIVE_WINDOW`.
*/