mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-21 02:01:55 +07:00
layout: Fix variable names
This commit is contained in:
+2
-2
@@ -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));
|
||||
}
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user