File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change 535
535
(setf (SetWindowAttributes-win_gravity swa) (gravity-to-value gravity))
536
536
(unless color-map
537
537
(cond ((= vi *visual* ) ; use parent's colormap for the default
538
- (setq color-map (send parent :colormap ))
539
- (unless (derivedp color-map colormap)
540
- (warning-message 2 " ~s 's parent ~s does not have cmap; root cmap is used."
541
- self parent)
542
- (setq color-map *color-map* )))
538
+ (setq color-map (send parent :colormap )))
543
539
(t ; make private cmap
544
540
(setq color-map (instance colormap :create :visual vi))
545
541
(send color-map :copy-colors *color-map* 0 32 )) ))
635
631
(integer-vector (send attr :get ' width) (send attr :get ' height)))
636
632
(:depth () (send (send self :attributes ) :get ' depth))
637
633
(:screen () (send (send self :attributes ) :get ' screen))
638
- (:ColorMap () (gethash (send (send self :attributes ) :get ' colormap)
639
- *xwindows-hash-tab* ))
634
+ (:ColorMap () (let ((color-map (gethash (send (send self :attributes ) :get ' colormap)
635
+ *xwindows-hash-tab* )))
636
+ (unless (derivedp color-map colormap)
637
+ (warning-message 2 " ~s 's parent ~s does not have cmap; root cmap is used.~% "
638
+ self parent)
639
+ (setq color-map *color-map* ))
640
+ color-map))
640
641
(:root () (send (send self :attributes ) :get ' root)) ; drawable id of the root
641
642
(:title (title)
642
643
; (send self :unmap)
You can’t perform that action at this time.
0 commit comments