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

Dock remains invisible if launched before any other application #37

Open
lilacpixel opened this issue May 17, 2023 · 3 comments
Open

Dock remains invisible if launched before any other application #37

lilacpixel opened this issue May 17, 2023 · 3 comments

Comments

@lilacpixel
Copy link

Describe the bug
When nwg-dock is launched from the sway configuration file and no other applications are open, the dock remains invisible, even after one or more applications are launched. Removing the existing dock instance with pkill and reloading the sway config will cause the dock to appear as normal.

Additionally, if nwg-dock is launched in the sway configuration file with -x, the dock remains invisible but takes up a very large portion of the screen (much larger than the actual dock size).

To Reproduce
Steps to reproduce the behavior:

  1. Add nwg-dock launch command to sway configuration file (i.e. exec_always nwg_dock).
  2. Log out and log back in.
  3. Launch any application that draws a window.

Expected behavior
The launched application should appear in the dock.

Screenshots

20230516_23h48m03s_grim-fs8

Desktop:

  • Fedora Linux 38
  • go 1.20.3
  • gtk-layer-shell 0.8.1-1

Sorry to be back so soon! This one is very easy to work around with pkill -f nwg-dock && nwg-dock -r -x, so please don't feel any sense of urgency ☺️ Thanks so much!

@nwg-piotr
Copy link
Owner

nwg-piotr commented May 17, 2023

Could you show me the command you start the dock with in the sway config file? Also: which dock version do you use?

@lilacpixel
Copy link
Author

The launch command I typically use is exec_always nwg-dock -mb 6 -r -x -nows. Removing -x will make the huge gap at the bottom of the screen disappear (so it looks like the dock isn't running at all), but the behavior is the same in that the dock never appears after an application is launched. It looks like -nows is the culprit here—removing that flag will render the dock visible even when no applications with a window are running, so it appears correctly from the start, takes up the appropriate amount of space, and updates when an application is added or removed.

This is using the latest release, 0.3.4.

@nwg-piotr
Copy link
Owner

nwg-piotr commented May 17, 2023

I have no idea what to say. It works as expected on my side. BTW: turning exclusive zone on (-x) only makes sense if you use the dock in the Ubuntu-like way, e.g. like this:

image

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

2 participants