hidetopbar icon indicating copy to clipboard operation
hidetopbar copied to clipboard

Hidden top bar opens but then immediately becomes invisible if active window is currently maximized (top bar is still there; pressing buttons on it works)

Open mlncn opened this issue 2 years ago • 29 comments

The problem is perhaps the top bar being hidden too well, heh. But really everything works perfectly, with animations on one can see the top bar showing up as expected, but then once the animation is done it disappears instantly. (With animations off, set to zero, the same thing is happening, an invisible top bar becomes present and buttons on it can be pressed, but there is no visual cue it ever showed up.)

Thought this was specific to Firefox because that's generally the only maximized application, but can reproduce even with system settings dialogs if i maximize them.

It is a problem of course not to be able to see the top bar to know what time it is or what buttons are available where, and it is also hard to know when the bar is still there, so it being there invisible interferes with pressing top tabs on the open application.

I think the development of this problem coincided with the second-most-recent update of Gnome.

Currently on Gnome 42.2 and the Wayland windowing system. Debian GNU/Linux bookworm/sid.

mlncn avatar Jul 12 '22 12:07 mlncn

Same here. It also caused dash to dock for cosmic with autohide enabled have the same problem. I'll disable this extension until I find a fix edit: using fedora 36 with gnome 42

GrigDavid avatar Jul 13 '22 06:07 GrigDavid

Experiencing the same issue. Both Dash to Dock for COSMIC and Hide Top Bar started acting this way recently. It must've been a GNOME 42 update that broke it, but I can't pinpoint exactly which one.

mumblingdrunkard avatar Jul 13 '22 13:07 mumblingdrunkard

Quick update; A little testing shows that Dash to Dock for COSMIC stops acting up if I disable Hide Top Bar. The same is not true the other way around.

mumblingdrunkard avatar Jul 13 '22 13:07 mumblingdrunkard

Same happening to me, using Pop!_OS 22.04, both Dock and Top-bar behaves that way. Both start blinking after cursor passes through icons and finally becomes invisible until mouse moves.

Update: Actually, it only happens to me when Firefox is the active window. Firefox version is 102.0 (64-bit)

osieltorres avatar Jul 13 '22 22:07 osieltorres

this happens in some apps that have not regular title bar, like firefox or gnome software. If dash-to-dock flickers, disabling hide-top-bar should fix dash-to-dock

GrigDavid avatar Jul 14 '22 06:07 GrigDavid

I think this should be fixable if we put an always on top functionality on the panel. Is there any code pointer for the same on which we can try if anyone is aware ?

mayankwadhwani avatar Jul 14 '22 17:07 mayankwadhwani

Unfortunately, I'm unable to reproduce this issue on Fedora 36 with GNOME 42.3.1 (Wayland) and Firefox 102.0.

tuxor1337 avatar Jul 25 '22 15:07 tuxor1337

Re GrigDavid I also see this flickering only when the fullscreen app doesn't use system titles & borders. Ubuntu 22.04 + GNOME 42.2 (Wayland) + Chrome 104.0.5112.79 + Hide Top Bar 108 + Ubuntu Dock 71 (no dash-to-dock)

FractalMachinist avatar Aug 09 '22 14:08 FractalMachinist

I'm having this same issue on Manjaro Gnome 42.4 Wayland, When this extension (vr. 108) is enabled. Any full sized applications will cause both the top bar and the dock to appear momentarily. followed by flickering before becoming invisible (but still clickable).

AAcatLeader avatar Aug 20 '22 03:08 AAcatLeader

Same problem, Manjaro Gnome. I'm building the extension package using this PKGBUILD here: https://gitlab.com/sdwolfz/pkgbuilds/-/blob/master/gnome-shell-extension-autohidetopbar/PKGBUILD

Using latest commit 74cc28b5f2be11a2e3157689610ef7dd19b6015d (which was supposed to fix this).

I'm thinking: does the plugin store some form of state somewhere? Maybe that needs to be cleared since the above commit... since it does not happen to everybody maybe uninstalling, clearing whatever, then installing again would work :shrug:

sdwolfz avatar Aug 21 '22 07:08 sdwolfz

