On Fri, 31 Dec 2010 07:09:22 -0800 (PST) £ukasz <blur...@yahoo.com> wrote:
> > --- On Thu, 12/30/10, ebik <e...@drak.ucw.cz> wrote: > > > From: ebik <e...@drak.ucw.cz> > > Subject: Re: Saving/restore session > > To: ion-general@lists.berlios.de > > Date: Thursday, December 30, 2010, 8:20 PM > > On Thu, 30 Dec 2010 07:55:43 -0800 > > (PST) > > £ukasz <blur...@yahoo.com> > > wrote: > > > > > But i have another question. I'm using ion2/pwm2 and i > > want to resize > > > actual window to some fixed sizes (maximize_vert and > > > maximize_horiz_works only as they explicit say > > MAXIMALY ) i used > > > request_geom(WRegion,size_table) but i have probelm > > with gettin > > > current WRegion ( i read cerfully all manual and > > couldnt find > > > function like WRegion WRegion.current() which would > > gave me handle to > > > current region),s ohow to get it and maybe there is > > another way to > > > fixed resize . > > > > > > Regards Lukas > > > > You should use correct binding (i.e., binding for WFrame or > > something > > like that, I have no ion manual here), then the variable > > '_' > > should contain the object, which was the binding triggered > > for. See > > the part of manual that describes bindings. > > Thanx, u are talking about ion3 not ion2 but any wy i just moved to > ion3 and i have the same problem. Trying to set key to rezise > windowes to fixed size, so ok i use WMoveresMode functions > > defbindings("WMoveresMode", { > ... > ... > ... > kpress(META.."R", "WMoveresMode.rqgeom(_,{10,10,100,100})"), > }) > > Let say that META+"R" switches to 'resize' mode. So now pressing > META+"R" than "R" shold rezise window ... buy nothing happen, other > functions like WMoveresMode.resize(_,...) works ok. So where is > mistake in this example. > > Lukasz I think that it should read: WMoveresMode.rqgeom(_,{x=10,y=10,w=100,h=100}) (Not sure about the syntax right now, but the table has named entries.) Second "R" should be pressed also with META in your example. The triggered error probably wrote something to ion's stderr. I keep ion's stdout and stderr explicitly to ~/.xsession-errors, so I can check ion's output in case of bad bindings, kludges or other errors, that occur in "safe environment" -- being triggered by some event. -- Tomáš 'ebík' Ebenlendr PF 2011.00528440512
signature.asc
Description: PGP signature