Revert "moving: Let stacking indicator follow mouse"
This reverts commit 51a59b167f.
This commit is contained in:
parent
e7026e0a7e
commit
1804bb8a57
1 changed files with 3 additions and 7 deletions
|
|
@ -32,7 +32,7 @@ use smithay::{
|
||||||
},
|
},
|
||||||
output::Output,
|
output::Output,
|
||||||
reexports::wayland_server::protocol::wl_surface::WlSurface,
|
reexports::wayland_server::protocol::wl_surface::WlSurface,
|
||||||
utils::{IsAlive, Logical, Point, Rectangle, Serial, Size},
|
utils::{IsAlive, Logical, Point, Rectangle, Serial},
|
||||||
wayland::compositor::SurfaceData,
|
wayland::compositor::SurfaceData,
|
||||||
};
|
};
|
||||||
use std::{
|
use std::{
|
||||||
|
|
@ -127,8 +127,7 @@ impl MoveGrabState {
|
||||||
.flat_map(|(indicator, location)| {
|
.flat_map(|(indicator, location)| {
|
||||||
indicator.render_elements(
|
indicator.render_elements(
|
||||||
renderer,
|
renderer,
|
||||||
(cursor_at.to_i32_round() - output.geometry().loc - Point::from((250, 50)))
|
location.to_physical_precise_round(output_scale),
|
||||||
.to_physical_precise_round(output_scale),
|
|
||||||
output_scale,
|
output_scale,
|
||||||
1.0,
|
1.0,
|
||||||
)
|
)
|
||||||
|
|
@ -234,10 +233,7 @@ impl PointerGrab<State> for MoveGrab {
|
||||||
|
|
||||||
if indicator_location.is_some() != grab_state.stacking_indicator.is_some() {
|
if indicator_location.is_some() != grab_state.stacking_indicator.is_some() {
|
||||||
grab_state.stacking_indicator = indicator_location.map(|geo| {
|
grab_state.stacking_indicator = indicator_location.map(|geo| {
|
||||||
let element = stack_hover(
|
let element = stack_hover(state.common.event_loop_handle.clone(), geo.size);
|
||||||
state.common.event_loop_handle.clone(),
|
|
||||||
Size::from((500, 100)),
|
|
||||||
);
|
|
||||||
for output in &self.outputs {
|
for output in &self.outputs {
|
||||||
element.output_enter(output, output.geometry());
|
element.output_enter(output, output.geometry());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue