-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
core/window: move input mask handling + commit scheduling to polish
- Loading branch information
Showing
7 changed files
with
76 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
#pragma once | ||
|
||
#include <private/qwaylandwindow_p.h> | ||
#include "../window/proxywindow.hpp" | ||
|
||
namespace qs::wayland::util { | ||
|
||
void scheduleCommit(QtWaylandClient::QWaylandWindow* window); | ||
void scheduleCommit(ProxyWindowBase* window); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters