From 3b0be2c42a2adf59c6856b18c5e8fc84072061cd Mon Sep 17 00:00:00 2001 From: tildearrow Date: Tue, 12 Apr 2022 02:46:51 -0500 Subject: [PATCH] GUI: focus sample editor when clicking on waveform --- src/gui/sampleEdit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/sampleEdit.cpp b/src/gui/sampleEdit.cpp index cf7f0176..07aeef8a 100644 --- a/src/gui/sampleEdit.cpp +++ b/src/gui/sampleEdit.cpp @@ -29,7 +29,6 @@ #include "util.h" // TODO: -// - clicking on waveform should give this window focus // - add "create instrument using this sample" option // - .dmc loading void FurnaceGUI::drawSampleEdit() { @@ -1192,6 +1191,7 @@ void FurnaceGUI::drawSampleEdit() { ImVec2 rectSize=ImGui::GetItemRectSize(); if (ImGui::IsItemClicked()) { + nextWindow=GUI_WINDOW_SAMPLE_EDIT; if (ImGui::IsMouseDoubleClicked(ImGuiMouseButton_Left)) { sampleDragActive=false; sampleSelStart=0;