added cursor_follows_focus and focus_follows_cursor

This commit is contained in:
skewballfox 2024-09-04 11:13:59 -05:00 committed by Victoria Brekenfeld
parent 52280e9823
commit 7da0bc430a
22 changed files with 844 additions and 384 deletions

View file

@ -8,7 +8,7 @@ use crate::{
x11::X11State,
},
config::{Config, OutputConfig, OutputState},
input::gestures::GestureState,
input::{gestures::GestureState, PointerFocusState},
shell::{grabs::SeatMoveGrabState, CosmicSurface, SeatExt, Shell},
utils::prelude::OutputExt,
wayland::protocols::{
@ -226,6 +226,7 @@ pub struct Common {
pub xwayland_scale: Option<i32>,
pub xwayland_state: Option<XWaylandState>,
pub xwayland_shell_state: XWaylandShellState,
pub pointer_focus_state: Option<PointerFocusState>,
}
#[derive(Debug)]
@ -621,6 +622,7 @@ impl State {
xwayland_scale: None,
xwayland_state: None,
xwayland_shell_state,
pointer_focus_state: None,
},
backend: BackendData::Unset,
ready: Once::new(),