Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

weird mouse event behaviour #7942

Open
blancoberg opened this issue Dec 28, 2024 · 6 comments
Open

weird mouse event behaviour #7942

blancoberg opened this issue Dec 28, 2024 · 6 comments
Labels
Bug Report Item submitted using the Bug Report template

Comments

@blancoberg
Copy link
Contributor

Bug Description:
When a context menu is open ( right click ) and you switch to another window, a mouse down event seem to be randomly called when you hover the mouse on top of surge causing all sorts of behaviours from moving/resizing the window, dragging sliders etc..

Surge XT Version
Nightly 1.4

  • Version:
    Standalone

Reproduction Steps:
Steps to reproduce the behavior:

  1. Open the context menu for one of the sliders.
  2. switch to another window/app
  3. hover the mouse over surge xt.
  4. a mouse down event is called ( sometimes )

Expected Behavior:
No mouse event is called :)

Computer Information (please complete the following!):
Windows 10

surge-contextmenu-bug.mp4
@blancoberg blancoberg added the Bug Report Item submitted using the Bug Report template label Dec 28, 2024
@blancoberg
Copy link
Contributor Author

likely a bug in juce::PopupMenu(). its like it doesnt get destroyed properly when window is set out of focus

@baconpaul
Copy link
Collaborator

there's a dismiss all popups call. we call it in the destructor of SurgeGUIEditor
We probably also need to call it when focus is lost on SGE
but that conditions a bit tricky to find

@landinig
Copy link

landinig commented Jan 4, 2025

I can confirm some odd behaviour when resizing the main window (under linux). Intermittently, the resizing seems to remain "on" and attempting to place the cursor over the synth window remains resizing again making it smaller every time.

@blancoberg
Copy link
Contributor Author

@landinig does it only happen when the context menu is open? or does it happen anyway?

@landinig
Copy link

landinig commented Jan 4, 2025

Hi @blancoberg, sorry I am not sure, I have just been using the program for a couple of days. It seems that when I drag, let's say the 'top border' or 'top right corner' (which should put it in resizing mode) sometimes one cannot exit the resizing state and attempt to go into the main panel keeps resizing it (smaller each time!) until it completely minimises.
In case it is useful:
Version: Surge XT 1.3.4.f7b97c6
Build Info: 2024-08-11 @ 15:57:53 on '24d2f7d926f1/local' with 'GNU-9.4.0' using JUCE 7.0.12
System Info: Linux 64-bit Standalone on Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz, 31 GB RAM
Sample Rate: 44100 Hz
Processing Block: 32 samples

@landinig
Copy link

landinig commented Jan 4, 2025

@blancoberg Another comment: comparing to how KDE works, the resizing state is held while the left mouse button is pressed. It seems that in Surge-XT resizing works a toggle state ? (i.e. releasing the button does not stop the resizing).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Report Item submitted using the Bug Report template
Projects
None yet
Development

No branches or pull requests

3 participants