DSWindow/DSWindowShell: send configure event when DSWindowShell is set to DSWindow 93/242493/1
authorDoyoun Kang <doyoun.kang@samsung.com>
Thu, 27 Aug 2020 02:24:43 +0000 (11:24 +0900)
committerSung-Jin Park <sj76.park@samsung.com>
Thu, 27 Aug 2020 07:51:03 +0000 (16:51 +0900)
Change-Id: I3a2c21d3cd51c92d742f3292d8fbee7b66cba0c8

src/DSWindow/DSWindow.cpp
src/DSWindowShell/DSWindowShellPrivate.cpp

index 517d13e..a83e758 100644 (file)
@@ -206,8 +206,7 @@ void DSWindowPrivate::__onSurfaceCommitted(std::shared_ptr<DSWaylandSurfaceCommi
 
        if (__firstCommit)
        {
-               DSLOG_DBG("DSWindow", "First Commit!!! Send Configure... geo(%d,%d,%d,%d)", __x, __y, __w, __h);
-               sendConfigure();
+               DSLOG_DBG("DSWindow", "First Commit!!! ");
                __firstCommit = false;
        }
 
@@ -232,7 +231,6 @@ void DSWindowPrivate::__onSurfaceCommitted(std::shared_ptr<DSWaylandSurfaceCommi
                else
                {
                        __visible = false;
-                       __firstCommit = true;
                }
 
                // emit a signal of the buffer changed
index 20eeff5..897f91c 100644 (file)
@@ -267,6 +267,8 @@ DSZone *DSWindowShellPrivate::getZone(void)
 void DSWindowShellPrivate::setShellSurface(IDSWaylandShellSurface *shellSurface)
 {
        __shellSurface = shellSurface;
+       DSLOG_DBG("DSWindowShell", "Set ShellSurface(%p). Send configure", shellSurface);
+       sendConfigure();
 }
 
 IDSWaylandShellSurface *DSWindowShellPrivate::getShellSurface(void)