/*
- * Copyright (c) 2023 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2024 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
void Window::SetTransparency(bool transparent)
{
- mIsTransparent = transparent;
+ if(mIsTransparent != transparent)
+ {
+ mIsTransparent = transparent;
+ Window::SetBackgroundColor(mBackgroundColor);
+ }
mWindowSurface->SetTransparency(mIsTransparent);
- SceneHolder::SetBackgroundColor(mBackgroundColor);
}
bool Window::GrabKey(Dali::KEY key, KeyGrab::KeyGrabMode grabMode)