Closed GoogleCodeExporter closed 9 years ago
I'm not sure about the duplicate ClientFocus events (although I suspect that
they're
generated by mouse grabs), but I think the Pidgin bug is, well, a Pidgin bug.
When
the new window opens in stack mode, the new window probably opens before the
contact
window receives the ButtonRelease event, so it goes to the chat window rather
than
the contact window. GTK or Pidgin should probably handle that eventuality, but
it
appears not to, whether because it gets iconified first or it just doesn't
bother.
There's nothing wmii can do about it.
I'll look into the ClientFocus issue.
Original comment by maglion...@gmail.com
on 18 May 2010 at 12:23
Ah, that makes sense, thanks.
Original comment by adkilgore
on 18 May 2010 at 12:38
One reason that I reported it here was that I am still unable to reproduce the
result
while using other window managers, the only other one I tried was icewm, but it
does
not seem to happen there, and I am still trying to reason out why that would
be. The
chat window seems to open up fast and the focus is redirected in a similar
manner.
Original comment by adkilgore
on 18 May 2010 at 1:16
Another thing about this that I thought was strange, is that it only happens
when one
is in stack mode, max mode does not produce the same result for me. If this
were a
pidgin issue, I would think that it would manifest itself in either situation,
as
well as in DWM and other window managers.
Original comment by adkilgore
on 18 May 2010 at 1:57
The focus is redirected fast, sure, but the contact list window is still under
the
mouse pointer to receive the ButtonRelease. It wouldn't happen with wmii in
floating
mode.
Original comment by maglion...@gmail.com
on 18 May 2010 at 6:47
Ah, thank you for your explanation, well, I am also able to reproduce this in
max
mode, contrary to what I stated before, but the one last question I had about
it is
that DWM has a mode where you can view one window at a time, sort of like max
mode in
wmii, i guess, you can enter it with alt+M, and I tried that and cannot seem to
reproduce this problem there, is there a possible explanation for that?
Also, thank you Kris for all of the fast responses and the work you have done
on wmii.
Original comment by adkilgore
on 18 May 2010 at 10:00
I've tested this, and I think the issue, in Pidgin's case, is the window being
unmapped before the last ButtonRelease event is received. When it's simply
obstructed, but not unmapped, it doesn't happen. dwm never unmaps windows, which
would explain why it doesn't happen there.
Original comment by maglion...@gmail.com
on 22 May 2010 at 2:42
This issue was closed by revision f9c228ff08.
Original comment by maglion...@gmail.com
on 22 May 2010 at 2:52
Thanks for all of the help. With all of this said, I guess the underlying issue
is
with either Pidgin or GTK then?
I had reported this bug to the Pidgin folks earlier, hopefully they will be
able to
come up with something (nothing yet, though) here is the ticket, in case anyone
is
interested, I pointed them here, as well
http://developer.pidgin.im/ticket/11942
Original comment by adkilgore
on 22 May 2010 at 3:17
I found another way to reproduce this in another GTK application, in Firefox,
you can
reproduce it by holding down the scroll button with the mouse, and at the same
time,
make some popup window open (however you want to do that, for me, I got an IM,
but
you can just press mod+enter to open an xterm), so that it covers firefox, when
you
switch back to firefox, it never gets the mouse release event. Does this
indicate
that this sort of thing is something that should be handled in GTK?
Original comment by adkilgore
on 5 Jun 2010 at 9:51
Also, If i were to report this on the GTK tracker, is a good way to summarize
this
issue, that "mouse release events are not received when gtk windows are unmapped
during a mouse event"?
Original comment by adkilgore
on 5 Jun 2010 at 10:20
As you can see, this issue did not get any attention on the Pidgin bug tracker,
probably because its a bit of an odd one. I was wondering why wmii unmaps
windows when it switches between them in a stack. If I am analyzing this
correctly, this behavior breaks some other random things like apps dealing with
minimization to the tray. Take, for example, the FireTray addon, which detects
a "minimization" when you switch away from the app in stack mode. Is there a
reason that wmii does this?
Original comment by adkilgore
on 17 Feb 2011 at 3:58
I posted a patch that I wrote that seems to fix and/or work around the Pidgin
issue on the ticket in case anyone is interested.
http://developer.pidgin.im/ticket/11942
Original comment by adkilgore
on 3 Apr 2011 at 11:27
Original issue reported on code.google.com by
adkilgore
on 17 May 2010 at 10:11Attachments: