File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
src/wayland/toplevel_management Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ void Toplevel::onClosed() {
3232}
3333
3434void Toplevel::activate () { this ->handle ->activate (); }
35+ void Toplevel::close () { this ->handle ->close (); }
3536
3637QString Toplevel::appId () const { return this ->handle ->appId (); }
3738QString Toplevel::title () const { return this ->handle ->title (); }
Original file line number Diff line number Diff line change @@ -56,6 +56,10 @@ class Toplevel: public QObject {
5656 // / The request may be ignored by the compositor.
5757 Q_INVOKABLE void activate ();
5858
59+ // / Request that this toplevel is closed.
60+ // / The request may be ignored by the compositor or the application.
61+ Q_INVOKABLE void close ();
62+
5963 // / Request that this toplevel is fullscreened on a specific screen.
6064 // / The request may be ignored by the compositor.
6165 Q_INVOKABLE void fullscreenOn (QuickshellScreenInfo* screen);
You can’t perform that action at this time.
0 commit comments