wayland/toplevel: add close() request

Closes #37
This commit is contained in:
outfoxxed 2025-05-13 18:47:06 -07:00
parent e0cff677a5
commit 4ae0eae3da
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E
2 changed files with 5 additions and 0 deletions

View file

@ -32,6 +32,7 @@ void Toplevel::onClosed() {
}
void Toplevel::activate() { this->handle->activate(); }
void Toplevel::close() { this->handle->close(); }
QString Toplevel::appId() const { return this->handle->appId(); }
QString Toplevel::title() const { return this->handle->title(); }

View file

@ -56,6 +56,10 @@ public:
/// The request may be ignored by the compositor.
Q_INVOKABLE void activate();
/// Request that this toplevel is closed.
/// The request may be ignored by the compositor or the application.
Q_INVOKABLE void close();
/// Request that this toplevel is fullscreened on a specific screen.
/// The request may be ignored by the compositor.
Q_INVOKABLE void fullscreenOn(QuickshellScreenInfo* screen);