shell icon indicating copy to clipboard operation
shell copied to clipboard

Native Wayland windows flicker between positions on focus change

Open Araly opened this issue 2 years ago • 9 comments

(1) Issue/Bug Description:

In tiling mode, when I change the focus from a window to another, all the Wayland windows will flicker between their assigned position in the tile, then an older position they had, then to the correct position again. It happens in maybe half a second.

It only affects native Wayland windows, not XWayland windows. So for example, my browser Vivaldi is not using native Wayland yet, and is not affected. The same way, kitty (in X mode), Discord, Steam are not affected. Gnome Files, Tweaks, Extensions, Gnome Settings, kitty (in Wayland mode) are affected.

I don't have this issue when I launch Gnome in X mode, or in floating mode.

Additionally, when native Wayland apps open pop up windows (which Gnome does a lot), the whole app flickers. And when I close the pop-up, the whole app flickers again.

(2) Steps to reproduce (if you know):

  • install Gnome and Pop Shell extension
  • run Gnome in Wayland mode
  • turn on tiling mode
  • open up a variety of x and wayland windows
  • move them around in the grid maybe, so they have older positions to flicker too (although it seems like just them appearing is a position, and then being tiled becomes the new position)
  • change focus from window to window, either with key bindings or with the mouse

(3) Expected behavior:

When I change focus from a window to a window, all Wayland windows behave like the X windows, and stay in place where they are.

(4) Distribution (run cat /etc/os-release):

NAME=EndeavourOS
PRETTY_NAME=EndeavourOS
ID=endeavouros
ID_LIKE=arch
BUILD_ID=2021.08.27
ANSI_COLOR="38;2;23;147;209"
HOME_URL='https://endeavouros.com'
DOCUMENTATION_URL='https://forum.endeavouros.com/c/Arch-based-related-questions/bug-reports'
SUPPORT_URL='https://forum.endeavouros.com'
BUG_REPORT_URL='https://forum.endeavouros.com/c/arch-based-related-questions/bug-reports'
LOGO=endeavouros

(5) Gnome Shell version:

41.3

(6) Pop Shell version (run apt policy pop-shell or provide the latest commit if building locally):

aur/gnome-shell-extension-pop-shell-git r847.21745c4-1 (+29 2.20) (Installed)

(7) Where was Pop Shell installed from:

the AUR

(8) Monitor Setup (2 x 1080p, 4K, Primary(Horizontal), Secondary(Vertical), etc):

1 x 1080p

(9) Other Installed/Enabled Extensions:

[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
just-perfection-desktop@just-perfection
[email protected]
gnome-ui-tu

(10) Other Notes:

Here's screenshots of windows flickering

These are the example of Gnome Settings flickering when I move my mouse (which grabs focus on hover) from Vivaldi to Gnome Settings. (mouse on Vivaldi → mouse on Gnome Settings, which changes position → Gnome Settings settles down in the tiled position)

Screenshot from 2022-02-02 23-15-13 Screenshot from 2022-02-02 23-15-14 Screenshot from 2022-02-02 23-15-15

Then here's a Gnome Settings when I click on a button that opens a popup, flickers, then I close the popup and it flickers again

Screenshot from 2022-02-02 23-37-40 Screenshot from 2022-02-02 23-37-41 Screenshot from 2022-02-02 23-37-43 Screenshot from 2022-02-02 23-37-45 Screenshot from 2022-02-02 23-37-46

Araly avatar Feb 02 '22 22:02 Araly

I'm experiencing the same issue. There seems to be that moving windows around, and opening and closing new ones changes which which window will flicker, sometimes its all flickering and sometimes none. I was testing with all windows being Wayland windows.

(4) Distribution (run cat /etc/os-release):

NAME="Manjaro Linux"
ID=manjaro
ID_LIKE=arch
BUILD_ID=rolling
PRETTY_NAME="Manjaro Linux"
ANSI_COLOR="32;1;24;144;200"
HOME_URL="https://manjaro.org/"
DOCUMENTATION_URL="https://wiki.manjaro.org/"
SUPPORT_URL="https://manjaro.org/"
BUG_REPORT_URL="https://bugs.manjaro.org/"
LOGO=manjarolinux

(5) Gnome Shell version: 41.3

(6) Pop Shell version (run apt policy pop-shell or provide the latest commit if building locally):

community/gnome-shell-extension-pop-shell 1.2.0+203+g37661b6-1 (83.9 KiB 357.3 KiB) (Installed)

(8) Monitor Setup (2 x 1080p, 4K, Primary(Horizontal), Secondary(Vertical), etc): 1x4K secondary (200%) and 1x4K primary (125%)

mentos1386 avatar Feb 03 '22 10:02 mentos1386

Looks like duplicate of #1330

mentos1386 avatar Feb 03 '22 10:02 mentos1386

I have same issue

Distribution:

OS: EndeavourOS Linux x86_64 
Kernel: 5.16.4-zen1-1-zen 
DE: GNOME 41.3
WM: Mutter 
CPU: AMD Ryzen 5 2600X 
GPU: AMD ATI Radeon RX 5600 OEM/5600 XT / 5700/5700 XT

Pop Shell version:

pop-launcher-git 1.1.0.r8.g1d031d9-1
pop-shell-shortcuts-git 1:r30.52cc83f-2

Where was Pop Shell installed from: aur/gnome-shell-extension-pop-shell-git r847.21745c4-1

Monitor Setup

  • 1080p-Primary(Horizontal)
  • 1080p-Secondary(Vertical):

List of active extension

[email protected]
[email protected]
[email protected]
[email protected]
AlphabeticalAppGrid@stuarthayhurst
app-grid-tweaks@Selenium-H
blur-my-shell@aunetx
floating-dock@[email protected]
[email protected]
[email protected]
[email protected]

https://user-images.githubusercontent.com/87226280/152390741-c9ad95aa-513f-48f8-95aa-96f54b084fd5.mp4

Akamarai avatar Feb 03 '22 16:02 Akamarai

As discussed in #1330, the temporary solution is to downgrade mutter. On Fedora:

sudo dnf install mutter-41.0-4.fc35

And then restart

sorig avatar Feb 04 '22 12:02 sorig

do you know if this bug will be fix on next mutter release in archlinux if I downgrade mutter to 41.1 gnome doesn't work anymore same thing if I install 42 alpha

vincentDcmps avatar Feb 13 '22 11:02 vincentDcmps

yeah I prefer to live with the bug or Xorg for a while rather than mess up Arch's package versioning for Gnome. Hopefully it will reach master/main on its own without anything needed from users

Araly avatar Feb 13 '22 14:02 Araly

confirmed on fedora 35, with both integrated intel and integrated amd graphics, so it seems to be GPU-agnostic

also confirmed on artix, though that was fetched from bedrock poki, but the results should be the same

ryleu avatar May 06 '22 15:05 ryleu

I don't seem to have this issue anymore, on Arch. Hopefully it can reach Fedora soon too

Araly avatar May 08 '22 10:05 Araly

I'm experience this issue. Using intel + wayland only (nvidia is not installed)

             /////////////                keerthi@pop-os 
         /////////////////////            -------------- 
      ///////*767////////////////         OS: Pop!_OS 22.04 LTS x86_64 
    //////7676767676*//////////////       Host: Inspiron 16 7610 
   /////76767//7676767//////////////      Kernel: 5.18.10-76051810-generic 
  /////767676///*76767///////////////     Uptime: 9 mins 
 ///////767676///76767.///7676*///////    Packages: 1929 (dpkg), 15 (flatpak) 
/////////767676//76767///767676////////   Shell: bash 5.1.16 
//////////76767676767////76767/////////   Resolution: 3072x1920 
///////////76767676//////7676//////////   DE: GNOME 42.3.1 
////////////,7676,///////767///////////   WM: Mutter 
/////////////*7676///////76////////////   WM Theme: Pop 
///////////////7676////////////////////   Theme: Pop-dark [GTK2/3] 
 ///////////////7676///767////////////    Icons: Pop [GTK2/3] 
  //////////////////////'////////////     Terminal: gnome-terminal 
   //////.7676767676767676767,//////      CPU: 11th Gen Intel i7-11800H (16) @ 4.600GHz 
    /////767676767676767676767/////       GPU: NVIDIA GeForce RTX 3050 Mobile 
      ///////////////////////////         GPU: Intel TigerLake-H GT1 [UHD Graphics] 
         /////////////////////            Memory: 3566MiB / 39864MiB 
             /////////////

gitkeerthi avatar Aug 03 '22 06:08 gitkeerthi