hardpixel / unite-shell

Unite is an extension that makes GNOME Shell look like Ubuntu Unity Shell.
GNU General Public License v3.0
903 stars 61 forks source link

Window title bar not showing in secondary screen. #357

Open paulo-roger opened 7 months ago

paulo-roger commented 7 months ago

Describe the bug Window title bar not showing in secondary screen.

When a window is maximized in the secondary screen it auto-hides the title bar, even though the toggle Restrict functionalities to the primary screen is activated.

setting

To Reproduce Steps to reproduce the behavior:

  1. Move window to secondary monitor
  2. Maximize window

Expected behavior Title bar should not be hidden when the window is in the secondary screen, only in the primary.

Screenshots If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

Logs

-- Boot 297d71ef118c4ddab41ac85e4f58783d --
nov 29 12:24:23 lenovo-v14 gnome-shell[1146]: Extension unite@hardpixel.eu already installed in /usr/share/gnome-shell/extensions/unite@hardpixel.eu. /usr/share/gnome-shell/extensions/unite@hardpixel.eu will not be loaded

The complete log is here: https://bin.disroot.org/?70cb74f2f3c60597#8i1nF8VtPzuQhNectpQ7Y3Ete7ruV4Een2u1xEhDh2qx

Additional context Instalation method: yay -S gnome-shell-extension-unite

paulo-roger commented 7 months ago

Maybe it is related, but window titles are not hiding when tiling the windows.

paulo-roger commented 7 months ago

Removed the extension and reinstalled it, still the same problem persist.

paulo-roger commented 6 months ago

@jonian sorry to tag you directly. I really love this extension.

Would you have some hint for my case? I know some little javascript I could try something, I just don't know how to setup the environment to work with gnome extensions.

I really appreciate any input from you. Thank you.

jonian commented 6 months ago

Hi @paulo-roger, apologies for the late response, you can tag me any time your want, no problem. About the issues you are having:

When a window is maximized in the secondary screen it auto-hides the title bar, even though the toggle Restrict functionalities to the primary screen is activated.

This setting has some issues with client side decorated (CSD) windows. The extension uses CSS to hide the headerbars/titlebars and there is no way to know, in which screen the window is. If you are on wayland this issue happens with more GTK apps than on xorg because on xorg apps that don't have headerbars use server side decorations.

Maybe it is related, but window titles are not hiding when tiling the windows.

This is an issue that appeared on gnome 44 and can't be fixed by the extension. There is a workaround for this but it is not reliable and results in gnome-shell crashing. I have reported the issue on gnome tracker here.

paulo-roger commented 6 months ago

Hi @paulo-roger, apologies for the late response, you can tag me any time your want, no problem.

@jonian, Thank you so much. You are very kind.

This setting has some issues with client side decorated (CSD) windows. The extension uses CSS to hide the headerbars/titlebars and there is no way to know, in which screen the window is. If you are on wayland this issue happens with more GTK apps than on xorg because on xorg apps that don't have headerbars use server side decorations.

I use X11, so it is odd for this issue to happen? Maybe another extension might be conflicting? I will disable all and leave only Unite and then report back.

Maybe it is related, but window titles are not hiding when tiling the windows.

This is an issue that appeared on gnome 44 and can't be fixed by the extension. There is a workaround for this but it is not reliable and results in gnome-shell crashing. I have reported the issue on gnome tracker here.

I see. Thanks for letting me know!