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

two selection bugs #28

Closed
alpheratz0 opened this issue Jan 13, 2023 · 6 comments
Closed

two selection bugs #28

alpheratz0 opened this issue Jan 13, 2023 · 6 comments

Comments

@alpheratz0
Copy link
Contributor

  • part of the selection rectangle is not rendered (I think that the problem is here)
  • the last item is selected but it should not

A video is worth a thousand images...

selection_bug.mp4
@phillbush
Copy link
Owner

Hi @alpheratz0

The last two commits fix each bug.

@phillbush
Copy link
Owner

Btw, I see you're using transparency.
Do the icons and text are transparent as well or only the background?
And how are you achieving transparency?

@alpheratz0
Copy link
Contributor Author

Btw, I see you're using transparency.
Do the icons and text are transparent as well or only the background?

At first I thought it was only the background, but by setting the opacity to a lower
value you can see that also the icons and text gets transparent.
screenshot

And how are you achieving transparency?

Picom, why?

@phillbush
Copy link
Owner

That's because XFiles uses the default X depth and X drawing routines, which does not use alpha channel.
I'm working on a new commit that makes transparency work only on the background.

@phillbush
Copy link
Owner

Ok, I added a XFiles.opacity X resource.
It is a float number from 0.0 (full transparent) to 1.0 (full opaque).

opacity

It required considerable changing on the X drawing code... I hope I have not broken anything...

@phillbush
Copy link
Owner

It still needs a compositor for the transparency to work, but you now need to configure the opacity in XFiles itself (via X resources) rather than on picom.

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

No branches or pull requests

2 participants