#1743 HIGH First D: Preview for journal items are not created until the activity is closed.
Zarro Boogs per Child
bugtracker at laptop.org
Fri Sep 28 18:09:26 EDT 2007
#1743: Preview for journal items are not created until the activity is closed.
---------------------+------------------------------------------------------
Reporter: tomeu | Owner: tomeu
Type: defect | Status: new
Priority: high | Milestone: First Deployment, V1.0
Component: sugar | Version:
Resolution: | Keywords:
Verified: 0 |
---------------------+------------------------------------------------------
Comment(by marco):
Replying to [comment:10 danw]:
> Heh. I filed that bug against gnome-screenshot a few years ago:
http://bugzilla.gnome.org/show_bug.cgi?id=121492. From looking at the
patch there
(http://bugzilla.gnome.org/attachment.cgi?id=52863&action=view), it seems
like if you call get_from_drawable() on the root window rather than the
main activity window, you'll get a correct screenshot.
The problem with using get_from_drawable directly on the root window is
that it's too slow (even on a fast laptop it's around 0.3) and need to be
done while the window is visible. That blocks the UI too much. Also if you
close a window from the Home view you get the wrong screenshot.
So the approach we are considering is to XCopyArea all the windows in the
activity to an offscreen pixmap while the activity is visible (which is
very fast because it's all done on the server side) and then when the
window goes in the background call get_from_drawable() on the pixmap (at
that point it doesn't matter if it's slow and blocks because the process
is in the background).
On the longer term we might be able to use the redirection work that is
being done in gtk, but it's not clear if/when it will be merged:
http://bugzilla.gnome.org/show_bug.cgi?id=3188
--
Ticket URL: <https://dev.laptop.org/ticket/1743#comment:14>
One Laptop Per Child <https://dev.laptop.org>
OLPC bug tracking system
More information about the Bugs
mailing list