[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [STUMP] Real fullscreen and centering windows.
From: |
Philippe Brochard |
Subject: |
Re: [STUMP] Real fullscreen and centering windows. |
Date: |
Fri, 24 Mar 2006 22:06:45 +0100 |
User-agent: |
Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) |
Shawn Betts writes:
> Philippe Brochard <address@hidden> writes:
>
>> Hi everybody,
>>
>> Here is a few patch to have windows that doesn't fill all the frame
>> automaticaly centered :
>>
>> in core.lisp I have add this in maximize-window :
>>
>> -- core.lisp ---------------------------------------------------------
>> (defun maximize-window (win)
>> "Maximize the window."
>> ...
>> ;; readjust the window to center if it doesn't fill all the frame
>> (setf (xlib:drawable-x win) (truncate (+ x (/ (- width
>> (xlib:drawable-width win)) 2)))
>> (xlib:drawable-y win) (truncate (+ y (/ (- height
>> (xlib:drawable-height win)) 2))))
>> (xlib:display-force-output *display*))))
>> ----------------------------------------------------------------------
>
> This should really be done with "gravity" like ratpoison, I
> think. Windows are divided into classes: transient, maxsize,
> normal. windows can be given individual gravity and a default gravity
> can be set for each class. gravity is a compass direction plus
> center. default gravity is nw. Perhaps there could be other gravity
> types (I'm not sure what they'd be).
>
Yes, this is a far better way. I've tried to change the geometry-hint
function but the real size of the window is known only at the end of
maximize-window.
> If you'd like to work on a gravity patch that'd be great! If you're
> interested, let me know if you need more details or have better ideas.
>
Yes, I'll have a look at that (if I can do anything) but I'd like to
have 'save layout' working right before that.
Philippe
--
Philippe Brochard <address@hidden>
http://hocwp.free.fr
-=-= http://www.gnu.org/home.fr.html =-=-
Re: [STUMP] Real fullscreen and centering windows., Shawn Betts, 2006/03/24
- Re: [STUMP] Real fullscreen and centering windows.,
Philippe Brochard <=