Skip to content

Commit

Permalink
element/window: Input offset fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Drakulix committed Oct 25, 2024
1 parent 743e5d4 commit eb64fda
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/shell/element/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ impl CosmicWindow {
|| (point_i32.y - geo.loc.y >= -RESIZE_BORDER && point_i32.y - geo.loc.y < 0)
|| (point_i32.x - geo.loc.x >= geo.size.w
&& point_i32.x - geo.loc.x < geo.size.w + RESIZE_BORDER)
|| (point_i32.y - geo.loc.y >= geo.size.h
|| (point_i32.y - geo.loc.y >= geo.size.h + SSD_HEIGHT
&& point_i32.y - geo.loc.y < geo.size.h + SSD_HEIGHT + RESIZE_BORDER)
{
window_ui = Some((
Expand All @@ -271,7 +271,9 @@ impl CosmicWindow {
Point::from((0., 0.)),
));
}
}

if p.has_ssd(false) {
relative_pos.y -= SSD_HEIGHT as f64;
offset.y += SSD_HEIGHT as f64;
}
Expand Down

0 comments on commit eb64fda

Please sign in to comment.