Window (gb.gtk)
This class implements a window.
Constantes
Propiedades
Inherited properties
Métodos
Inherited methods
Eventos
Inherited events
Wayland Warning...
Properties/function/events related to positioning like Form.X, Form.Y, Form.Move() function, Form_Move() event will not work as expected or give correct information with wayland.
Gambas cannot see the main top level window (desktop screen) with wayland.
With wayland the compositor provides a window space the size of your window but it controls the positioning and sandboxes the application inside. the gambas applications main Form is then all that can be seen as the top level window.
This causes problems with Form_Move() events and getting/setting positions will not work as expected as nothing relates to the underlying screen size just the compositors provided space (Form.X and Form.X remain the same regardless of where you place the form on the desktop)
A Form can only be moved reliably by code with wayland if it is opened within it's own larger parent workspace.
There is nothing gambas can do about this, the Wayland developers insist we do not need to control window positions, the compositor should know best, and they will not provide any means to do so.
See also