mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
When unmapping a sub-surface, Sway <= 1.8 does not damage the surface beneath the sub-surface. https://github.com/swaywm/sway/issues/6960 The workaround is to manually damage the main surface. Previously, this was done when exiting scrollback search, and after the ‘flash’ OSC. But other sub-surfaces, that may also be unmapped, did not. This patch adds a quirk handler that does this, and calls it when: * Exiting scrollback search * Ending the ‘flash’ OSC * Exiting unicode input mode * Clearing URL labels * Removing the scrollback position indicator Closes #1335
25 lines
849 B
C
25 lines
849 B
C
#pragma once
|
|
|
|
#include <wayland-client.h>
|
|
|
|
#include "terminal.h"
|
|
|
|
/*
|
|
* On weston (8.0), synchronized subsurfaces aren't updated correctly.
|
|
|
|
* They appear to render once, but after that, updates are
|
|
* sporadic. Sometimes they update, most of the time they don't.
|
|
*
|
|
* Adding explicit parent surface commits right after the subsurface
|
|
* commit doesn't help (and would be useless anyway, since it would
|
|
* defeat the purpose of having the subsurface synchronized in the
|
|
* first place).
|
|
*/
|
|
void quirk_weston_subsurface_desync_on(struct wl_subsurface *sub);
|
|
void quirk_weston_subsurface_desync_off(struct wl_subsurface *sub);
|
|
|
|
/* Shortcuts to call desync_{on,off} on all CSD subsurfaces */
|
|
void quirk_weston_csd_on(struct terminal *term);
|
|
void quirk_weston_csd_off(struct terminal *term);
|
|
|
|
void quirk_sway_subsurface_unmap(struct terminal *term);
|