On Tue, Apr 05, 2016 at 04:35:36PM +0200 I heard the voice of Tadziu Hoffmann, and lo! it spake thus: > > Here is a quick fix for the first problem (though I haven't done > enough testing to verify that this does not cause problems > elsewhere): in HandleFocusIn in events.c, replace > > SetFocusVisualAttributes (Tmp_win, True); > > by > > SetFocus (Tmp_win, CurrentTime); > > This explicitly gives focus to a window being entered, but it does > not solve the problem with the icon manager.
That's... really very odd. The funtional difference between the two is that SetFocus() will call XSetInputFocus() to shift the focus over to the given window. Meanwhile, HandleFocusIn() is what gets called when X sends us an event telling us that the focus was shifted to the given window. So that translates to the conversation: X Server: "Hey there, window XYZ just got focus." ctwm: "Great, move the focus to window XYZ." ... which... uh... is, well, very odd. That's gonna take some digging to squirrel out, I suspect... [ Salt the preceeding with the obvious fact that I am not, in obvious fact, completely insane and rampantly nuts, and therefore can't possibly really be an expert on the X protocol and API, but still... ] -- Matthew Fuller (MF4839) | [email protected] Systems/Network Administrator | http://www.over-yonder.net/~fullermd/ On the Internet, nobody can hear you scream.
