mirror of
https://github.com/hyprwm/aquamarine.git
synced 2024-12-22 10:29:48 +01:00
drm: request page flip events after commit (#60)
Apparently fixes stuff.
This commit is contained in:
parent
1c3256287c
commit
41d842669b
1 changed files with 1 additions and 3 deletions
|
@ -1470,10 +1470,8 @@ bool Aquamarine::CDRMOutput::commitState(bool onlyTest) {
|
||||||
|
|
||||||
if (STATE.enabled && (COMMITTED & COutputState::eOutputStateProperties::AQ_OUTPUT_STATE_BUFFER))
|
if (STATE.enabled && (COMMITTED & COutputState::eOutputStateProperties::AQ_OUTPUT_STATE_BUFFER))
|
||||||
flags |= DRM_MODE_PAGE_FLIP_EVENT;
|
flags |= DRM_MODE_PAGE_FLIP_EVENT;
|
||||||
if (STATE.presentationMode == AQ_OUTPUT_PRESENTATION_IMMEDIATE && (COMMITTED & COutputState::eOutputStateProperties::AQ_OUTPUT_STATE_BUFFER)) {
|
if (STATE.presentationMode == AQ_OUTPUT_PRESENTATION_IMMEDIATE && (COMMITTED & COutputState::eOutputStateProperties::AQ_OUTPUT_STATE_BUFFER))
|
||||||
flags |= DRM_MODE_PAGE_FLIP_ASYNC;
|
flags |= DRM_MODE_PAGE_FLIP_ASYNC;
|
||||||
flags &= ~DRM_MODE_PAGE_FLIP_EVENT; // Do not request an event for immediate page flips, as it makes no sense.
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// we can't go further without a blit
|
// we can't go further without a blit
|
||||||
|
|
Loading…
Reference in a new issue