On Mon, 3 Jul 2006 02:01:36 +0200 Simon TRENY <[EMAIL PROTECTED]> babbled:

> On Mon, 3 Jul 2006 07:59:35 +0900,
> Carsten Haitzler (The Rasterman) <[EMAIL PROTECTED]> wrote :
> 
> > On Sun, 2 Jul 2006 18:40:50 +0200 Simon TRENY <[EMAIL PROTECTED]>
> > babbled:
> > 
> > > Hi everyone,
> > > 
> > > In Etk, in order to update the widgets when the window is resized, I
> > > use an ecore job: in the Ecore_Evas's resize_cb, I just create an
> > > "update job" with ecore_job_add() if there is no "update job"
> > > created yet. This job will resize the widgets.
> > > 
> > > My problem is that if the window is resized too often (i.e. if I
> > > drag the bottom-right corner of the window, and draw small circles
> > > with the mouse to resize the window), the "update job" is not
> > > called anymore. When I stop resizing, the job is called again.
> > 
> > actually you want to delete the old job, and add a new one each time
> > you get a resize (if an existing job is around). jobs basically
> > piggyback the events system and place an internal event on the queue
> > that will get processed after all current events int he queue are
> > done (but before any new events e finds). they don't use idlers and
> > idle_enterers.
> 
> Ok, thanks for the tip, I'll do that in Etk :)
> 
> > 
> > > I wrote a small code (attached to this mail) to illustrate the
> > > problem. Just try to resize the window of the test prog (by
> > > "drawing small circles" witht the mouse), and you'll see that
> > > sooner or later, the job won't be called anymore (no more output in
> > > the terminal and the purple rectangle is no longer resized). Jobs
> > > are not the only ones affected by this problem, I tried with timers
> > > and animators, they are also not called. Ecore's main loop just
> > > seems to be stopped when the window is resized?!
> > > 
> > > For info, my CPU is an Athlon XP 2700+
> > > 
> > > 
> > > Could you explain me why this happens?
> > 
> > let me test and see. ok - i did this for about a minute (resizing in
> > small circles) - still working... damn.
> 
> I've just realized that I was using the open-source "nv" driver for
> Xorg. Switching to the "nvidia" driver has solved the problem. Sorry
> about that :/

that is strange - that shouldn't cause such a problem. the driver runs in
separate memory space (though being root in theory has the ability to destroy
anything else if it tries hard enough)

> Simon
> 
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> enlightenment-devel mailing list
> enlightenment-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> 


-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    [EMAIL PROTECTED]
裸好多
Tokyo, Japan (東京 日本)

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to