mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-14 08:21:27 -04:00
wayland: don't adjust size when CSDs are positioned inside main surface
This commit is contained in:
parent
90efe6ec02
commit
020ce60778
1 changed files with 5 additions and 0 deletions
|
|
@ -531,9 +531,14 @@ xdg_toplevel_configure(void *data, struct xdg_toplevel *xdg_toplevel,
|
||||||
* sub-surfaces. Thus, since our resize code assumes the size
|
* sub-surfaces. Thus, since our resize code assumes the size
|
||||||
* to resize to is the main window only, adjust the size here,
|
* to resize to is the main window only, adjust the size here,
|
||||||
* to account for the CSDs.
|
* to account for the CSDs.
|
||||||
|
*
|
||||||
|
* Of course this does *not* apply when we position the CSDs
|
||||||
|
* *inside* the main surface.
|
||||||
*/
|
*/
|
||||||
|
#if FOOT_CSD_OUTSIDE
|
||||||
width -= 2 * csd_border_size * win->term->scale;
|
width -= 2 * csd_border_size * win->term->scale;
|
||||||
height -= (2 * csd_border_size + csd_title_size) * win->term->scale;
|
height -= (2 * csd_border_size + csd_title_size) * win->term->scale;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
win->configure.is_activated = is_activated;
|
win->configure.is_activated = is_activated;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue