summaryrefslogtreecommitdiff
path: root/Userland/Applications/SoundPlayer/BarsVisualizationWidget.h
diff options
context:
space:
mode:
authorKarol Kosek <krkk@krkk.ct8.pl>2021-07-11 19:06:20 +0200
committerAndreas Kling <kling@serenityos.org>2021-07-11 21:15:56 +0200
commit9d36369c58ed50c2fae9da77bada3bca440b81fa (patch)
tree5fdcc3e233798de45e72a22de666bb48198b7e5c /Userland/Applications/SoundPlayer/BarsVisualizationWidget.h
parentda0095855e99329ae8d15af0203455d6cd50a549 (diff)
downloadserenity-9d36369c58ed50c2fae9da77bada3bca440b81fa.zip
SoundPlayer: Show the context menu right under the cursor
The context menu used the mouse position by window, which resulted in a pop-up menu in the upper left corner of the screen.
Diffstat (limited to 'Userland/Applications/SoundPlayer/BarsVisualizationWidget.h')
-rw-r--r--Userland/Applications/SoundPlayer/BarsVisualizationWidget.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Applications/SoundPlayer/BarsVisualizationWidget.h b/Userland/Applications/SoundPlayer/BarsVisualizationWidget.h
index 54d3778e6c..679928e60c 100644
--- a/Userland/Applications/SoundPlayer/BarsVisualizationWidget.h
+++ b/Userland/Applications/SoundPlayer/BarsVisualizationWidget.h
@@ -25,7 +25,7 @@ private:
void set_buffer(RefPtr<Audio::Buffer> buffer, int samples_to_use);
void paint_event(GUI::PaintEvent&) override;
- void mousedown_event(GUI::MouseEvent& event) override;
+ void context_menu_event(GUI::ContextMenuEvent& event) override;
Vector<Complex<double>> m_sample_buffer;
Vector<int> m_gfx_falling_bars;