@tuxor1337 can you please post a list of installed extensions you have on your system? Maybe it's an interaction with another that we might have and you don't. (I'll post my list later today when I arrive home)

sdwolfz avatar Aug 24 '22 10:08 sdwolfz

In Ubuntu 22.04, the extension also messes up the "Auto-hide the Dock" option in Ubuntu's appearance setting (Firefox maximized + mouse on edge of screen = dock appears and disappears).

YueRen avatar Aug 24 '22 13:08 YueRen

@tuxor1337 can you please post a list of installed extensions you have on your system? Maybe it's an interaction with another that we might have and you don't. (I'll post my list later today when I arrive home)

I don't use and never used any other extensions. Additionally, note that I'm on Fedora where you start with a vanilla GNOME that doesn't come with default extensions like a dock etc. (unlike Ubuntu, I think).

tuxor1337 avatar Aug 24 '22 20:08 tuxor1337

Here's what I have:

Part of Manjaro's Defaults... I'll disable each extra until It works I guess...

EDIT: disabled all but hidetopbar and still did not work

sdwolfz avatar Aug 25 '22 07:08 sdwolfz

Dash to dock recently updated, I tested out this extension to see and it seems to work perfectly now.

AAcatLeader avatar Aug 29 '22 21:08 AAcatLeader

never mind, stopped working as before

AAcatLeader avatar Aug 30 '22 20:08 AAcatLeader

I can confirm this behavior on a brand new install of Fedora 36 (GNOME 42.4 Wayland, Firefox 104.0.1) with no other extensions if it helps @tuxor1337 --- installing Dash to Dock makes the problem worse (and breaks Dash to Dock as well), but even without it the problem still occurs.

moldimolt avatar Sep 10 '22 13:09 moldimolt

It hapens using wps text editor ou firefox maximized, wiht other app goes well

bruncarv1 avatar Sep 14 '22 16:09 bruncarv1

https://github.com/flameshot-org/flameshot/issues/2590#issuecomment-1177189932 It also solves this issue.

Nugine avatar Oct 06 '22 10:10 Nugine

Interesting, so It's a Wayland issue, makes sense since I use Wayland.

@tuxor1337 are you on Xorg? and can you debug this on Wayland?

Side note: I don't know how to debug this myself, any hints?

sdwolfz avatar Oct 06 '22 11:10 sdwolfz

@sdwolfz As mentioned above, I'm on Wayland and can't reproduce this.

tuxor1337 avatar Oct 06 '22 16:10 tuxor1337

Yes, for me switching wayland to xorg solves the problem! But I think it shoud be fixed, wont you all agree? tks

bruncarv1 avatar Oct 06 '22 18:10 bruncarv1

I tried debugging this with some extra debug statements, see here: https://gitlab.com/sdwolfz/hidetopbar/-/compare/master...flickering-fix

The only difference I see in the arguments to "_handleMenus" is an extra...

              {
                "id": 39,
                "name": "notify::sensitive",
                "disconnected": false
              },
              {
                "id": 40,
                "name": "notify::sensitive",
                "disconnected": false
              }

...in the 0 > statusArea > appMenu > menu > _windowSection > _signalConnections section for when it's working properly (that part is missing when using firefox fullscreen, but present when using gnome terminal fullscreen for example).

Here are the full log files:

log-broken.log log-working.log

That's as much as I'm able to investigate right now.

sdwolfz avatar Oct 08 '22 10:10 sdwolfz

Interesting, so It's a Wayland issue, makes sense since I use Wayland.

@tuxor1337 are you on Xorg? and can you debug this on Wayland?

Side note: I don't know how to debug this myself, any hints?

I've experienced this issue only with Wayland. Xorg all works fine

diogodomanski avatar Oct 16 '22 14:10 diogodomanski

@tuxor1337 you can't reproduce this with Firefox on Ubuntu because over there, the Firefox package is installed via Snap. Similarly I can't reproduce this with the Snap package on Manjaro Wayland.

But if you would install Firefox from a native package instead you would get the same behavior.

Here is an explanation of the behaviour:

  • You start up Firefox, then maximize it, top bar hides
  • You scroll to the top, the top bar animation plays drawing on top of Firefox
  • The animation ends, Firefox draws itself on top of the top bar, so it's now invisible, but the top bar elements are still logically above the browser window.
  • Move the mouse inside the top bar, it becomes visible again while the motion persists.
  • Stop moving the mouse, Firefox again draws itself on top of the top bar.
  • Move the mouse outside the top bar, it becomes visible again, and while the animation lasts it's drawn on top.
  • Finally the top bar is hidden for real.

What I believe happens, is that there is something like a z-index issue for the two. Both Firefox and the top bar are at the same level and whichever one of them happens to draw itself on top first wins, that's why you get the start/end animations and visibility while moving the mouse.

sdwolfz avatar Oct 21 '22 17:10 sdwolfz

@sdwolfz Thanks for your attempt of an explanation! As mentioned above, I'm on Fedora with Wayland and can't reproduce this. snap is not installed on this machine.

tuxor1337 avatar Oct 21 '22 18:10 tuxor1337

OK, my quest continues

sdwolfz avatar Oct 21 '22 18:10 sdwolfz

With the changes I made in https://github.com/tuxor1337/hidetopbar/pull/390 I've debugged this further:

notworks.txt works.txt

As you can see in the logs there, when it works well, with gnome terminal fullscreen, the logs always start with:

PanelVisibilityManager show(mouse-enter)

But when firefox fullscreen is in play, it starts with:

Intellihide _checkOverlapSignal function(): name = "notify::focus-app" | args = [{},{}]

sdwolfz avatar Oct 21 '22 21:10 sdwolfz

Yeah this is happening with other apps to on my laptop. The app Obsidian MD also has this issue. It's only happening in wayland and it also effects dash to dock extension which experiences the same issue when Hide Top Bar is enabled.

Wemmy0 avatar Oct 23 '22 22:10 Wemmy0

Hey, here is a video that I recorded showing the issue. Might help. I'm on fedora 37 beta but it still occurs in F36. Also, for some reason it doesn't show in any screen recording software so I used my phone. https://github.com/yo-ranzz/Hide-top-bar-issue/blob/main/README.md

yo-ranzz avatar Oct 30 '22 19:10 yo-ranzz