Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!bloom-beacon!AUDI.SIEMENS.COM!ellis From: ellis@AUDI.SIEMENS.COM (Ellis Cohen) Newsgroups: comp.windows.x Subject: Re: Xtk Iconic State (???) Message-ID: <8808011716.AA03746@audi.siemens.com> Date: 1 Aug 88 17:16:36 GMT Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 42 > I would like a widget to be initially in an > IconicState and have the ability to recieve > and handle events from this Icon. I wish to > use xtk and not xlib. However,I believe > I cannot guarantee events from an Icon, or > can I ? Some information and warnings from the window manager point of view: You can arrange for a specific window to be used as an icon for a top-level window by setting the icon_window field in the top-level window's WM_HINTS property (see section 9.1.5 of the Xlib manual). Window managers are supposed to use that window as (or in) the icon for the top-level window. At present, some do and some don't. It is expected that more and more will do so in the future. Unfortunately, there is no guarantee or requirement that input to the icon window will be passed along to the client. Most wm's will preeempt at some least some inputs as triggering window manager functions. For example, most wm's will interpret a click of some button to mean deiconize (i.e. map the top-level window). However, many wm's will pass at least some input events on to the client, however, there is no telling which ones. For example, our wm passes through all keypress and keyrelease events, and passes through left or right button presses which have either the SHIFT or CTRL button pressed (but not both). It uses other button events for wm-related purposes, such as deiconizing, moving the icon, redrawing it, etc. Other wm's have their own conventions. At the very least, for portability, you should treat all buttonpress events you do receive in an icon as having the same effect, since you don't know which ones you'll actually get. If you want to trigger different functions when you're iconic, bring up a popup menu. Ellis Cohen Siemens RTL Tiled Window Project