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

--- Comment #23 from Jonas Ã…dahl <jad...@gmail.com> ---
(In reply to Olivier Fourdan from comment #22)
> Yes, I would agree, but it's a bit difficult to do that in the Wayland
> backend (i.e. not in core) because meta_window_unmaximize() restores the old
> size/position and also does the meta_window_move_resize_internal().
> 
> Besides, the size which would be needed to compute the new placement is only
> known when the clients has updated it following the xdg_surface.configure
> with size 0x0

True. The placement would have to be done at the unmaximize ack_configure
commit when the size is known. I guess one problem with the current patches is
that the placement will assume the window is 1x1 (right?), so the saved
position might be very bad.

For example, if there is a small space to the right of screen, mutter would be
clever and position the window over here since it'll fit just fine. But then
when actually showing the unmaximized window, it'll be positioned mostly
outside of the screen. (disclaimer, I haven't checked if this is the case).

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
wayland-bugs mailing list
wayland-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/wayland-bugs

Reply via email to