mirror of
https://git.outfoxxed.me/quickshell/quickshell.git
synced 2025-11-04 19:04:56 +11:00
17 lines
514 B
C++
17 lines
514 B
C++
#include "util.hpp"
|
|
|
|
#include <private/qwaylandwindow_p.h>
|
|
#include <qpa/qwindowsysteminterface.h>
|
|
|
|
namespace qs::wayland::util {
|
|
|
|
void scheduleCommit(QtWaylandClient::QWaylandWindow* window) {
|
|
// This seems to be one of the less offensive ways to force Qt to send a wl_surface.commit on its own terms.
|
|
// Ideally we would trigger the commit more directly.
|
|
QWindowSystemInterface::handleExposeEvent(
|
|
window->window(),
|
|
QRect(QPoint(), window->geometry().size())
|
|
);
|
|
}
|
|
|
|
} // namespace qs::wayland::util
|