mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-15 13:00:02 +02:00
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:
@@ -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`.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user