Re: clip masks/simulating transparency

2011-05-31 Thread Mag. Dr. Nikolaus Klepp
Hi!

I just wanted to say that I love the idea of what you are doing. If I get it 
right, xpenguins would then work with any DE (KDE/Gnome) without erasing the 
icont?

Nik

Am Dienstag, 31. Mai 2011 schrieb Amy C:
 Hi all,

 I've sort-of worked it out (I think??) but would still like suggestions on
 this.
 The penguins -are- being drawn using the clip mask correctly onto the
 window of my choice.

 The problem was that each penguin comprises a little animation (penguin is
 moving), and the expose event was only being sent once per animation, not
 after every single frame of the animation. Since the penguins move only a
 few pixels per animations (say 20 or so) it looked like the clip mask just
 wasn't working.

 I've modified the code to send an expose event after each frame of the
 animation is drawn (so truly after each penguin is drawn), but now (as
 expected) it looks very very flickery -- every cycle we get a XClearArea
 where the old penguin was, an XExposeEvent where the old penguin was, and a
 XCopyArea of the next frame of the animation.

 Can anyone think of an alternative way to do this (have the penguins walk
 over a screen of my choosing and restore said window after they've passed
 through, without too much flickering?) -- perhaps I can copy the relevant
 bit of background as the background of the penguin pixmap itself, although
 I think I'd need to send an XExposeEvent before I can grab the background?

 [So close! Soon I shall have penguins taking over my windows! SOON! bahaha]
 cheers
 Amy

___
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg
Your subscription address: arch...@mail-archive.com


Re: Every newcomers to X think that servers and clients are reversed because they are

2011-04-20 Thread Mag. Dr. Nikolaus Klepp
Am Mittwoch, 20. April 2011 schrieb Paul Dufresne:
 The design decision that was made was to make the applications the
 clients, and the program that sits next to keyboard and monitor the
 server. And I admit that now this is a real server.
 But I pretend it was a bad choice.

 The question is what are the ressources you want to share?
 Now the ressources shared seems to be the keyboard, mouse and monitor.

 What I think the users want to use or share is the X applications.

 That's why I think that X would be more usefull if the order was reversed.
 Because then, the X server would sit there, waiting for client (that
 would be humans rather than programs), to connect and the ressources
 shared would be X applications.

 Why would someone want to share his monitor, keyboard an mouse on the net?
 That does not seems useful.

Oh, it's very useful. Ever tried to build a system with 32 distributed 
screens?

Nik
___
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg
Your subscription address: arch...@mail-archive.com


Re: Simple application to get window WId ?

2010-08-23 Thread Mag. Dr. Nikolaus Klepp
Am Montag, 23. August 2010 schrieb Aaron Lewis:
 Hi,
   I'm currently working on a KDE application , plasma-globalmenu , which
 will make all GTK / Gnome application globally on XBar , but now i'm
 meeting a problem , so i need to write a simply application , which
 could help me detect the WId of a running window.

 Like , popup a mouse , let me click on something , and print a unique
 number (WId) , in decimal or hex , doesn't matter.

 Could anyone give a hand on this simple application ?

 I think it's very basic , but i've never done pure X11 programming
 before , any guides is appreciated.

 Many thanks !

xwininfo does the job. you might want to take a look at the sources :-)
-- 

Mag. Dr. Nikolaus Klepp
Einnehmerstraße 14
A-4810 Gmunden
Tel.: +43 650 82 11 724
email: off...@klepp.biz
   dr.kl...@gmx.at 
   
___
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg
Your subscription address: arch...@mail-archive.com


Re: Simple application to get window WId ?

2010-08-23 Thread Mag. Dr. Nikolaus Klepp
Am Montag, 23. August 2010 schrieb Aaron Lewis:
 Hi,
   I'm currently working on a KDE application , plasma-globalmenu , which
 will make all GTK / Gnome application globally on XBar , but now i'm
 meeting a problem , so i need to write a simply application , which
 could help me detect the WId of a running window.

 Like , popup a mouse , let me click on something , and print a unique
 number (WId) , in decimal or hex , doesn't matter.

 Could anyone give a hand on this simple application ?

 I think it's very basic , but i've never done pure X11 programming
 before , any guides is appreciated.

 Many thanks !

xwininfo does the job. you might want to take a look at the sources :-)

-- 

Mag. Dr. Nikolaus Klepp
Einnehmerstraße 14
A-4810 Gmunden
Tel.: +43 650 82 11 724
email: off...@klepp.biz
___
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg
Your subscription address: arch...@mail-archive.com


Xfbdev: no screens found

2010-01-31 Thread Mag. Dr. Nikolaus Klepp
Could somebody please tell me how to convert the information from fbset -i 
to a modeline suitable for hw/kdrive/src/kmode.c?

I've a ARM9 board (mini2440) but I cannot get Xfbdev running.

# fbset -i

mode 240x320-66
# D: 5.882 MHz, H: 21.626 kHz, V: 65.733 Hz
geometry 240 320 240 320 16
timings 17 1 26 2 5 5 2
rgba 5/11,6/5,5/0,0/0
endmode

Frame buffer device information:
Name: s3c2410fb
Address : 0x3394
Size: 153600
Type: PACKED PIXELS
Visual  : TRUECOLOR
XPanStep: 0
YPanStep: 0
YWrapStep   : 0
LineLength  : 480
Accelerator : No
#

# Xfbdev -screen 240x320x16 -rgba rgb
Warning: mode not found, using default
error: Invalid argument

Fatal server error:
no screens found
#

Nik
___
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg