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

Constant complaints about negative sizes #389

Open
scarlion1 opened this issue Jan 15, 2025 · 3 comments
Open

Constant complaints about negative sizes #389

scarlion1 opened this issue Jan 15, 2025 · 3 comments

Comments

@scarlion1
Copy link

Describe the bug
When Unite is hiding the titlebars, journal is flooded with messages like the following from every app:

gnome-calculato[1209362]: GtkWindowControls 0x56351ed07b50 (windowcontrols) reported min width -92, but sizes must be >= 0

mutter-x11-fram[1206284]: GtkHeaderBar 0x560535d07300 (headerbar) reported min height -163, but sizes must be >= 0
mutter-x11-fram[1206284]: MetaFrameHeader 0x5605357d3750 (widget) reported min height -200, but sizes must be >= 0
mutter-x11-fram[1206284]: MetaFrameHeader 0x5605357d3750 reported baselines of minimum -178 and natural -178, but sizes of minimum 0 and natural 0. Baselines must be inside the widget size.
mutter-x11-fram[1206284]: GtkHeaderBar 0x560535d07300 (headerbar) reported min height -163, but sizes must be >= 0
mutter-x11-fram[1206284]: MetaFrameHeader 0x5605357d3750 (widget) reported min height -200, but sizes must be >= 0
mutter-x11-fram[1206284]: MetaFrameHeader 0x5605357d3750 reported baselines of minimum -178 and natural -178, but sizes of minimum 0 and natural 0. Baselines must be inside the widget size.
mutter-x11-fram[1206284]: GtkWindowControls 0x560535d42710 (windowcontrols) reported min width -104, but sizes must be >= 0

To Reproduce

  1. always hide titlebars?
  2. launch an app
  3. See error

Environment (please complete the following information):

  • OS: Debian 13
  • GNOME Shell version 47.2
  • Unite version 80

Logs
None

@scarlion1 scarlion1 added the bug label Jan 15, 2025
@jonian
Copy link
Member

jonian commented Jan 16, 2025

Hey @scarlion1, thanks for the report. The extension uses negative margin (css) to hide titlebars in CSD apps. Unfortunately there is no other way to achieve this. Leaving the issue open in case someone has a better solution that will not trigger the warnings.

@scarlion1
Copy link
Author

Yeah I tried a number of alternate ideas too even with ChatGPT. It had some creative ideas like offsetting the negative margin with positive padding, and a slew of different selectors.  Nothing worked though in the end lol.  I guess it needs to happen at the server level, so in mutter somewhere?

In the mean time I guess I'll just redirect the mutter-x11-fram messages to another journal or something.

@scarlion1
Copy link
Author

What about when an app has a full-screen mode?  The titlebar goes away.  Isn't there a way to tap into that functionality but without maximizing the window?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants