Why adding it to winflash ?? Winflash is for Windows isn't it ? Phil Le Tuesday 20 December 2005 16:13, Youness Alaoui a écrit : > wouhou! that simple ? > cool :) > I'll add it to winflash.c directly since it's already there... > code will have to be modified for it to work, so it's certainly post 0.95 > flagged it TODO > > Thanks Sander! you're 95% of our linux users' savior :D > KKRT > > On Tue, 20 Dec 2005 09:07:59 -0500, Sander Hoentjen <[EMAIL PROTECTED]> > > wrote: > > On Tue, 2005-12-20 at 14:58 +0100, Le Philousophe - Phil wrote: > >> I am not sure to know what it does... It makes the window flashing ?? > >> We could integrate that in the traydock extension but... Is it for 0.95 > >> ??? Is > >> it enough safe ? > >> Phil > > > > Depending on the Window Manager it does something, in most cases makes > > it flash, yes. > > > > _NET_WM_STATE_DEMANDS_ATTENTION indicates that some action in or with > > the window happened. For example, it may be set by the Window Manager if > > the window requested activation but the Window Manager refused it, or > > the application may set it if it finished some work. This state may be > > set by both the Client and the Window Manager. It should be unset by the > > Window Manager when it decides the window got the required attention > > (usually, that it got activated). > > > > source: > > http://standards.freedesktop.org/wm-spec/1.4/ar01s05.html#id2527339 > > > > So very similar to the winflash thing we have. I don't think it would be > > good to include for 0.95, but very good to have! Maybe put it in the > > Desktop Integration plugin, I don't know. If you can make it at least I > > am sure we can fit it in amsn. > > > >> Le Tuesday 20 December 2005 12:11, Sander Hoentjen a écrit : > >> > 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_idv37&alloc_id865&opk > >> _______________________________________________ > >> 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_idv37&alloc_id865&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_idv37&alloc_id865&op=click _______________________________________________ Amsn-devel mailing list Amsn-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amsn-devel