You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

32 lines
1.0 KiB

  1. #pragma once
  2. #include <wayland-client.h>
  3. #include "terminal.h"
  4. /*
  5. * On weston (8.0), synchronized subsurfaces aren't updated correctly.
  6. * They appear to render once, but after that, updates are
  7. * sporadic. Sometimes they update, most of the time they don't.
  8. *
  9. * Adding explicit parent surface commits right after the subsurface
  10. * commit doesn't help (and would be useless anyway, since it would
  11. * defeat the purpose of having the subsurface synchronized in the
  12. * first place).
  13. */
  14. void quirk_weston_subsurface_desync_on(struct wl_subsurface *sub);
  15. void quirk_weston_subsurface_desync_off(struct wl_subsurface *sub);
  16. /* Shortcuts to call desync_{on,off} on all CSD subsurfaces */
  17. void quirk_weston_csd_on(struct terminal *term);
  18. void quirk_weston_csd_off(struct terminal *term);
  19. /*
  20. * KDE discards all previous damage when a buffer is attached to a
  21. * surface. Thus, if you have recorded damage before you call
  22. * wl_surface_attach(), call this function to record a full buffer
  23. * damage.
  24. */
  25. void quirk_kde_damage_before_attach(struct wl_surface *surface);