summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/libwindowmanager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libwindowmanager.cpp b/src/libwindowmanager.cpp
index 515fea1..a306faf 100644
--- a/src/libwindowmanager.cpp
+++ b/src/libwindowmanager.cpp
@@ -952,7 +952,7 @@ int LibWindowmanager::deactivateWindow(json_object *object) {
int LibWindowmanager::deactivateWindow(const char* role) {
json_object* object = json_object_new_object();
json_object_object_add(object, kKeyDrawingName, json_object_new_string(role));
- return this->d->deactivateWindow(nullptr);
+ return this->d->deactivateWindow(object);
}
// This API is deprecated, please use new API