mirror of
https://github.com/wolfpld/tracy
synced 2025-05-01 13:13:53 +00:00
Check if window is not under another window.
This commit is contained in:
parent
c402bd43b3
commit
de9fbf4c2c
@ -453,7 +453,7 @@ void View::DrawFrames()
|
|||||||
auto draw = ImGui::GetWindowDrawList();
|
auto draw = ImGui::GetWindowDrawList();
|
||||||
|
|
||||||
draw->AddRectFilled( wpos, wpos + ImVec2( w, Height ), 0x33FFFFFF );
|
draw->AddRectFilled( wpos, wpos + ImVec2( w, Height ), 0x33FFFFFF );
|
||||||
bool hover = ImGui::IsMouseHoveringRect( wpos, wpos + ImVec2( w, 60 ) );
|
bool hover = ImGui::IsWindowHovered() && ImGui::IsMouseHoveringRect( wpos, wpos + ImVec2( w, 60 ) );
|
||||||
const auto wheel = io.MouseWheel;
|
const auto wheel = io.MouseWheel;
|
||||||
const auto prevScale = m_frameScale;
|
const auto prevScale = m_frameScale;
|
||||||
if( hover )
|
if( hover )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user