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

Remove ghost window #716

Merged
merged 1 commit into from Mar 18, 2022
Merged

Conversation

corubba
Copy link
Contributor

@corubba corubba commented Mar 14, 2022

See my comment in #648 for a full explanation.

Fixes #648.

The ghost window appeared because `setVisible(True)` was called on a
widget (`cancel` in this case) whose only parent was a layout (`cbox`).
This forced the button (and layout) to be displayed as/in a new window.
This window gets destroyed as soon as the layout gets a "proper"
parent which is not visible. This happens only a few lines after when
`vbox` is set as layout for the ProgressWin QDialog.
To solve this, do not set the button to explicitly visible but only
hide it if it shouldn't be displayed.
I am not going to question why the button is only hidden instead of
completely removed, I will just accept it as given right now.
@sandrotosi sandrotosi merged commit e9d16b9 into puddletag:master Mar 18, 2022
@corubba corubba deleted the bugfix/ghost-window branch March 19, 2022 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

puddletag spawns invisible ghost windows in bspwm
2 participants