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

Weird window Shadow on Wayland #419

Closed
alosarjos opened this issue Mar 15, 2019 · 5 comments
Closed

Weird window Shadow on Wayland #419

alosarjos opened this issue Mar 15, 2019 · 5 comments

Comments

@alosarjos
Copy link

alosarjos commented Mar 15, 2019

Overview Description: On Wayland Session, when the window has the focus, it draws a weird shadow.

Steps to Reproduce:

  1. Start a Wayland Session
  2. Open Gnome-MPV
  3. Focus the window by selecting it

Actual Results:
Captura de pantalla de 2019-03-15 13-24-58

Expected Results:

A more subtle shadow I guess like this?

Captura de pantalla de 2019-03-15 13-27-47

Version: 0.16

Additional Information: Arch installation, AMD GPU on Wayland

@gnome-mpv
Copy link
Collaborator

I can reproduce this, but only with AMD GPUs, so this is probably a bug in AMD's driver.

@alosarjos
Copy link
Author

MPV by itself is not showing it (Read about people claiming it was due to OpenGL accelerated windows). Some bug on GTK maybe?

@gnome-mpv
Copy link
Collaborator

Some bug on GTK maybe?

That's also possible. In any case, it's not a bug in celluloid/gnome-mpv since we don't have any control over the shadow.

@valpackett
Copy link

I've been seeing this for a long time on any OpenGL + GTK windows indeed. Your report here actually pushed me to investigate :)

Mesa >=18.0 supports 10-bit color buffer formats, and they have 2-bit alpha. (R10G10B10A2) Obviously you can't have much smoothness if transparency is encoded with two bits, that's just 4 levels of transparency. Sooo they decided to return these formats first, presumably to troll everyone who just naively picks the first compatible format, expecting R8G8B8A8. (Which is good! Don't expect that!) And GTK was one of those naive toolkits.

Just sent a pull request to GTK: https://gitlab.gnome.org/GNOME/gtk/merge_requests/941

@gnome-mpv
Copy link
Collaborator

No longer reproducible as of GTK 3.24.10.

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

3 participants