layout: Rename argument from window to id
Browse files at this commitb447b1f4de65ee706bdbbdb9b650ab030459c0fbParent: 1a0fab01 changed file +8 -8
- src/layout/mod.rs +8 -8
src/layout/mod.rsmodified+8 -8
| @@ -3457,31 +3457,31 @@ impl<W: LayoutElement> Layout<W> { | |||
| 3457 | res | 3457 | res |
| 3458 | } | 3458 | } |
| 3459 | 3459 | ||
| 3460 | - pub fn set_fullscreen(&mut self, window: &W::Id, is_fullscreen: bool) { | 3460 | + pub fn set_fullscreen(&mut self, id: &W::Id, is_fullscreen: bool) { |
| 3461 | if let Some(InteractiveMoveState::Moving(move_)) = &self.interactive_move { | 3461 | if let Some(InteractiveMoveState::Moving(move_)) = &self.interactive_move { |
| 3462 | - if move_.tile.window().id() == window { | 3462 | + if move_.tile.window().id() == id { |
| 3463 | return; | 3463 | return; |
| 3464 | } | 3464 | } |
| 3465 | } | 3465 | } |
| 3466 | 3466 | ||
| 3467 | for ws in self.workspaces_mut() { | 3467 | for ws in self.workspaces_mut() { |
| 3468 | - if ws.has_window(window) { | 3468 | + if ws.has_window(id) { |
| 3469 | - ws.set_fullscreen(window, is_fullscreen); | 3469 | + ws.set_fullscreen(id, is_fullscreen); |
| 3470 | return; | 3470 | return; |
| 3471 | } | 3471 | } |
| 3472 | } | 3472 | } |
| 3473 | } | 3473 | } |
| 3474 | 3474 | ||
| 3475 | - pub fn toggle_fullscreen(&mut self, window: &W::Id) { | 3475 | + pub fn toggle_fullscreen(&mut self, id: &W::Id) { |
| 3476 | if let Some(InteractiveMoveState::Moving(move_)) = &self.interactive_move { | 3476 | if let Some(InteractiveMoveState::Moving(move_)) = &self.interactive_move { |
| 3477 | - if move_.tile.window().id() == window { | 3477 | + if move_.tile.window().id() == id { |
| 3478 | return; | 3478 | return; |
| 3479 | } | 3479 | } |
| 3480 | } | 3480 | } |
| 3481 | 3481 | ||
| 3482 | for ws in self.workspaces_mut() { | 3482 | for ws in self.workspaces_mut() { |
| 3483 | - if ws.has_window(window) { | 3483 | + if ws.has_window(id) { |
| 3484 | - ws.toggle_fullscreen(window); | 3484 | + ws.toggle_fullscreen(id); |
| 3485 | return; | 3485 | return; |
| 3486 | } | 3486 | } |
| 3487 | } | 3487 | } |