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

Fix 100% opaticy rule with inactive-opacity #1

Closed
wants to merge 1 commit into from

Conversation

llitz
Copy link

@llitz llitz commented Aug 10, 2018

@yshui, can you accept this? I have sent this upstream but I wanted to make sure we would keep your branch updated.

When inactive-opacity is enabled, you can override the opacity by using opacity-rule.

By default, all windows have 100 opacity and, if it is still at 100,
inactive-opacity will be applied when the window loses focus. This
patch adds a new bool opacity_disabled to win struct and verify this
variable before deciding if it should be excluded from inactive-opacity

Fix 99% transparency problems on chjj/compton#450 chjj/compton#433
chjj/compton#403 chjj/compton#367 chjj/compton#260 chjj/compton#182
chjj/compton#158

When inactive-opacity is enabled, you can override the opacity by using opacity-rule.

By default, all windows have 100 opacity and, if it is still at 100,
inactive-opacity will be applied when the window loses focus. This
patch adds a new bool opacity_disabled to win struct and verify this
variable before deciding if it should be excluded from inactive-opacity

Fix 99% transparency problems on chjj/compton#450 chjj/compton#433
chjj/compton#403 chjj/compton#367 chjj/compton#260 chjj/compton#182
chjj/compton#158
@yshui
Copy link
Owner

yshui commented Aug 11, 2018

@llitz Feels like to me this does not fix the root of the problem? Why does setting opacity to 100 not make the window completely opaque?

@llitz
Copy link
Author

llitz commented Aug 11, 2018 via email

@yshui
Copy link
Owner

yshui commented Aug 11, 2018

@llitz I opt to solve this problem in a (IMO) better way. If you can give 30c14c06d2eef008a7eeb3c0e23d8a08c8ba37e1 (the opacity branch) a try and report back, that will be much appreciated.

@llitz
Copy link
Author

llitz commented Aug 11, 2018 via email

@llitz
Copy link
Author

llitz commented Aug 13, 2018

@yshui Your opacity branch works perfectly and looks a very interesting approach, I was worried about changing too much of the code without knowing it and breaking more things than fixing it. You fixed the whole implementation (=

I will keep running it and let you know if I face any bug that could be related to it.

@yshui
Copy link
Owner

yshui commented Aug 13, 2018

@llitz Yes, please. If you can keep testing, that will be great. I'm worried about this might break random seemingly unrelated things as well.

@llitz
Copy link
Author

llitz commented Aug 13, 2018

While this branch works, I tried to merge/rebase it with your master. Commit 27fc4a2 seems to be causing issues for me:
compton: src/compton.c:6603: init_filters: Assertion `false' failed.

Going to try it without that one. I am on gcc 8.2 by the way.

@yshui
Copy link
Owner

yshui commented Aug 14, 2018

@llitz which backend are you using? And did you have NO_VSYNC_OPENGL in your build options?

@yshui
Copy link
Owner

yshui commented Aug 14, 2018

@llitz Should be fixed with the most recent master

@llitz
Copy link
Author

llitz commented Aug 14, 2018

@yshui I will test again, we may want to open a different issue to track it as it was related to a different issue. Anyway, I don't think I have anything special on my build options. I should only have NO_DBUS on my build process (been testing different versions on a gentoo build). I should be able to test a new version later today/tomorrow.

@llitz
Copy link
Author

llitz commented Aug 14, 2018

Last master commit has fixed it (=. The version I am currently running is the opacity branch with a master rebase, so I should have all patches in this code.

Relevant definitions on my code are:
-DCONFIG_XINERAMA -DCONFIG_LIBCONFIG -DCONFIG_REGEX_PCRE -DCONFIG_REGEX_PCRE_JIT -DCONFIG_VSYNC_DRM -DCONFIG_VSYNC_OPENGL -DCONFIG_VSYNC_OPENGL_GLSL -DCONFIG_VSYNC_OPENGL_FBO -DCONFIG_VSYNC_OPENGL_VBO -DCONFIG_XSYNC -DCONFIG_C2

@yshui
Copy link
Owner

yshui commented Aug 17, 2018

@llitz Closing this since opacity branch is merged into master

@yshui yshui closed this Aug 17, 2018
@ChrisLahaye ChrisLahaye mentioned this pull request Oct 29, 2018
@siyia2 siyia2 mentioned this pull request Jan 31, 2019
colonelpanic8 pushed a commit to colonelpanic8/picom that referenced this pull request Aug 6, 2023
win: fix leak in win_bind_mask
This pull request was closed.
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.

2 participants