-
Notifications
You must be signed in to change notification settings - Fork 11
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
windows have no transparency when spawned. #35
Comments
hey :) /* bg opacity */
float alpha = 0.8, alphaUnfocused = 0.6; By default the transparency for the unfocused window is higher than the one for the focused window, but you can change that by finding a lower value for If I temporarily change my configuration to the following:
and rebuild, I receive a terminal with high transparency if focused, and no transparency otherwise. The process for changing the values is as follows:
|
Well that is not my issue. my issue is that whenever i spawn a st terminal with this patch, it will have no transparency at all on that window until i change the focus. the right transparency will be applied if i for example switch focus. picture 0 shows two ST terminals, the rightmost being just spawned and therefore has no transparency at all (the bug that i'm facing), picture 1 shows the same two windows, only i switched the focus twice and therefore it works as intended. I just tested this on stock ST (which i should have done from the beginning) and the same problem occurs there. i only edit config.def.h because i add patches sometimes, and yes i always remember to remove config.h |
ok weird, I am currently using an older version of the terminal, but ran the patch on v 0.9 of st:
with this patch, which should be the same one you're using: Build process: New terminal without switching focus: So that seems to work for me. Tests you can perform to track down the problem1. Add debug infoI inserted two lines (the ones with the unusual indentation) into the xloadalpha function to debug this temporarily (without the leading '+', I just copied from the diff):
try doing the same and post the output here.
(apparently it spawns unfocus and then gains focus; current settings for the test is focus 0.5, no focus 0.6) and when I switch focus from the terminal a new line appears, which reflects what I am seeing on my system. 2. Compare with behavior of the alpha patchIf you're investigating this issue on your machine if you are facing the same problem with the OG alpha patch (the one that does not react to focus changes). 3. Diff to 68d1ad9Attach the diff of your code after applying only st-focus to the commit 68d1ad9 of st, so I can compare that to the diff I receive after patching. Which compositor & WM are you using? I am not sure if I can help you with the problem as I cannot replicate this; if you find a solution contributions are welcome! |
1: retrying but with the added top line: note: i always use make clean install as when i did make, it did not overwrite my existing st patch (i'm using all stock to be as scientific and thorough as possible) and also because i'm a newb when it comes to make so i just use what has worked in the past lol, and make clean install never has any problems with me. 2: 3: i don't know what that means, sorry (don't worry about the ram, it's just my browser lol, i have too many tabs open) EDIT: i did killall xcompmgr, i thought it would have killed the xinit thing as it usually does whenever i kill anything in .xinitrc, so i just ran picom and the same issue applies there. |
they only gain transparency when the focus is moved away from them, i used unmodified st other than scrollback support added, and no compilation errors when building. this is from the latest version found on the suckless.org website on st 0.9.
sorry if there is something obvious i'm missing.
The text was updated successfully, but these errors were encountered: