forked from quickshell/quickshell
hyprland/surface: add hyprland surface opacity support
This commit is contained in:
parent
08836ca1f3
commit
3a40174ed6
14 changed files with 476 additions and 2 deletions
17
src/wayland/util.cpp
Normal file
17
src/wayland/util.cpp
Normal file
|
@ -0,0 +1,17 @@
|
|||
#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
|
Loading…
Add table
Add a link
Reference in a new issue