exampleCompositor: enable a DSTextInput 22/242022/1
authorjeon <jhyuni.kang@samsung.com>
Fri, 21 Aug 2020 05:13:32 +0000 (14:13 +0900)
committerSung-Jin Park <sj76.park@samsung.com>
Fri, 21 Aug 2020 10:11:30 +0000 (19:11 +0900)
Change-Id: I79bda1490aba4bcfa20dca54ea62fb1b19e41ec0

samples/exampleCompositor.cpp

index a544023..27787f5 100644 (file)
@@ -28,6 +28,7 @@
 #include <DSSeat.h>
 #include <DSPolicyArea.h>
 #include <DSDisplayArea.h>
+#include <DSTextInput.h>
 #include "DSDebugLog.h"
 
 using namespace display_server;
@@ -67,6 +68,8 @@ public:
                __canvas->attachPolicyArea(__policyArea);
                __canvas->attachDisplayArea(__displayArea);
 
+               __textInput = std::make_shared<DSTextInput>();
+
                return __canvas;
        }
 
@@ -99,6 +102,7 @@ private:
        std::shared_ptr<DSSeat> __seat;
        std::shared_ptr<DSPolicyArea> __policyArea;
        std::shared_ptr<DSDisplayArea> __displayArea;
+       std::shared_ptr<DSTextInput> __textInput;
 };
 
 int main() {