-
- int tempWidth = static_cast<int>(ev->w);
- int tempHeight = static_cast<int>(ev->h);
-
- // Initialize with previous size for skip resize when new size is 0.
- // When window is just moved or window is resized by client application,
- // The configure notification event's size will be 0.
- // If new size is 0, the resized work should be skip.
- int newWidth = mWindowPositionSize.width;
- int newHeight = mWindowPositionSize.height;
- bool windowMoved = false, windowResized = false;
-
- if(ev->x != mWindowPositionSize.x || ev->y != mWindowPositionSize.y)
- {
- windowMoved = true;
- }
-
- if(tempWidth != 0 && tempHeight != 0 && (tempWidth != mWindowPositionSize.width || tempHeight != mWindowPositionSize.height))
- {
- windowResized = true;
- newWidth = tempWidth;
- newHeight = tempHeight;
- }
-
- if(windowMoved || windowResized)
- {
- Dali::PositionSize newPositionSize(ev->x, ev->y, newWidth, newHeight);
- mUpdatePositionSizeSignal.Emit(newPositionSize);
- }
-