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