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

RGB565 and black boxes #141

Open
basaran opened this issue Sep 29, 2022 · 7 comments
Open

RGB565 and black boxes #141

basaran opened this issue Sep 29, 2022 · 7 comments

Comments

@basaran
Copy link

basaran commented Sep 29, 2022

Hello,

I'm running my X in 16-bit color (RGB565) and alttab displays only black boxes. Would it possible to address this?

P.S The reason I'm running it in 16-bit color is to reduce eyestrain.

Unexpected X Error: BadMatch (invalid parameter attributes)
Error details: request_code=72 minor_code=0 resourceid=56623104
X11 depth must be 24 or 32, we have 16
alttab: can't read png to drawable: /usr/share/icons/hicolor/32x32/apps/google-chrome.png
alttab: can't load file icon content: /usr/share/icons/hicolor/32x32/apps/google-chrome.png
@sagb
Copy link
Owner

sagb commented Sep 30, 2022

Try to remove return 0 at line 239 of src/pngd.c and change XDEPTH to 16 at line 56 in src/alttab.h

@basaran
Copy link
Author

basaran commented Sep 30, 2022

Hello :)

It's definitely better but still a bit off:

image

@basaran
Copy link
Author

basaran commented Sep 30, 2022

Actually, I would be just fine it wouldn't display anything and just switch and raise the windows. If you have any more hints on how to accomplish that :)

@sagb
Copy link
Owner

sagb commented Oct 7, 2022

pngDraw() should be fixed to draw on 16-bit Drawable.

@basaran
Copy link
Author

basaran commented Oct 7, 2022

Is there a quick way to just disable the preview altogether instead switch focus on actual windows and raise when release alt-tab?

@sagb
Copy link
Owner

sagb commented Oct 10, 2022

No, it would require a massive alteration.

@sagb
Copy link
Owner

sagb commented Jun 29, 2023

Actually, in latest alttab it's -s 4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants