xwem-devel
[Top] [All Lists]

Re: x-border-width => 0 for XEmacs frames

From: Richard Klinda <ignotus@xxxxxxxxxxx>
Subject: Re: x-border-width => 0 for XEmacs frames
Date: Thu, 19 May 2005 16:40:52 +0200
Organization: Is this ANYWHERE, USA?
Sender: ignotus@xxxxxxxxxxx
User-agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Security Through Obscurity, linux)
>>>>> Regarding 'Re: x-border-width => 0 for XEmacs frames'; Zajcev Evgeny adds:

  > Richard Klinda <ignotus@xxxxxxxxxxx> writes: [..]
  >> Another thing, may be a bug:

  >> - start playing a movie with MPlayer;
  >> - set the border to 0;
  >> (xwem-client-set-property (xwem-cl-selected) 'x-border-width 0)
  >> - no switch MPlayer to fullscreen mode 'f', then switch back to
  >> windowed mode ('f' again);
  >> - now the MPlayer window has a border again.

  > Hmm, actually this looks like your local configuration.  To find
  > this out, just report this behaviour as bug :)

Hehe, you are right of course!  I had this snippet in my xwemrc:

,----
| (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-manage-hook
|           'ign-set-border-width)
`----

Now I modified it so it works ok!

-- 
Richard Klinda  \/
                /\  Show me your init.el and I'll you tell who you are.

<Prev in Thread] Current Thread [Next in Thread>