[Wayland-bugs] [Bug 782183] wayland: new window momentarily displays on wrong monitor

mutter (GNOME Bugzilla) bugzilla at gnome.org
Tue May 9 14:51:28 UTC 2017


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

--- Comment #5 from Olivier Fourdan <ofourdan at redhat.com> ---
What happens (it seems) is that the window is first moved to a "wrong" location
where it shows and when the set_maximized() is received, it gets moved to the
"active" monitor which in Wayland happens to be the onw with the pointer.

What places the window at the wrong position initially is the initial
apply_pending_state() which places the surface at (-26,-23) (the shadows
offset):

#0  meta_window_actor_sync_actor_geometry ()
    at mutter/src/compositor/meta-window-actor.c:1270
#1  meta_compositor_sync_window_geometry ()
    at mutter/src/compositor/compositor.c:1018
#2  meta_window_move_resize_internal ()
    at mutter/src/core/window.c:3743
#3  meta_window_wayland_move_resize ()
    at mutter/src/wayland/meta-window-wayland.c:683
#4  xdg_toplevel_role_commit ()
    at mutter/src/wayland/meta-wayland-xdg-shell.c:637
#5  meta_wayland_surface_role_commit ()
    at mutter/src/wayland/meta-wayland-surface.c:1928
#6  apply_pending_state ()
    at mutter/src/wayland/meta-wayland-surface.c:826
#7  ffi_call_unix64 ()
    at ../src/x86/unix64.S:76
#8  ffi_call ()
    at ../src/x86/ffi64.c:525
#9  0x00007fffee67344a in wl_closure_invoke ()
    at src/connection.c:935
#10 wl_client_connection_data ()
    at src/wayland-server.c:406
#11 wl_event_loop_dispatch ()
    at src/event-loop.c:423
#12 wayland_event_source_dispatch ()
    at mutter/src/wayland/meta-wayland.c:80
#13 g_main_dispatch ()
    at /glib/glib/gmain.c:3234
#14 g_main_context_dispatch ()
    at /glib/glib/gmain.c:3899
#15 g_main_context_iterate ()
    at /glib/glib/gmain.c:3972
#16 g_main_loop_run (loop=0x868a20) at /glib/glib/gmain.c:4168
#17 meta_run ()
    at mutter/src/core/main.c:646
#18 main ()
    at mutter/src/core/mutter.c:85
(gdb) cont

Then the animation is played from that "wrong" location and the window is
finally showed at its final location on the "other" monitor.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-bugs/attachments/20170509/9508f841/attachment-0001.html>


More information about the wayland-bugs mailing list