unite-shell icon indicating copy to clipboard operation
unite-shell copied to clipboard

Constant complaints about negative sizes

Open scarlion1 opened this issue 11 months ago • 3 comments

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 avatar Jan 15 '25 09:01 scarlion1

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.

jonian avatar Jan 16 '25 23:01 jonian

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 avatar Jan 19 '25 00:01 scarlion1

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?

scarlion1 avatar Feb 03 '25 21:02 scarlion1