[nostalgia,studio] Proper fix for input filtering
This commit is contained in:
@ -18,6 +18,9 @@
|
||||
|
||||
namespace studio {
|
||||
|
||||
namespace ig {
|
||||
extern bool s_mainWinHasFocus;
|
||||
}
|
||||
static ox::Vector<Module const*> modules;
|
||||
|
||||
void registerModule(Module const*mod) noexcept {
|
||||
@ -114,6 +117,8 @@ void StudioUI::draw() noexcept {
|
||||
ImGuiWindowFlags_NoSavedSettings;
|
||||
ImGui::Begin("MainWindow##Studio", nullptr, windowFlags);
|
||||
{
|
||||
ig::s_mainWinHasFocus = ImGui::IsWindowFocused(
|
||||
ImGuiFocusedFlags_RootAndChildWindows | ImGuiFocusedFlags_NoPopupHierarchy);
|
||||
if (m_showProjectExplorer) {
|
||||
m_projectExplorer.draw(m_sctx);
|
||||
ImGui::SameLine();
|
||||
|
Reference in New Issue
Block a user