wayland/toplevel: add close() request

Closes #37
This commit is contained in:
outfoxxed committed 2025-05-13 18:59:51 -07:00
1 parent e0cff677a5
commit 4ae0eae3da
2 files changed
+5

No files matched your search

+1
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(); }
+4
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);