config/legacy: default to active window for movetoworkspace dispatchers (#14170)

This commit is contained in:
3ventic 2026-04-26 21:13:56 +03:00 committed by GitHub
parent c6847eb357
commit 2652e2aeab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -203,7 +203,7 @@ static SDispatchResult fullscreenstate(const std::string& args) {
}
static SDispatchResult movetoworkspace(const std::string& args) {
PHLWINDOW PWINDOW = nullptr;
PHLWINDOW PWINDOW = Desktop::focusState()->window();
std::string wsArgs = args;
if (args.contains(',')) {
@ -219,7 +219,7 @@ static SDispatchResult movetoworkspace(const std::string& args) {
}
static SDispatchResult movetoworkspacesilent(const std::string& args) {
PHLWINDOW PWINDOW = nullptr;
PHLWINDOW PWINDOW = Desktop::focusState()->window();
std::string wsArgs = args;
if (args.contains(',')) {