Changeset 12840
- Timestamp:
- Sep 16, 2009, 2:44:28 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/contrib/foy/window-parking-cm/window-parking.lisp
r12795 r12840 101 101 ;;; 102 102 (defclass PARKABLE-HEMLOCK-FRAME (gui::hemlock-frame) 103 ((parked-p :initform nil :accessor parked-p)) 103 ((parked-p :initform nil :accessor parked-p) 104 (front-p :initform nil :accessor front-p)) 104 105 (:metaclass ns:+ns-object)) 105 106 … … 150 151 151 152 (objc:defmethod (#/makeKeyAndOrderFront: :void) ((w parkable-hemlock-frame) (sender :id)) 152 (setf ( parked-p w) t) ; only park it once153 (setf (front-p w) t) 153 154 (call-next-method sender)) 154 155 … … 157 158 (call-next-method rect display-p)) 158 159 (t 160 (when (front-p w) (setf (parked-p w) t)) 159 161 (multiple-value-bind (h-position v-position h-dimension v-dimension) 160 162 (park *window-parker* w) … … 198 200 (setf (ps-function-key ps) function-key)) 199 201 200 ;;; This is untested201 202 (defMethod parking-spot-on-screen-p ((ps parking-spot) &optional window) 202 203 (let* ((screen (if window … … 444 445 445 446 ;;; ---------------------------------------------------------------------------- 446 ;;; Function commands and bindings:447 ;;; Commands and bindings: 447 448 ;;; 448 449 (hemlock::defcommand "Move Window to Position 1" (p)
Note:
See TracChangeset
for help on using the changeset viewer.
