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

No mod_dock minimum height #206

Closed
raboof opened this issue Oct 7, 2019 · 5 comments · Fixed by #208
Closed

No mod_dock minimum height #206

raboof opened this issue Oct 7, 2019 · 5 comments · Fixed by #208

Comments

@raboof
Copy link
Owner

raboof commented Oct 7, 2019

We're enabling mod_dock by default for Notion 4.

By default, mod_dock takes up space even when there is nothing inside it. It would be nice if we could avoid that.

@wilhelmy
Copy link
Collaborator

wilhelmy commented Oct 7, 2019

Does it though? I thought that was a configuration mistake on my part?

@knixeur
Copy link
Collaborator

knixeur commented Oct 7, 2019

iirc it does when there was something temporarily on it. I'm using polybar right now, and if I kill it dock still takes the space used for it.

Edit:

https://github.com/raboof/notion/blob/master/mod_dock/dock.c#L782

When you kill something, n_dockapps is now 0 and defaults to tile_size. I guess if n_dockapps is 0, width and height should be 0?

Edit2:
https://github.com/raboof/notion/blob/master/mod_dock/dock.c#L340
dock_get_tile_size sets it by default to dock_param_tile_width which in
https://github.com/raboof/notion/blob/master/mod_dock/dock.c#L292
sets it to 64

@raboof
Copy link
Owner Author

raboof commented Oct 7, 2019

Does it though? I thought that was a configuration mistake on my part?

Actually you're mentioning exactly this issue in that thread, #149 (comment) ;)

@raboof
Copy link
Owner Author

raboof commented Oct 7, 2019

(the defaults put it at the bottom-left rather than the top-left, which is a bit less bad, but still :) )

@raboof
Copy link
Owner Author

raboof commented Oct 9, 2019

https://github.com/raboof/notion/blob/master/mod_dock/dock.c#L782
When you kill something, n_dockapps is now 0 and defaults to tile_size. I guess if n_dockapps is 0, width and height should be 0?

Makes sense to me, though it seems this was intentionally changed in 6098344 it doesn't clarify why ;)

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

Successfully merging a pull request may close this issue.

3 participants