Add themerc option to inset titlebar
Particularly useful for very small window themes (low height+non-full title+right justified). More useful if text can render over the window content without needing to be on the titlebar (see #585), as seen in this example of a mockup with 8px of visible titlebar:
Notes:
-
this would allow windows to snap perfectly with no gaps (assuming also frameless)
-
similarly, this would fix the issue of applications (specifically games) that have a fixed-size with native-sized content (see #562)
-
aside from ultra-small themes, this would still be usable as many applications have lots of empty space in the upper-right when larger or even have icon buttons that are larger than standard menus (also there is the tweak to hide the titlebar when maximized)
-
some of the benefit here is reducing vertical space used (because most desktop displays are widescreen/have more horiztonal area), vertical titlebars on left/right could also work but vertical (English) text would be a bit awkward to read
-
titlebars could be partially offset into their window (for instance maybe the title portion is bigger than the window buttons, such as B6 and Perl, and thus the window buttons might be in the window but not the title), but obviously this provides less of a benefit
-
still mostly useful for non-full right-justified titlebars, but some sort of detection or calculation to prevent overlaps might allow for taller/normal-sized title bars to be viable. I'm not sure if that's actually a likely idea, but I suspect that the standard menu bars at very least might work (especially with freedesktop standards, if you know the number of menus and the number of characters used it could likely be used to calculate a rough size of how wide the window needs to be for offset to avoid the menu items)
Also here's B6 edited a bit for this idea: