On Sun, 19 Jun 2011 18:23:23 +0200 Mathieu Taillefumier
<mathieu.taillefum...@free.fr> said:

aaaah but not so simple. when screensaver kicks in, we still get a black screen
as no one "took over being the custom screensaver". e's infra just lets
whatever the current screensaver is work - and thats x's default "create big
black window" screensaver. you need to modify e_screensaver.c ANd ecore_x to
add support to use XScreenSaverSetAttributes() to set up a custom screensaver
window. that's easily done - you define the p[ixmap to be used (just use 0),
x,y, widht, height et.c and colormap and so on.. what u want is to just get x
to create a dummy window offscreen so give it x, y of -1 -1 and width and
height of 1x1 (the rest is rather irrelevant so it can have default colormap
and visial and depth etc.).. but more importantly.. this makes x NOT display a
big black window. you'll have to add an ecore_x call to do this (and so e
becomes the default screensaver client). now e_screensaver needs to know about
this and "do something".

e_backlight needs to register a handler with e_screensaver of some sort to say
"hey - i'll handle the screensave event by dimming". if no one registers,
e_screensaver should do its own thing (eg popup big black window). :) so you're
on your way there. but there is more to do. also you still have your sleep
timer in the patch that you dont use (the value in config).

:) sorry i'm making this hard, but along the way you'll learn a lot about x,
efl, e etc. :)

> Hei,
> 
> 
> > Also, many userspace applications can work with that. Mplayer (and
> > other mediaplayers) for example regularly sends events to keep
> > xscreensaver disabled, thus keeping everything like it should be while
> > watching a movie without manually disabling the behaviour. This, like
> > all the things raster mentioned, would be desirable to keep with the
> > dim feature.
> 
> Here is the answer. Enclosed is the second version the patch 
> implementing the backlight dimming. Contrary to the first version, it is 
> based on the screensaver extension but the dimming will only work when 
> the screensaver is activated.
> 
> Cheers Mathieu


-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    ras...@rasterman.com


------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to