[Gtk-sharp-list] How to get window state information?

Christopher David Howie me at chrishowie.com
Tue Jun 15 19:14:35 EDT 2010

On 06/15/2010 02:33 PM, lorphoenix wrote:
> Thanks you for help it's ok when my window is iconified but not if my
> window is hidden behind others. I've made some test and GdkWindow.state
> doesn't change if my window is behind others. I've looked for others
> properties in GdkWindow but find nothing.

That's because "completely obscured by other windows" is not a state,
it's just the net effect of the positions of all of the open windows.
If you want to know if your window is completely obscured then you will
have to obtain all of the rectangles defining all of the desktop's
windows' positions and sizes and compute the obscured regions of your
window yourself.

Chris Howie

If you correspond with me on a regular basis, please read this document:

PGP fingerprint: 2B7A B280 8B12 21CC 260A DF65 6FCE 505A CF83 38F5


This document should be read only by those persons to whom it is
addressed.  If you have received this message it was obviously addressed
to you and therefore you can read it.

Additionally, by sending an email to ANY of my addresses you are
agreeing that I am, by definition, "the intended recipient," and that I
may do whatever I wish with the contents of any message you send me,
unless a pre-existing agreement prohibits me from so doing.

This overrides any disclaimer or statement of confidentiality that may
be included on your message.

More information about the Gtk-sharp-list mailing list