mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-04-18 16:40:43 +02:00
xwayland/present: use async option for tearing hint
This commit is contained in:
parent
9c35efe978
commit
0076a508e4
1 changed files with 2 additions and 1 deletions
|
|
@ -934,7 +934,8 @@ xwl_present_flip(present_vblank_ptr vblank, RegionPtr damage)
|
|||
|
||||
if (xwl_window->tearing_control) {
|
||||
uint32_t hint;
|
||||
if (event->options & PresentOptionAsyncMayTear)
|
||||
/* Follow asynchronous Present requests for tearing hinting. */
|
||||
if (event->options & (PresentOptionAsync | PresentOptionAsyncMayTear))
|
||||
hint = WP_TEARING_CONTROL_V1_PRESENTATION_HINT_ASYNC;
|
||||
else
|
||||
hint = WP_TEARING_CONTROL_V1_PRESENTATION_HINT_VSYNC;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue