Try / Tempest

3d graphics engine
MIT License
83 stars 24 forks source link

Window focus for X11 #44

Closed Reveares closed 1 year ago

Reveares commented 1 year ago

As discussed in #42 the implementation for X11. Meanwhile I also noticed a bug in the focus handling. X11 sends FocusOut twice, which caused https://github.com/Try/Tempest/blob/30567a3f10ae13c758f71adb3628e82479c5633c/Engine/system/eventdispatcher.cpp#L312 to be false the second time and setting focusLast = nullptr and therefore FocusIn did not restore focus because this code is not executed https://github.com/Try/Tempest/blob/30567a3f10ae13c758f71adb3628e82479c5633c/Engine/system/eventdispatcher.cpp#L202 I added a commit to fix this.

Try commented 1 year ago

Merged, thanks!

UPD: OpenGothic submodule is updated as well