aboutsummaryrefslogtreecommitdiff
path: root/wayland.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-07-14 06:35:47 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-07-14 06:35:47 +0000
commitfa75e1646a3cbd1568f50b9a552d8d2d2814f659 (patch)
tree62def00b813eb3196e91e642126acd8dd99b37b7 /wayland.c
parentrender: keep lock while pushing dirty rows to worker queue (diff)
parentchangelog: mention fix for 'too many wl_surface_damage_buffer()' calls (diff)
Merge branch 'merge-wl-surface-damage'
Closes #35
Diffstat (limited to 'wayland.c')
-rw-r--r--wayland.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/wayland.c b/wayland.c
index 1320fc3a..40f4d3e8 100644
--- a/wayland.c
+++ b/wayland.c
@@ -546,7 +546,11 @@ xdg_surface_configure(void *data, struct xdg_surface *xdg_surface,
win->is_fullscreen = win->configure.is_fullscreen;
xdg_surface_ack_configure(xdg_surface, serial);
- bool resized = render_resize_force(term, win->configure.width, win->configure.height);
+
+ /* TODO: check with GNOME and tiling - presumably that didn't work
+ * unless we presented a *new* buffer, hence we used to do a force
+ * resize here */
+ bool resized = render_resize(term, win->configure.width, win->configure.height);
if (win->configure.is_activated)
term_visual_focus_in(term);
@@ -556,7 +560,7 @@ xdg_surface_configure(void *data, struct xdg_surface *xdg_surface,
/* TODO: remove - shouldn't be necessary with render_resize_force() */
if (!resized) {
/*
- * If we didn't resize, we won't be commit a new surface
+ * If we didn't resize, we won't be committing a new surface
* anytime soon. Some compositors require a commit in
* combination with an ack - make them happy.
*/