I've finally managed to do it: I've included code in X.L.Minimize so when minimizing or restoring a window, it sends the neccessary X messages to tell that point.

I attach the patch.

Thanks in advance.

2010/3/30 Alejandro Serrano Mena <trupill@gmail.com>
That hook has mostly what I was looking for. However, I would like to modify it so that for windows marked as 'boring' by the BoringWindow module, it would also set the _NET_WM_STATE as _NET_WM_STATE_HIDDEN. 
What is the way to obtain the list of windows marked as 'boring'?

 
Date: Mon, 29 Mar 2010 17:41:10 +0200
From: Joachim Breitner <mail@joachim-breitner.de>
Subject: Re: [xmonad] Minimized windows
To: xmonad@haskell.org
Message-ID: <1269877270.2503.13.camel@localhost>
Content-Type: text/plain; charset="iso-8859-15"

Hi,

Am Montag, den 29.03.2010, 14:49 +0200 schrieb Alejandro Serrano Mena:

> I'm trying to write a Gnome panel that shows the windows I've
> minimized with XMonad.
> At first, I've tried to get the list of minimized windows from the
> window manager using libwnck, but I've seen that XMonad does not
> change the state of windows when minimizing them, just hides them when
> painted. I'd like to know if this is correct, and if there is any way
> to accomplish the task.

have you tried the EWMH hints module:
http://xmonad.org/xmonad-docs/xmonad-contrib/XMonad-Hooks-EwmhDesktops.html

Greetings,
Joachim

--
Joachim "nomeata" Breitner
 mail: mail@joachim-breitner.de | ICQ# 74513189 | GPG-Key: 4743206C
 JID: nomeata@joachim-breitner.de | http://www.joachim-breitner.de/
 Debian Developer: nomeata@debian.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
Url : http://www.haskell.org/pipermail/xmonad/attachments/20100329/737a7e36/attachment-0001.bin