Skip to content

Commit

Permalink
activation_area: Allow x and y values be zero for the activation area
Browse files Browse the repository at this point in the history
Bug-AGL: SPEC-5038
Signed-off-by: Marius Vlad <[email protected]>
  • Loading branch information
Marius Vlad committed Jan 9, 2024
1 parent a9140c0 commit 4965b40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shell/wayland/window.cc
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ WaylandWindow::WaylandWindow(size_t index,
break;
case WINDOW_BG:
m_display->AglShellDoBackground(m_base_surface, 0);
if (m_activation_area.x > 0 && m_activation_area.y > 0)
if (m_activation_area.x >= 0 && m_activation_area.y >= 0)
m_display->AglShellDoSetupActivationArea(
m_activation_area.x, m_activation_area.y, m_activation_area.width,
m_activation_area.height, 0);
Expand Down

0 comments on commit 4965b40

Please sign in to comment.