Commit graph

6 commits

Author SHA1 Message Date
En-En
0337421299 fix(decor): unwrap if max width fits 0 chars
The `title_pixmap` function assumed if `title` was not empty, the returned
`glyphs` from `layout_title_glyphs` would also not be empty.
`layout_title_glyphs`, however, could break before a single insertion if
`max_width` was too small. Emacs, when using `emacsclient
--create-frame`, could call `title_pixmap` with a `max_width` of 1,
causing a panic. Closes #311.
2025-12-15 23:12:03 -05:00
Shawn Wallace
5d23452874 server/decoration: don't desync decoration subsurface
I can't remember why I did this, but removing this doesn't seem to cause any
issues while also fixing #268.
2025-11-27 23:33:35 -05:00
Shawn Wallace
83e4aab4d5 server: adjust minimum and maximum window sizes to account for decorations
Fixes #271
2025-11-27 11:14:37 -05:00
Shawn Wallace
f379ff5722 server: redraw decorations on window reconfigure
Fixes #270
2025-11-21 00:55:21 -05:00
Shawn Wallace
3cd3edffe1 server/decoration: remove decorations when fullscreen 2025-11-06 23:01:40 -05:00
Shawn Wallace
b39388d91a Add client side decorations to toplevels
These simple decorations will be rendered only when the host compositor doesn't
support server side decorations and the X11 window does not render its own
decorations.

Closes #31
2025-11-06 22:32:10 -05:00