Closed Reveares closed 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.
focusLast = nullptr
Merged, thanks!
UPD: OpenGothic submodule is updated as well
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.