How to tell the difference between a minimize and a switch desktop?

2008-10-27 Thread Jim George
Hi All, I'm trying to write a program that will minimize to a tray icon. I do this by writing a handler for the window-state-event, and checking the changed mask and new window state for the GDK_WINDOW_STATE_ICONIFIED flag. It all works well, and I also add a handler for the activate callback of

Re: How to tell the difference between a minimize and a switch desktop?

2008-10-27 Thread Rorschach
Hi Jim, I discovered exactly the same odd behavior like you did: http://rorschachstagebuch.wordpress.com/2008/09/16/gdk-minimiert-und-auf-einem-anderen-desktop-erzeugen-das-selbe-windowstate-event/ ! changed_mask always gets the value GDK_WINDOW_STATE_ICONIFIED when switching the desktop. I

Re: How to tell the difference between a minimize and a switch desktop?

2008-10-27 Thread Iain *
2008/10/27 Rorschach [EMAIL PROTECTED]: Hi Jim, I discovered exactly the same odd behavior like you did: http://rorschachstagebuch.wordpress.com/2008/09/16/gdk-minimiert-und-auf-einem-anderen-desktop-erzeugen-das-selbe-windowstate-event/ ! changed_mask always gets the value