Ran into another problem today - think I need to understand a little more about how Ecore_Evas does its window handling.

I'm trying to incorporate a screenshot grabber into the program, ultimately to save
time as it didn't look hard to implement but I think I've now spent more time
on this than I may have saved with the convenience! But now it's a problem, and it's
too hard to let go without beating it mercilessly into the void.


I looked up E-Screenshot's code and implemented something similar - just a system(...) call
which runs "import" to grab a window. I'm running this as a callback event tied into
an evas object which acts as a button.


Now if I supply a window name to a program external to the simulation (the program it was
called from) it works fine, it raises the external window and captures it no problem.


Capturing one of the simulation's windows however, raises the window frame just before
capture, but does not redraw its contents, so you get an image of the window overlapped
with windows lying across it.


If I run the simulation and then start another c program which capture's the simulation's
windows in exactly the same way, it raises them and grabs the image without the above
problem - so the issue is in running the system call inside the same program.


So....

When a window is raised in ecore_evas, when exactly does its contents get redrawn?

I think what might be happening is that the simulation effectively stops and waits while
the system call to import is run - when import raises the window for a screenshot, the
simulation does not respond and redraw the contents, because its too busy waiting for
the system call to finish. Would this be correct, and if so is there any way to let it
loose in the background?


Kinda new to understanding forked processes and not really sure where to
go looking for some useful info so any help would be great.

Cheers,
Daniel.

--
email:[EMAIL PROTECTED]
http://members.optusnet.com.au/stonierd/


------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ enlightenment-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/enlightenment-users

Reply via email to