On Tuesday 01 October 2002 21:54, Martin Egholm Nielsen wrote: > Hi there, > > I was wandering: What would it take to create an application > that could be "stuck" to another window? What I mean is that > I would like this application's window to e.g. move along if > the "mother" window is moved... > Is that possible based solely on events from X, or would it > require an entire redesign of blackbox? > > I'm want to create a "sticky notes" application where you > can attach the notes to other windows... > > Regards, > Martin
Look at the xprop code from the XFree86 sources. It works by grabbing the mouse and then determining which window you clicked. Once you know the window you know the window id. With the id in hand you can select events for that window as well as your own. When the window moves, you move. When it hides you hide. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] List archives: http://asgardsrealm.net/lurker/splash/index.html Trouble? Contact [EMAIL PROTECTED]
