Skip to content

Commit eb64fda

Browse files
committed
element/window: Input offset fixes
1 parent 743e5d4 commit eb64fda

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/shell/element/window.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ impl CosmicWindow {
256256
|| (point_i32.y - geo.loc.y >= -RESIZE_BORDER && point_i32.y - geo.loc.y < 0)
257257
|| (point_i32.x - geo.loc.x >= geo.size.w
258258
&& point_i32.x - geo.loc.x < geo.size.w + RESIZE_BORDER)
259-
|| (point_i32.y - geo.loc.y >= geo.size.h
259+
|| (point_i32.y - geo.loc.y >= geo.size.h + SSD_HEIGHT
260260
&& point_i32.y - geo.loc.y < geo.size.h + SSD_HEIGHT + RESIZE_BORDER)
261261
{
262262
window_ui = Some((
@@ -271,7 +271,9 @@ impl CosmicWindow {
271271
Point::from((0., 0.)),
272272
));
273273
}
274+
}
274275

276+
if p.has_ssd(false) {
275277
relative_pos.y -= SSD_HEIGHT as f64;
276278
offset.y += SSD_HEIGHT as f64;
277279
}

0 commit comments

Comments
 (0)