[Wayland-bugs] [Bug 748892] wayland: focus issue with gnome-terminal

gtk+ (GNOME Bugzilla) bugzilla at gnome.org
Fri May 22 07:15:12 PDT 2015


https://bugzilla.gnome.org/show_bug.cgi?id=748892

--- Comment #5 from Olivier Fourdan <ofourdan at redhat.com> ---
Yet I fail to come up with a simple reproducer using gtk+ alone, not I can find
any other app that exhibit the same behaviour so maybe it's g-t triggering that
bug in gtk but I still don't know how...

Using GDK_DEBUG on gnome-terminal-server, I can see the following:

1. Open the first window

| Gdk-Message: focus in, device 0xed0190 surface 0x1364150

First message, surface 0x1364150 is the first window, focus is as expected.

2. Open the menu, File -> Open Terminal -> Default

A few focus-in/focus-out events occur (expected, because of multiple menus):

| Gdk-Message: focus out, device 0xed0190 surface (nil)
| Gdk-Message: focus in, device 0xed0190 surface 0x13c57e0
| Gdk-Message: focus out, device 0xed0190 surface (nil)
| Gdk-Message: focus in, device 0xed0190 surface 0x1472540
| Gdk-Message: focus in, device 0xed0190 surface 0x1364150
| Gdk-Message: focus out, device 0xed0190 surface (nil)
| Gdk-Message: focus in, device 0xed0190 surface 0x15ef2a0

3. At this point here, the new terminal is now opened and mapped, looks like it
has focus, the logs seem to correlate that observation (now "focus in surface
0x15ef2a0", original surface was 0x1364150)

Yet when typing, it still goes to the original window/surface.

4. Open a menu in the (new) second window, and just discard the menu:

| Gdk-Message: focus out, device 0xed0190 surface (nil)
| Gdk-Message: focus in, device 0xed0190 surface 0x1604bd0
| Gdk-Message: focus in, device 0xed0190 surface 0x15ef2a0

Now, focus-in is again on the surface 0x15ef2a0 but this time it works...
typing goes to the right (second) window being focused.

So it looks like gdkwindow-wayland is updating the surface as expected, yet
keys do not go to the correct window the first time.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-bugs/attachments/20150522/0863fa58/attachment.html>


More information about the wayland-bugs mailing list