aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-02-26 12:02:15 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-02-26 12:02:15 +0000
commit020ce607788523a5bc251076e0a7502b42d02240 (patch)
tree9252b1737b87a9edb2b7ab208673d30714ae16dd
parentrender: don't center grid on surface (diff)
wayland: don't adjust size when CSDs are positioned inside main surface
-rw-r--r--wayland.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/wayland.c b/wayland.c
index acd97ef7..f8244d53 100644
--- a/wayland.c
+++ b/wayland.c
@@ -531,9 +531,14 @@ xdg_toplevel_configure(void *data, struct xdg_toplevel *xdg_toplevel,
* sub-surfaces. Thus, since our resize code assumes the size
* to resize to is the main window only, adjust the size here,
* 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;
height -= (2 * csd_border_size + csd_title_size) * win->term->scale;
+#endif
}
win->configure.is_activated = is_activated;