Remove unnecessary casting
This commit is contained in:
parent
48ae9a2a33
commit
52280e9823
6 changed files with 14 additions and 14 deletions
|
|
@ -1881,7 +1881,7 @@ impl State {
|
|||
let res = shell.move_current_window(
|
||||
seat,
|
||||
¤t_output,
|
||||
(¤t_output, Some(workspace as usize)),
|
||||
(¤t_output, Some(workspace)),
|
||||
matches!(x, Action::MoveToLastWorkspace),
|
||||
None,
|
||||
&mut self.common.workspace_state.update(),
|
||||
|
|
@ -1904,7 +1904,7 @@ impl State {
|
|||
shell.move_current_window(
|
||||
seat,
|
||||
¤t_output,
|
||||
(¤t_output, Some(workspace as usize)),
|
||||
(¤t_output, Some(workspace)),
|
||||
matches!(x, Action::MoveToNextWorkspace),
|
||||
direction,
|
||||
&mut self.common.workspace_state.update(),
|
||||
|
|
@ -1949,7 +1949,7 @@ impl State {
|
|||
shell.move_current_window(
|
||||
seat,
|
||||
¤t_output,
|
||||
(¤t_output, Some(workspace as usize)),
|
||||
(¤t_output, Some(workspace)),
|
||||
matches!(x, Action::MoveToPreviousWorkspace),
|
||||
direction,
|
||||
&mut self.common.workspace_state.update(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue