diff options
Diffstat (limited to 'sample/template/wmhandler.cpp')
-rw-r--r-- | sample/template/wmhandler.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sample/template/wmhandler.cpp b/sample/template/wmhandler.cpp index 761915f..9972104 100644 --- a/sample/template/wmhandler.cpp +++ b/sample/template/wmhandler.cpp @@ -18,17 +18,20 @@ #include <unistd.h> -void WmHandler::init(LibWindowmanager *p_wm, std::string applabel) +void WmHandler::init(LibWindowmanager *p_wm, std::string applabel) { mp_wm = p_wm; m_applabel = applabel; } void WmHandler::slotActivateSurface() { - mp_wm->activateSurface(m_applabel.c_str()); + json_object *obj = json_object_new_object(); + json_object_object_add(obj, wm->kKeyDrawingName, json_object_new_string(m_applabel.c_str())); + json_object_object_add(obj, wm->kKeyDrawingArea, json_object_new_string("normal.full")); + mp_wm->activateSurface(obj); } -WmHandler::WmHandler(QObject *parent) +WmHandler::WmHandler(QObject *parent) :QObject(parent) { } |