maiself / gnome-shell-extension-invert-color

GNOME Shell extension for inverting the color of windows
MIT License
43 stars 24 forks source link

chopped/incorrect rendering in overview mode #10

Closed natask closed 5 years ago

natask commented 5 years ago

The issue is that windows get render chopped and sometimes don't render at all the left area of overview mode. windows also sometimes don't render in the right area of the overview mode where different virtual workspaces are rendered. over all there is incompatibility between this extension and the overview mode. I was able to isolate the issue to the call actor.add_effect_with_name('invert-color', effect); and even tried calling it with an effect object that doesn't do anything but still faced the same issue. I experimented a bit and found that the size of the window determines whether it is going to be chopped or not and that the window doesn't render in the small overview box to the right if the virtual workspace is focused and it is the only window in that virtual workspace. my assumption is that there is an incompatibility the add_effect method that the extension uses and how overview renders these windows.

are there any alternatives to the overview mode for gnome? any solutions to this issue? I will look into gnome-shells implementation for the overview mode for inspirations.

I am using ubuntu 18.04 latest version, gnome shell 3.28.3.

natask commented 5 years ago

image image image image image image image

maiself commented 5 years ago

This was a long existing bug in the window manager that's recently been fixed. The fix made it into 3.32, unfortunately old versions will still have the bug and this cant be fixed from the extension.

natask commented 5 years ago

thanks, good thing this is fixed. currently I am calling xrandr-invert-colors from the extension when overview is shown or hidden and turning off/on inversion respectively to avoid this. gnome-shell 3.32 is hot of the stove so I am hesitant to use it on my main machine but I will try it out on a spare distro. @maiself Have you personally verified that this is not a issue on gnome shell 3.32 and on what distro? I see that the manifest file declares gnome 3.32 as supported.

maiself commented 5 years ago

I'm using Arch Linux which currently has version 3.32. I wouldn't have updated the manifest if it didn't work as intended.

natask commented 5 years ago

@maiself the fix for the bug you reported and fixed propagated down to the latest version of gnome-shell Ubuntu (either 3.28 or 3.30 I will check later) 18.04 uses. Been using it for around ever since June.