forked from quickshell/quickshell
core/window: move input mask handling + commit scheduling to polish
This commit is contained in:
parent
d6b58521e9
commit
6464ead0f1
7 changed files with 76 additions and 32 deletions
|
@ -1,17 +1,9 @@
|
|||
#include "util.hpp"
|
||||
|
||||
#include <private/qwaylandwindow_p.h>
|
||||
#include <qpa/qwindowsysteminterface.h>
|
||||
#include "../window/proxywindow.hpp"
|
||||
|
||||
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())
|
||||
);
|
||||
}
|
||||
void scheduleCommit(ProxyWindowBase* window) { window->schedulePolish(); }
|
||||
|
||||
} // namespace qs::wayland::util
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue