From: Jonathan N. W. <li...@fi...> - 2006-04-14 23:31:27
|
On 13 Apr 2006, at 08:14, Elmo M=E4ntynen wrote: > Jonathan North Washington wrote: > >> I'd like to hear people's thoughts on this. I also wonder how easy >> Elmo thinks this would be to implement, and whether it's an >> appropriate feature for PyWM. > > This is definitely suited for pywm. If you have the time (shouldn't =20= > take > long), you can try to implement this in a wm-script and tell if > something in pywm should adjusted to accomodate this kind of behavior > better. Alternatively you can just wait till someone, like me, > implements this, which should happen soon. Anyway, you should post any > specific details you might have in mind so we can come up with a =20 > kind of > spec. I'm not sure about writing a wm script (I imagine that's best done =20 running PyWM, and I'm currently running OS X as my primary OS, so it =20 would take a little effort to figure out even what's entailed..), but =20= here's the basic logic for what it should do: - if window is being dragged and cursor hits a screen edge: - maximise window horizontally if top or bottom edge - maximise window vertically if left or right edge - reset area where windows can be maximised to the remaining =20 screen area - if maximised window is dragged, unmaximise I suppose there's a little bit more to it than that, but that should =20 provide the basics. Seems pretty simple, and so useful it's a wonder =20= all WMs don't do it.. There should probably be a way (in a config =20 file or menu somewhere) to enable and disable this feature. And btw, my friend who came up with the demo calls the feature =20 "Window Locking". I suppose that's a good name for it. --=20 Jonathan= |