hyprland/surface: add hyprland surface opacity support

This commit is contained in:
outfoxxed 2025-01-01 15:28:09 -08:00
parent 08836ca1f3
commit 3a40174ed6
Signed by untrusted user: outfoxxed
GPG key ID: 4C88A185FB89301E
14 changed files with 476 additions and 2 deletions

17
src/wayland/util.cpp Normal file
View 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