[RFC weston] xwm: update override-redirect surface's position upon configure_notify

2017-06-27 Thread Ilia Bozhinov
When we receive configure_notify we should update the surface's position by calling xwayland_api->set_xwayland(). Otherwise some surfaces like dnd surfaces from xwayland views are "stuck" at one place. When setting XWAYLAND state though we should always call view_set_position(), not just the first

[RFC weston v2 2/2] xwayland: support programmatically maximizing views

2017-06-27 Thread Ilia Bozhinov
Currently the xwayland implementation of desktop surfaces doesn't do anything when weston_desktop_surface_set_maximized/fullscreen() is called. In order to support this, we have to add xwayland internal interfaces for sending those requests to the xwayland window and call them when needed. Signed-

[RFC weston v2 1/2] xwayland: make maximized state a flag for toplevel surfaces

2017-06-27 Thread Ilia Bozhinov
Currently xwayland desktop surfaces have multiple states for toplevel surfaces - MAXIMIZED/FULLSCREEN/TOPLEVEL. With this change all "toplevel" surfaces are marked as TOPLEVEL state and maximized/fullscreen are boolean flags, just like they are in xdg-shell. This way maximized state isn't lost when