summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libkms++/atomicreq.cpp7
-rw-r--r--libkms++/atomicreq.h1
2 files changed, 8 insertions, 0 deletions
diff --git a/libkms++/atomicreq.cpp b/libkms++/atomicreq.cpp
index a11d382..f2aa322 100644
--- a/libkms++/atomicreq.cpp
+++ b/libkms++/atomicreq.cpp
@@ -76,4 +76,11 @@ int AtomicReq::commit(void* data)
return drmModeAtomicCommit(m_card.fd(), m_req, flags, data);
}
+
+int AtomicReq::commit_sync()
+{
+ uint32_t flags = 0;
+
+ return drmModeAtomicCommit(m_card.fd(), m_req, flags, 0);
+}
}
diff --git a/libkms++/atomicreq.h b/libkms++/atomicreq.h
index 94b506d..54740c2 100644
--- a/libkms++/atomicreq.h
+++ b/libkms++/atomicreq.h
@@ -26,6 +26,7 @@ public:
int commit();
int commit(void* data);
int commit(PageFlipHandlerBase* data) { return commit((void*)data); }
+ int commit_sync();
private:
Card& m_card;