[MPlayer-dev-eng] screensaver patch

Adam Tlałka atlka at pg.gda.pl
Sun Mar 11 19:27:44 CET 2007


Dnia Sat, 10 Mar 2007 19:15:29 +0100
Adam Tlałka <atlka at pg.gda.pl> napisał(a):

> As you know it's scancode->keycode->keysym binding as it works in X11.
> If we could use unbound 0-8 keycodes it will work not depending on
> your special keyboard. But I must test it first.

As I know now 0-8 keycodes usage produces X-errors so if we want
simulate keypress and keyrelease event we must use some upper unbound
keycodes. No other way with this hack.

Anyway I am really angry with all this screensaver programs which
are totaly uncompatible with Xserver screensaver methods and doing
"smart" event monitoring without using Xserver internal idle value.
Basic periodical call of XResetScreenSaver or better one
XScreenSaverSuspend (available with 1.1 version of Xss
extension) should be all we need.

People are writting programs which are using nonstandard methods of
events monitoring and controlling their usage and then we have these
programs in many distros because distros maintainers put any program
which can be compiled and seems to work without further compatibility
testing. I am searching for some distro which sticks to some
standards of app cooperation, configuration etc. just from the bone
kernel to the presentation desktop layer but I can't see one ;).

X11 protocol has many basic issues with event synchronization, grabs,
event monitoring - security, and property managing. Also some X11 proto
functions use signed int and some unsigned int for window sizes which
leads to serious problems. I don't know if Xorg is so much better then
old XFree. We have modularity of course  and many new drivers but core
protocol and nasty screen refreshes while moving a window are the same.
People are working on new SVG set of icons or 3D window manager but
core is mostly the same.
The same on the upper level - a java or flash browser embedded app can
get all keyboard  events or some of them mostly depending on browser
used and its settings. There is no standard for this.

Regards
-- 
Adam Tlałka       mailto:atlka at pg.gda.pl    ^v^ ^v^ ^v^
System  & Network Administration Group       - - - ~~~~~~
Computer Center, Gdańsk University of Technology, Poland
PGP public key:   finger atlka at sunrise.pg.gda.pl



More information about the MPlayer-dev-eng mailing list