Moving a borderless window with wayland
Posted
#1
(In Topic #1579)
Guru

Previous code made to move a window would no longer work.
For example lets say i have a panel pnlMove on my form that when left mouse is pressed and dragged the window moves with the mouse.
The code to move the window might be like this..
But now there is a new way (Since gambas 3.21) with Window.StartMove method. /comp/gb.qt4/window/startmove - Gambas Documentation
It works like when you right click a Taskbar item and select move.
The following code will move the window while you hold the mouse on pnlMove then stop the move when mouse is released…
This allows a borderless window with no title bar to be moved around the screen with the mouse, even on wayland.
Still no way to manually set the position by code on program startup but at least there's now a way to move borderless widows with a mouse.
1 guest and 0 members have just viewed this.



