[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [STUMP] Frames
From: |
Shawn Betts |
Subject: |
Re: [STUMP] Frames |
Date: |
Fri, 21 Apr 2006 18:59:32 -0400 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (berkeley-unix) |
Manuel Giraud <address@hidden> writes:
> The following patch is not a great thing. I've just changed the frame
> struct to be class. Updated the code where it needed to (not much, with a
> good naming convention :-). And add few after method though when the frame
> geometry is programmatically modified windows are update correctly.
>
> So now, you're in a SLIME repl connected to your stumpwm lisp process
> and you can go like this:
>
> (in-package :stumpwm)
> (with-accessors ((x frame-x) (y frame-y) (w frame-width) (h frame-height))
> (screen-current-frame (current-screen))
> (setf x 200
> y 200
> w 800
> h 600))
>
> Fun, isn't it :-)
That's kind of interesting actually. I originally saw no point to
using clos but perhaps a dash here and there could be useful. I think
I'll hold off applying this patch for now but I'll keep it in mind.
-Shawn
- [STUMP] Frames, Manuel Giraud, 2006/04/21
- Re: [STUMP] Frames,
Shawn Betts <=