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

Window's endFrontAction called inappropriately when user clicks on title bar #1664

Open
jamshark70 opened this issue Sep 19, 2015 · 2 comments
Labels
bug Issues that relate to unexpected/unwanted behavior. Don't use for PRs. comp: Qt GUI sclang Qt components -- for IDE tickets, use "env: SCIDE" instead

Comments

@jamshark70
Copy link
Contributor

(
var w = Window("click my title bar", Rect.aboutPoint(Window.screenBounds.center, 100, 60))
.endFrontAction_({ w.endFrontAction_(nil).close })
.front;
)

Expected: The window is still in front, so endFrontAction should not fire and the window should not close.

Actual: The window closes.

(Of course, "click my title bar" means what it says. It doesn't mean "click the close box in my title bar.")

Ubuntu 12.04, Gnome 3, Qt 5.4.1.

@jamshark70 jamshark70 added bug Issues that relate to unexpected/unwanted behavior. Don't use for PRs. comp: Qt GUI sclang Qt components -- for IDE tickets, use "env: SCIDE" instead labels Sep 19, 2015
@telephon
Copy link
Member

Same on OSX 10.10

@redFrik
Copy link
Contributor

redFrik commented Aug 12, 2019

i can't reproduce. seems to be fixed here (sc3.10.2, macOS 10.12.6)
endFrontAction does not fire when i click the bar - only when i click outside the window disappears - as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues that relate to unexpected/unwanted behavior. Don't use for PRs. comp: Qt GUI sclang Qt components -- for IDE tickets, use "env: SCIDE" instead
Projects
None yet
Development

No branches or pull requests

3 participants