2020-03-01 12:54:27 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <wayland-client.h>
|
|
|
|
|
|
2020-03-03 18:19:47 +01:00
|
|
|
#include "terminal.h"
|
|
|
|
|
|
2020-03-24 17:44:17 +01:00
|
|
|
/*
|
|
|
|
|
* 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).
|
|
|
|
|
*/
|
2020-03-01 13:06:00 +01:00
|
|
|
void quirk_weston_subsurface_desync_on(struct wl_subsurface *sub);
|
|
|
|
|
void quirk_weston_subsurface_desync_off(struct wl_subsurface *sub);
|
2020-03-03 18:19:47 +01:00
|
|
|
|
|
|
|
|
/* 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);
|