+#-debug-ref-counting
+(defmethod print-object ((window window) stream)
+ (if (and
+ (proxy-valid-p window)
+ (slot-boundp window 'title)
+ (not (zerop (length (window-title window)))))
+ (print-unreadable-object (window stream :type t :identity nil)
+ (format stream "~S at 0x~X"
+ (window-title window) (sap-int (foreign-location window))))
+ (call-next-method)))