Summary
This pertains to how focus is cancelled; since raylib's FLAG_WINDOW_UNFOCUSED does not consistently prevent focus, focus is manually overridden to be whatever was focused last. However, on certain WMs (for example, i3wm, which I use), your cursor will end up being moved around.
Expected Behavior
Cursor remains in the same spot, focus is not changed.
Observed Behavior
Cursor moves to the center of the focused window.
Summary
This pertains to how focus is cancelled; since raylib's
FLAG_WINDOW_UNFOCUSEDdoes not consistently prevent focus, focus is manually overridden to be whatever was focused last. However, on certain WMs (for example, i3wm, which I use), your cursor will end up being moved around.Expected Behavior
Cursor remains in the same spot, focus is not changed.
Observed Behavior
Cursor moves to the center of the focused window.