fix: Fix parsing win_float_pos_arguments (#715)

Refs #714
macos-click-through
partizan 3 years ago committed by GitHub
parent 51fa8c0f01
commit c6a68915a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -200,6 +200,7 @@ pub enum RedrawEvent {
anchor_row: f64, anchor_row: f64,
anchor_column: f64, anchor_column: f64,
focusable: bool, focusable: bool,
z_index: i64,
}, },
WindowExternalPosition { WindowExternalPosition {
grid: u64, grid: u64,
@ -689,8 +690,9 @@ fn parse_win_float_pos(win_float_pos_arguments: Vec<Value>) -> Result<RedrawEven
Value::Nil, Value::Nil,
Value::Nil, Value::Nil,
Value::Nil, Value::Nil,
Value::Nil,
]; ];
let [grid, _window, anchor, anchor_grid, anchor_row, anchor_column, focusable] = let [grid, _window, anchor, anchor_grid, anchor_row, anchor_column, focusable, z_index] =
extract_values(win_float_pos_arguments, values)?; extract_values(win_float_pos_arguments, values)?;
Ok(RedrawEvent::WindowFloatPosition { Ok(RedrawEvent::WindowFloatPosition {
@ -700,6 +702,7 @@ fn parse_win_float_pos(win_float_pos_arguments: Vec<Value>) -> Result<RedrawEven
anchor_row: parse_f64(anchor_row)?, anchor_row: parse_f64(anchor_row)?,
anchor_column: parse_f64(anchor_column)?, anchor_column: parse_f64(anchor_column)?,
focusable: parse_bool(focusable)?, focusable: parse_bool(focusable)?,
z_index: parse_i64(z_index)?,
}) })
} }

Loading…
Cancel
Save