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 22bec4f..b9a1e12 100644
--- a/src/libwindowmanager.cpp
+++ b/src/libwindowmanager.cpp
@@ -943,7 +943,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