layout: Fix variable names
Browse files at this commit09a559d3c9734330c4243791a4656acd6896f5cbParent: 9fc749f2 changed files +4 -4
- src/layout/mod.rs +2 -2
- src/layout/workspace.rs +2 -2
src/layout/mod.rsmodified+2 -2
| @@ -2176,8 +2176,8 @@ impl<W: LayoutElement> Layout<W> { | |||
| 2176 | let pos_within_tile = pos_within_output - tile_pos; | 2176 | let pos_within_tile = pos_within_output - tile_pos; |
| 2177 | 2177 | ||
| 2178 | if move_.tile.is_in_input_region(pos_within_tile) { | 2178 | if move_.tile.is_in_input_region(pos_within_tile) { |
| 2179 | - let pos_within_surface = tile_pos + move_.tile.buf_loc(); | 2179 | + let win_pos = tile_pos + move_.tile.buf_loc(); |
| 2180 | - return Some((move_.tile.window(), Some(pos_within_surface))); | 2180 | + return Some((move_.tile.window(), Some(win_pos))); |
| 2181 | } else if move_.tile.is_in_activation_region(pos_within_tile) { | 2181 | } else if move_.tile.is_in_activation_region(pos_within_tile) { |
| 2182 | return Some((move_.tile.window(), None)); | 2182 | return Some((move_.tile.window(), None)); |
| 2183 | } | 2183 | } |
src/layout/workspace.rsmodified+2 -2
| @@ -1472,8 +1472,8 @@ impl<W: LayoutElement> Workspace<W> { | |||
| 1472 | let pos_within_tile = pos - tile_pos; | 1472 | let pos_within_tile = pos - tile_pos; |
| 1473 | 1473 | ||
| 1474 | if tile.is_in_input_region(pos_within_tile) { | 1474 | if tile.is_in_input_region(pos_within_tile) { |
| 1475 | - let pos_within_surface = tile_pos + tile.buf_loc(); | 1475 | + let win_pos = tile_pos + tile.buf_loc(); |
| 1476 | - return Some((tile.window(), Some(pos_within_surface))); | 1476 | + return Some((tile.window(), Some(win_pos))); |
| 1477 | } else if tile.is_in_activation_region(pos_within_tile) { | 1477 | } else if tile.is_in_activation_region(pos_within_tile) { |
| 1478 | return Some((tile.window(), None)); | 1478 | return Some((tile.window(), None)); |
| 1479 | } | 1479 | } |