fix: set autotile for al workspace sets when there is a change
this ensures new workspaces are correctly set to autotile or float
This commit is contained in:
parent
6a4bcb1a9d
commit
d1aac380ff
1 changed files with 5 additions and 8 deletions
|
|
@ -27,10 +27,7 @@ use smithay::{
|
||||||
ext::session_lock::v1::server::ext_session_lock_v1::ExtSessionLockV1,
|
ext::session_lock::v1::server::ext_session_lock_v1::ExtSessionLockV1,
|
||||||
xdg::shell::server::xdg_toplevel::WmCapabilities,
|
xdg::shell::server::xdg_toplevel::WmCapabilities,
|
||||||
},
|
},
|
||||||
wayland_server::{
|
wayland_server::{protocol::wl_surface::WlSurface, Client, DisplayHandle},
|
||||||
protocol::{wl_seat::WlSeat, wl_surface::WlSurface},
|
|
||||||
Client, DisplayHandle,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
utils::{Logical, Point, Rectangle, Serial, Size, SERIAL_COUNTER},
|
utils::{Logical, Point, Rectangle, Serial, Size, SERIAL_COUNTER},
|
||||||
wayland::{
|
wayland::{
|
||||||
|
|
@ -938,11 +935,11 @@ impl Workspaces {
|
||||||
guard: &mut WorkspaceUpdateGuard<'_, State>,
|
guard: &mut WorkspaceUpdateGuard<'_, State>,
|
||||||
seats: Vec<Seat<State>>,
|
seats: Vec<Seat<State>>,
|
||||||
) {
|
) {
|
||||||
if matches!(self.autotile_behavior, TileBehavior::Global) {
|
for (_, set) in &mut self.sets {
|
||||||
// must apply change to all workspaces now
|
set.tiling_enabled = self.autotile;
|
||||||
for (_, set) in &mut self.sets {
|
|
||||||
set.tiling_enabled = self.autotile;
|
|
||||||
|
|
||||||
|
if matches!(self.autotile_behavior, TileBehavior::Global) {
|
||||||
|
// must apply change to all workspaces now
|
||||||
for w in &mut set.workspaces {
|
for w in &mut set.workspaces {
|
||||||
if w.tiling_enabled == self.autotile {
|
if w.tiling_enabled == self.autotile {
|
||||||
continue;
|
continue;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue