I can't code C but to keep this thread alive:
/Sing it on the tones of "Let it be" by the Beatles/ When I find my code in tons of trouble, Friends and colleagues come to me, Speaking words of wisdom: "Write in C." As the deadline fast approaches, And bugs are all that I can see, Somewhere, someone whispers: "Write in C." Write in C, Write in C, Write in C, oh, Write in C. LOGO's dead and buried, Write in C. I used to write a lot of FORTRAN, For science it worked flawlessly. Try using it for graphics! Write in C. If you've just spent nearly 30 hours, Debugging some assembly, Soon you will be glad to Write in C. Write in C, Write in C, Write in C, yeah, Write in C. BASIC's not the answer. Write in C. Write in C, Write in C Write in C, oh, Write in C. Pascal won't quite cut it. Write in C. Op di, 20-12-2005 te 12:11 +0100, schreef Sander Hoentjen: > Hi, does anyone has time to code some c? > > I would like something like the following. It has to be called from TK > and set the _NET_WM_STATE_DEMANDS_ATTENTION on the window (chatwindow) > > Display *xdisplay = qt_xdisplay(); > > // We need Atom-s created only once, they don't change during runtime > static Atom demandsAttention = XInternAtom(xdisplay, > "_NET_WM_STATE_DEMANDS_ATTENTION", true); > static Atom wmState = XInternAtom(xdisplay, "_NET_WM_STATE", true); > > Window rootwin = qt_xrootwin(), winId = parentWidget->winId(); > > XEvent e; > e.xclient.type = ClientMessage; > e.xclient.message_type = wmState; > e.xclient.display = xdisplay; > e.xclient.window = winId; > e.xclient.format = 32; > e.xclient.data.l[1] = demandsAttention; > e.xclient.data.l[2] = 0l; > e.xclient.data.l[3] = 0l; > e.xclient.data.l[4] = 0l; > > if (yes) > e.xclient.data.l[0] = 1; > else > e.xclient.data.l[0] = 0; > > XSendEvent(xdisplay, rootwin, False, (SubstructureRedirectMask | > SubstructureNotifyMask), &e); > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > Amsn-devel mailing list > Amsn-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/amsn-devel > ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ Amsn-devel mailing list Amsn-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amsn-devel