Block a user
8258bac40a
Update README.md
ff2ec85f8c
Adds credit to Emil.
1245f3c75e
Windows build clarifications.
a73accc906
Merge pull request #51 from fgsfdsfgs/patch-2
a0ba46eaf6
move bettercamera settings to config file; cleanup
Window Managers
Hard bug to follow up on later:
If two windows overlap each other with the Focused window on top, and you click into the focused window in a slot covering the lower (Unfocused) window, the Unfocused window will come to the front when it shouldn't.
Root is somewhere in the event handlers for SDL's click event. Debug it like:
Set DebugClickEvents=true in lib/render/sdl/events.go
Code path is like:
- First call to MainWindow.Loop()
- engine.Poll() reads a click event from raw SDL: "[1194 ms] tick:0 MouseButton type:1025 id:0 x:483 y:285 button:1 state:1"
- Supervisor.Loop() called.
- Top focused window has its MouseDown event called. Supervisor prevents calling events on the un-focused window cuz the focused one handled it.
- Next call to MainWindow.Loop(). the ev.State is still the same as last tick: Button1=true etc.; SDL didn't emit any event to change our state.