layout: Fix variable names

This commit is contained in:
Ivan Molodetskikh
2025-02-10 07:27:55 +03:00
parent 9fc749f3d4
commit 09a559d3c9
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -2176,8 +2176,8 @@ impl<W: LayoutElement> Layout<W> {
let pos_within_tile = pos_within_output - tile_pos;
if move_.tile.is_in_input_region(pos_within_tile) {
let pos_within_surface = tile_pos + move_.tile.buf_loc();
return Some((move_.tile.window(), Some(pos_within_surface)));
let win_pos = tile_pos + move_.tile.buf_loc();
return Some((move_.tile.window(), Some(win_pos)));
} else if move_.tile.is_in_activation_region(pos_within_tile) {
return Some((move_.tile.window(), None));
}
+2 -2
View File
@@ -1472,8 +1472,8 @@ impl<W: LayoutElement> Workspace<W> {
let pos_within_tile = pos - tile_pos;
if tile.is_in_input_region(pos_within_tile) {
let pos_within_surface = tile_pos + tile.buf_loc();
return Some((tile.window(), Some(pos_within_surface)));
let win_pos = tile_pos + tile.buf_loc();
return Some((tile.window(), Some(win_pos)));
} else if tile.is_in_activation_region(pos_within_tile) {
return Some((tile.window(), None));
}