Richard Klinda <ignotus@xxxxxxxxxxx> writes:
> ,----
> | (defvar ign-borders-alist '((generic . 2)
> | (fullscreen . 0)))
> |
> | (defun ign-set-border-width (cl)
> | "Set CL's border width to one in `ign-borders-alist'."
> | (let ((bw (cdr (assq (xwem-cl-manage-type cl)
> | ign-borders-alist))))
> | (when bw
> | (xwem-client-set-property cl
> | 'x-border-width bw))))
> |
> | (add-hook 'xwem-cl-activate-hook
> | 'ign-set-border-width)
> `----
With xwem--2.1--patch-21, use `xwem-cl-manage-hook' instead of
`xwem-cl-activate-hook'.
In future, each major-mode(managing mode) will have separate default
client properties. Currently only 'transient major mode has separate
default client properties - `xwem-transient-client-properties'.
Actually we will collaborate all that mode specific properties in
`xwem-client-default-properties', which became an alist with items in
form:
(MODE . PROPERTIES-LIST)
So, all that functionality of above code can be done, by configuring
`xwem-client-default-properties'.
Thanks!
--
lg
|