diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-05-12 18:08:56 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-05-12 18:08:56 +0000 |
| commit | 9b5330bf29890b5dbc8b90070c0aa1192c2e1564 (patch) | |
| tree | 3d2f456de1398ef6da4159924169875591e637f0 /quirks.c | |
| parent | Merge branch 'double-buffering' (diff) | |
| parent | quirk: remove plasma/kwin quirk (diff) | |
Merge branch 'remove-plasma-quirk'
Diffstat (limited to 'quirks.c')
| -rw-r--r-- | quirks.c | 23 |
1 files changed, 0 insertions, 23 deletions
@@ -66,26 +66,3 @@ quirk_weston_csd_off(struct terminal *term) for (int i = 0; i < ALEN(term->window->csd.surface); i++) quirk_weston_subsurface_desync_off(term->window->csd.surface[i].sub); } - -void -quirk_kde_damage_before_attach(struct wl_surface *surface) -{ - static bool is_kde = false; - static bool initialized = false; - - if (!initialized) { - initialized = true; - - const char *cur_desktop = getenv("XDG_CURRENT_DESKTOP"); - if (cur_desktop != NULL) - is_kde = strcasestr(cur_desktop, "kde") != NULL; - - if (is_kde) - LOG_WARN("applying wl_surface_damage_buffer() workaround for KDE"); - } - - if (!is_kde) - return; - - wl_surface_damage_buffer(surface, 0, 0, INT32_MAX, INT32_MAX); -} |
