Remove duplicate orphaned-frames definition

Remove the defun in tile-group.lisp as this function is first called in
head.lisp and thus it makes sense that it resides there.
This commit is contained in:
szos 2022-12-07 06:06:44 +01:00
parent 4edcba55b2
commit 39b882547d
2 changed files with 2 additions and 9 deletions

View file

@ -228,5 +228,6 @@
"Returns a list of frames on a screen not associated with any group.
These shouldn't exist."
(let ((adopted-frames (loop for group in (screen-groups screen)
append (group-frames group))))
unless (typep group 'float-group)
append (group-frames group))))
(set-difference (screen-frames screen) adopted-frames)))

View file

@ -490,14 +490,6 @@ T (default) then also focus the frame."
(remove-duplicates (mapcar #'(lambda (window) (window-frame window))
(list-windows screen))))
(defun orphaned-frames (screen)
"Returns a list of frames on a screen not associated with any group.
These shouldn't exist."
(let ((adopted-frames (loop for group in (screen-groups screen)
unless (typep group 'float-group)
append (group-frames group))))
(set-difference (screen-frames screen) adopted-frames)))
(defmethod group-adopt-orphaned-windows ((group tile-group) &optional (screen (current-screen)))
"Picks an arbitray frame in the given group and moves
any windows in frames without a group thereinto"