diff --git a/src/ui/CSimpleTop.cpp b/src/ui/CSimpleTop.cpp index 284c8e7..24d466d 100644 --- a/src/ui/CSimpleTop.cpp +++ b/src/ui/CSimpleTop.cpp @@ -510,7 +510,7 @@ void CSimpleTop::NotifyFrameMovedOrResized(CSimpleFrame* frame) { } int32_t CSimpleTop::RaiseFrame(CSimpleFrame* frame, int32_t checkOcclusion) { - while (frame && frame->m_flags & 0x01) { + while (frame && !(frame->m_flags & 0x1)) { frame = frame->m_parent; }