layout: Fix adjusting for scale for moved tile when reloading config
Browse files at this commitfa4aa0e06ddd2d87b918e6ecaaf2b3c466fa9a30Parent: e2a63741 changed file +4 -1
- src/layout/mod.rs +4 -1
src/layout/mod.rsmodified+4 -1
| @@ -2408,7 +2408,10 @@ impl<W: LayoutElement> Layout<W> { | |||
| 2408 | 2408 | ||
| 2409 | if let Some(InteractiveMoveState::Moving(move_)) = &mut self.interactive_move { | 2409 | if let Some(InteractiveMoveState::Moving(move_)) = &mut self.interactive_move { |
| 2410 | let scale = move_.output.current_scale().fractional_scale(); | 2410 | let scale = move_.output.current_scale().fractional_scale(); |
| 2411 | - move_.tile.update_config(scale, options.clone()); | 2411 | + move_.tile.update_config( |
| 2412 | + scale, | ||
| 2413 | + Rc::new(Options::clone(&options).adjusted_for_scale(scale)), | ||
| 2414 | + ); | ||
| 2412 | } | 2415 | } |
| 2413 | 2416 | ||
| 2414 | match &mut self.monitor_set { | 2417 | match &mut self.monitor_set { |