aboutsummaryrefslogtreecommitdiff
path: root/quirks.c (follow)
Commit message (Collapse)AuthorAgeLines
* wayland: refactor: wrap wl_surface pointers in a wayl_surface structDaniel Eklöf2023-06-29-1/+1
| | | | | | | | | And add a viewport object to accompany the surface (to be used when scaling the surface). Also rename the wl_surf_subsurf struct to wayl_sub_surface, and add a wayl_surface object to it, rather than a plain wl_surface pointer (to also get the viewport pointer).
* quirks: sway does not damage surface beneath sub-surface, when unmappedDaniel Eklöf2023-05-12-0/+25
| | | | | | | | | | | | | | | | | | | | | 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
* wayland: apply CSD/SSD changes in the surface configure eventDaniel Eklöf2021-06-23-2/+2
| | | | | | | | | | | | | | | | | | The configure event asks the client to change its decoration mode. The configured state should not be applied immediately. Clients must send an ack_configure in response to this event. See xdg_surface.configure and xdg_surface.ack_configure for details. In particular, ”the configured state should *not* be applied immediately”. Instead, treat CSD/SSD changes like all other window dimension related changes: store the to-be mode in win->configure, and apply it in the surface configure event. This fixes an issue where foot incorrectly resized the window when the server switched between CSD/SSD at run-time.
* quirk: remove plasma/kwin quirkDaniel Eklöf2021-05-12-23/+0
| | | | | | Older version of Plasma/KWin had an issue where buffer damage recorded before the buffer was attached were ignored. This appears to have been fixed now.
* csd: use wayl_win_subsurface_new/destroy()Daniel Eklöf2021-02-17-2/+2
|
* util.h: new header file defining commonly used macrosDaniel Eklöf2020-05-01-2/+1
|
* quirks: add KDE quirk: surface must be damaged *after* being attachedDaniel Eklöf2020-03-24-13/+24
| | | | | | KDE resets all surface damage when a buffer is attached. Add a quirk that adds a full-buffer damage to the surface. This quirk is intended to be called after attaching a buffer to a surface.
* quirks: weston_csd_{on,off}: don't do anything in fullscreen modeDaniel Eklöf2020-03-12-0/+4
|
* quirks: add shortcut for flipping all CSD surfaces sync/desync stateDaniel Eklöf2020-03-03-0/+22
|
* quirks: log when applying weston sub-surface desync quirkDaniel Eklöf2020-03-02-0/+6
|
* search: enable/disable weston sub-surface desync quirk when rendering search boxDaniel Eklöf2020-03-01-4/+18
|
* render: search: mark visible portion of sub-surface opaqueDaniel Eklöf2020-03-01-0/+35