View: fix checks to respect client side move/resize
This commit is contained in:
@ -140,7 +140,7 @@ fn apply(view: *View) void {
|
||||
// dimensions are set by a layout client. If however the views are
|
||||
// unarranged, leave them as non-floating so the next active layout can
|
||||
// affect them.
|
||||
if (view.output.current.layout != null)
|
||||
if (view.output.pending.layout != null)
|
||||
view.pending.float = true;
|
||||
|
||||
view.float_box = view.pending.box;
|
||||
|
@ -38,7 +38,7 @@ pub fn toggleFloat(
|
||||
// If views are unarranged, don't allow changing the views float status.
|
||||
// It would just lead to confusing because this state would not be
|
||||
// visible immediately, only after a layout is connected.
|
||||
if (view.output.current.layout == null)
|
||||
if (view.output.pending.layout == null)
|
||||
return;
|
||||
|
||||
// Don't float fullscreen views
|
||||
|
Reference in New Issue
Block a user