On Wed, Jul 01, 2015 at 09:21:05PM +0200 I heard the voice of Rhialto, and lo! it spake thus: > > Doesn't the ICCM say explicitly that a window should ask for focus > and otherwise it won't get it?
Well... maybe. Little tricky to tell somethings what it means (assuming it's even sure itself ;). It Stands To Reason(tm) that if the window says it doesn't want to get the input, we shouldn't give any to it (though we do, since 3.5 at least; Claude's comment after that gives some hints as to why, though since that's before we have any VCS history, it's pretty bare). But what about when it tells us nothing? > The original test program would be the "No Input" case, It's not, actually; that would be if it gave us a wmhints with input=false. But it doesn't give us any wmhints at all, and in current ctwm that means nothing gets set in there. In a way, you could say that the bug is more than the window ever gets focus (since the code isn't being consistent), than that it sometimes fails to. OTOH, in section 4.1.2.4 about WM_HINTS itself, ICCCM does say ------------- Window managers are free to assume convenient values for all fields of the WM_HINTS property if a window is mapped without one. ------------- which suggests that with no WM_HINTS at all we can completely make stuff up as we go. I propose we give them funny hats 8-} > What "Locally Active" semantically means exactly doesn't become > quite clear to me... The descs at the top of 4.1.7 seem somewhat straightforward, although describing situations that don't make much sense. Seems to be about details of handling focus among multiple subwindows of one window. It may be that they're largely artifacts of earlier X worlds/conventions, whereas nowadays nobody messes with that, just has one X-visible window, and does all their own handling of focus etc within that. We may be the last people in the world aside from the GTK/QT teams even looking at xlib/ICCCM stuff. Shoot, they probably laid out that groundwork 15-20 years ago and haven't touched it since... we might be the top experts. -- Matthew Fuller (MF4839) | [email protected] Systems/Network Administrator | http://www.over-yonder.net/~fullermd/ On the Internet, nobody can hear you scream.
