mirror of https://codeberg.org/cage/tinmop/
- fixed 'stack-raise-to-top'
Swapping the position of the window to be raised with the head of the was a bad idea. Sometimes a windows could go behind the omnipresent windows (messages, thread etc.) and never shown (as covered by the others).
This commit is contained in:
parent
b10ba55932
commit
9895f2ef98
|
@ -79,11 +79,8 @@
|
|||
|
||||
(defmethod stack-raise-to-top ((object stack) val)
|
||||
(with-accessors ((container container)) object
|
||||
(when-let ((val-position (stack-position object val))
|
||||
(last-position (1- (length container))))
|
||||
(misc:swap (elt container val-position)
|
||||
(elt container 0)))
|
||||
object))
|
||||
(stack-remove object val)
|
||||
(stack-push object val)))
|
||||
|
||||
(defmethod stack-remove ((object stack) val)
|
||||
(with-accessors ((container container)) object
|
||||
|
|
Loading…
Reference in New Issue