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

Opacity settings fail to work on startup #1336

Open
2 of 4 tasks
StudyingFather opened this issue Mar 11, 2024 · 2 comments
Open
2 of 4 tasks

Opacity settings fail to work on startup #1336

StudyingFather opened this issue Mar 11, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@StudyingFather
Copy link
Member

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Every time I start CP Editor, the main window becomes completely opaque, even if I have set the transparency in the settings before.

To make the windows become transparent again, I have to set the transparency argument in the settings manually every time after startup.

Expected Behavior

After setting the opacity, the main window can be transparent depanding on the settings every time after start up.

Steps To Reproduce

  1. Set the opacity argument in the settings to make the main window transparent.
  2. Close CP Editor.
  3. Restart CP Editor. The main windows become opaque.

CP Editor Version

7.0.1.r3.g21813202

OS

Arch Linux

Are you willing to contribute to this?

  • I'm ready to fix this (and will open a PR soon)
  • I'd like to have a try (with the help of the maintainers)
  • No, thanks

Anything else?

Desktop Environment: GNOME 45.4

I don't know whether this bug is related to the desktop environment or not. 🤔

@StudyingFather StudyingFather added the bug Something isn't working label Mar 11, 2024
@ouuan
Copy link
Member

ouuan commented Mar 11, 2024

It works as expected on my i3wm. As I remember, also on KDE Plasma (several years ago).

You can try setWindowOpacity again (or only) in the QTimer::singleShot in AppWindow::finishConstruction 🤔

@StudyingFather
Copy link
Member Author

By just commenting out setWindowOpacity in the construction function of AppWindow (https://github.com/cpeditor/cpeditor/blob/master/src/appwindow.cpp#L107), it works as expected. 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants