[wayland] Drop workaround on Qt window expose event
No longer needed with our own QPA plugin.
This commit is contained in:
parent
9afbecf4a6
commit
f034537ad7
2 changed files with 0 additions and 15 deletions
|
@ -228,19 +228,6 @@ void ApplicationWayland::createX11Connection()
|
|||
setX11RootWindow(defaultScreen()->root);
|
||||
}
|
||||
|
||||
bool ApplicationWayland::notify(QObject *o, QEvent *e)
|
||||
{
|
||||
if (QWindow *w = qobject_cast< QWindow* >(o)) {
|
||||
if (e->type() == QEvent::Expose) {
|
||||
// ensure all Wayland events both on client and server side are dispatched
|
||||
// otherwise it is possible that Qt starts rendering and blocks the main gui thread
|
||||
// as it waits for the callback of the last frame
|
||||
waylandServer()->dispatch();
|
||||
}
|
||||
}
|
||||
return Application::notify(o, e);
|
||||
}
|
||||
|
||||
void ApplicationWayland::startXwaylandServer()
|
||||
{
|
||||
int pipeFds[2];
|
||||
|
|
|
@ -48,8 +48,6 @@ public:
|
|||
m_environment = environment;
|
||||
}
|
||||
|
||||
bool notify(QObject *o, QEvent *e) override;
|
||||
|
||||
QProcessEnvironment processStartupEnvironment() const override {
|
||||
return m_environment;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue