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

Bug: Dock flickers on top of fullscreen window #1381

Open
balogandras opened this issue Feb 1, 2021 · 21 comments
Open

Bug: Dock flickers on top of fullscreen window #1381

balogandras opened this issue Feb 1, 2021 · 21 comments

Comments

@balogandras
Copy link

balogandras commented Feb 1, 2021

Hi! I'm experiencing some flickering:

https://photos.app.goo.gl/pFcSkBp2fAXtKDL16

Only

  • on the second monitor,
  • when dock auto hide is enabled,
  • when Chrome window is maximized
  • and active.
  • on OpenSUSE Tumbleweed, GNOME 3.38.3, Wayland, Dash to Dock v69.

It worked well with OpenSUSE Leap 15.2, GNOME 3.34

It works well if I log out and log in X instead of the default Wayland.

Thanks for the extension. I like it this way since Unity.

@HanyuCheng
Copy link

I met the same issue on arch with Kernel: x86_64 Linux 5.10.13-arch1-2, GNOME 3.38.3, Wayland, Dash to Dock v69.

  • when auto hide is enabled,
  • when Chrome window is maximized
  • and active.

@kadiganthingamajig
Copy link

I had this same pedicament and upon searching for a solution, I found a temporary fix by turning off hardware accelaration for Chrome.
This can be done by simply heading over to "Settings> Advanced: System> Hardware Accelaration" and toggling it off.

Unfortunately this is probably a Chrome specific fix and will also result in a slightly lower UX.

I'm on Ubuntu 21.04 with Wayland, GNOME Shell 3.38.4 and Dash to Dock v69.

@speakradmin
Copy link

Same issue here with Chrome but also getting it with Microsoft Teams. I can confirm disabling hardware acceleration on Teams works same as Chrome. Could be Electron related?

@Dorro101
Copy link

Dorro101 commented Jul 8, 2022

Same issue here with Firefox 102.0, Fedora 36, Gnome 42.2 on Wayland, Lenovo ThinkPad X1 Tablet Gen 3, Intel® Core™ i5-8250U, Mesa Intel® UHD Graphics 620...

After trying many variations of the preferences nothing helped. It may have something to do with mouse pressure, if I keep the cursor against the bottom of the screen the flickering stops.

@x3rAx
Copy link

x3rAx commented Oct 30, 2022

Same issue happens to me in the following apps:

  • Firefox 106.0.1
  • VScode 1.69.2
  • MS Teams 1.5.00.23861
  • Obsidian 1.0.3

I'm on:

Disabling hardware acceleration in all of these apps did nothing (yes I restarted them 😉). Pushing the cursor against the screen edge as @Dorro101 suggests does not make a difference for me.

What I noticed is that the dock seems to be visible for the time the application name tool-tip is faded in or out. As soon as the cursor leaves the area of the currently hovered application icon, the dock briefly appears and when it enters the area of the next icon, it appears again. It feels like the dock is visible for about the same it takes the tool-top to fad in or out on the main monitor where the dock does not flicker.

I also noticed that the dock stays visible for as long as I drag an application icon and if I drag the icon to outside of the dock, it stays visible during the animation where the icon flies back to its original position.

It does not happen with Telegram, Discord Element (Matrix client) or Postman which I believe are Electron apps, although except for Telegram they use native windows (they use the title bar and window frames provided by the system instead of drawing their own window). So I don't think it's just Electron that causes the issue.

It also does not happen in Tor Browser (it uses the native window title bar and won't let me disable it).

It does not happen with MS Edge (sorry for that 🤣) even with native window disabled.

If I enable the native title bar option for the apps mentioned at the beginning, the dock does not flicker:

  • Firefox: right click on menu icon > Customize toolbar > check "Title bar" in the bottom left corner
  • Chrome: right click empty space on tab bar > Use system title bar an borders
  • Obsidian: Settings > Appearance > Scroll down to the "Advanced" section > set "Window frame style" to "Native frame"
  • MS Teams: (didn't find an option to do so)

@vanvugt vanvugt changed the title Bug: Dock flickers on top of Chrome window Bug: Dock flickers on top of maximized window Feb 28, 2023
@vanvugt vanvugt changed the title Bug: Dock flickers on top of maximized window Bug: Dock flickers on top of fullscreen window Feb 28, 2023
@vanvugt
Copy link
Collaborator

vanvugt commented Feb 28, 2023

I'm going to commandeer Ubuntu bug https://launchpad.net/bugs/1905186 to track this. Although that bug claims to be Xorg only and this bug claims to be Wayland only. They still sound the same.

@vanvugt
Copy link
Collaborator

vanvugt commented Mar 2, 2023

As mentioned above, the problem seems to be related to tooltips. If you have an empty section of dock with no icons then you can move the cursor to that section and it will appear without flicker. Because where there are no icons there are no tooltips.

@stpnwf
Copy link

stpnwf commented Mar 26, 2023

Maybe this is a GTK issue? I am on Fedora 37 (Wayland), and this issue seems to happen to all GTK4 applications + a few others like Spotify, Freetube, Audacity, Gimp, Inkscape, VLC, Joplin, Bitwarden, Chromium, gnome-sushi, Signal, etc.

But one thing I noticed was that all GTK3 applications I tested don't have this issue (at least on Fedora 37): Terminal, Gnome Tweaks, System Monitor, Inkscape, Foliate, Wordbook, Totem, Telegram, LibreOffice, Flatseal, gThumb, EOG, Evince, etc all work fine with Dash to Dock when in fullscreen with intelihide .

What is strange though is that I recorded my screen to show the above - that the issue affected all GTK4 applications, and not GTK3 - but the recording (captured using the built in recorder) doesn't show any flickering, despite it being visible to me when recording it. Perhaps this offers a clue.

If you have an empty section of dock with no icons then you can move the cursor to that section and it will appear without flicker.

@vanvugt does the flickering happen to you to the GTK3 apps I mentioned above? And even on Wayland?
I notice the same behavior with the apps I mentioned above in Hide Top Bar extension.

@polluxau
Copy link

polluxau commented May 2, 2023

Fedora 38, gnome 44 (wayland) RX 6700

Im having this issue aswell when discord, spotify is opened on my second monitor and when i try to bring up the dock it will flicker like crazy if fullscreen but if i minimize discord or spotify it works fine.

@XMoon
Copy link

XMoon commented May 8, 2023

https://extensions.gnome.org/extension/1873/disable-unredirect-fullscreen-windows/

after enable this extension, the problem fixed.

@nose-gnome
Copy link

nose-gnome commented Aug 22, 2023

I have something similar. It happens for me on Xorg as well, and on my main monitor. It only happens when I move my mouse down to where the dock is, if I'm playing a video game, I move look in the direction of where the dock is (presumably, because it's invisibly moving the mouse).

I'm running Ubuntu 23.04

@queenbiscuit311
Copy link

queenbiscuit311 commented Oct 27, 2023

https://extensions.gnome.org/extension/1873/disable-unredirect-fullscreen-windows/

after enable this extension, the problem fixed.

oh my god thank you this was driving me insane ive been searching for any mention of this issue on google for like an hour. this works for me on dash to dock but it also works for intellihide on the hide top bar extension and for the panel corners extension. all three of them had the same flickering issues on either fullscreen windows or maximized windows with hide top bar intellihide enabled.

@nypava
Copy link

nypava commented Nov 7, 2023

https://extensions.gnome.org/extension/1873/disable-unredirect-fullscreen-windows/

after enable this extension, the problem fixed.

Thanks buddy, I was searching for more than 1 hour to fix this annoying bug.

@crypto-query
Copy link

https://extensions.gnome.org/extension/1873/disable-unredirect-fullscreen-windows/

after enable this extension, the problem fixed.

Thank you! This fixed Dock flickering on auto show on the 2nd screen.

@daniyal-javani-vgl
Copy link

The extension also fixed it for me on Ubuntu 22.04 native dock! But that's an interesting bug that only an extension can fix it!!

@queenbiscuit311
Copy link

queenbiscuit311 commented Jan 17, 2024

The extension also fixed it for me on Ubuntu 22.04 native dock! But that's an interesting bug that only an extension can fix it!!

considering how flawless (albeit lacking in the features they should've added 4 months ago department) their Wayland implementation is I'm surprised gnome devs haven't fixed this one

@JimmyJichi
Copy link
Contributor

https://extensions.gnome.org/extension/1873/disable-unredirect-fullscreen-windows/

after enable this extension, the problem fixed.

With this extension, if I set "dodge windows" to "only maximized windows", the dock does not become hidden at all when Firefox starts playing a full screen video.

@taoky
Copy link
Contributor

taoky commented Mar 28, 2024

https://extensions.gnome.org/extension/1873/disable-unredirect-fullscreen-windows/
after enable this extension, the problem fixed.

With this extension, if I set "dodge windows" to "only maximized windows", the dock does not become hidden at all when Firefox starts playing a full screen video.

It looks like nothing to do with the disable unredirect extension (dock will not be hidden even without that). See #1062 (comment).

@JimmyJichi
Copy link
Contributor

https://extensions.gnome.org/extension/1873/disable-unredirect-fullscreen-windows/
after enable this extension, the problem fixed.

With this extension, if I set "dodge windows" to "only maximized windows", the dock does not become hidden at all when Firefox starts playing a full screen video.

It looks like nothing to do with the disable unredirect extension (dock will not be hidden even without that). See #1062 (comment).

Without the disable unredirect extension, the dock does become hidden when Firefox is in fullscreen mode. However, it flickers when the cursor is near the bottom of the screen. The only way to work around it is by maximizing the browser window before entering fullscreen.

@taoky
Copy link
Contributor

taoky commented Mar 28, 2024

https://extensions.gnome.org/extension/1873/disable-unredirect-fullscreen-windows/
after enable this extension, the problem fixed.

With this extension, if I set "dodge windows" to "only maximized windows", the dock does not become hidden at all when Firefox starts playing a full screen video.

It looks like nothing to do with the disable unredirect extension (dock will not be hidden even without that). See #1062 (comment).

Without the disable unredirect extension

I'm afraid that your issue (as shown in this screencast) has nothing to do with current one (dock flickering):

Kooha-2024-03-28-22-33-03.mp4

Code related:

dash-to-dock/intellihide.js

Lines 284 to 288 in 936b866

case IntellihideMode.MAXIMIZED_WINDOWS:
// Skip unmaximized windows
if (!metaWin.maximized_vertically && !metaWin.maximized_horizontally)
return false;
break;

I would suggest submit a new issue about this if you think that current behavior of IntellihideMode.MAXIMIZED_WINDOWS shall be changed.

@JimmyJichi
Copy link
Contributor

https://extensions.gnome.org/extension/1873/disable-unredirect-fullscreen-windows/
after enable this extension, the problem fixed.

With this extension, if I set "dodge windows" to "only maximized windows", the dock does not become hidden at all when Firefox starts playing a full screen video.

It looks like nothing to do with the disable unredirect extension (dock will not be hidden even without that). See #1062 (comment).

Without the disable unredirect extension

I'm afraid that your issue (as shown in this screencast) has nothing to do with current one (dock flickering):
Kooha-2024-03-28-22-33-03.mp4

Code related:

dash-to-dock/intellihide.js

Lines 284 to 288 in 936b866

case IntellihideMode.MAXIMIZED_WINDOWS:
// Skip unmaximized windows
if (!metaWin.maximized_vertically && !metaWin.maximized_horizontally)
return false;
break;

I would suggest submit a new issue about this if you think that current behavior of IntellihideMode.MAXIMIZED_WINDOWS shall be changed.

While the expected behavior of IntellihideMode.MAXIMIZED_WINDOWS is indeed that the dock should remain visible in fullscreen mode, for some reason that's not the case for me, and I get the flickering issue as shown here (it's not shown in the screencast so I had to take a video instead):

video_2024-03-28_16-44-58.mp4

But I understand now that the problem I was having with the disable unredirect extension is in fact the expected behavior. When I modified the condition of IntellihideMode.MAXIMIZED_WINDOWS to !metaWin.maximized_vertically && !metaWin.maximized_horizontally && !metaWin.fullscreen, my issue does get resolved. I will create a separate issue to discuss whether this should be upstreamed.

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