[Gambas-user] desktop.x11.MoveWindow to another workspace segfault
Bruce Steers
bsteers4 at gmail.com
Fri Oct 21 23:32:41 CEST 2022
so i found a way to move windows to other workspaces using gb.desktop.x11
move window
the following code...
*Public Sub btn2_Click() Form2.Show Dim iActiv As Integer =
X11.ActiveWindow X11.MoveWindow(Form2.Id, Screen.W + 100, form2.Top)End*
that successfully moves a window to the workspace on the right.
Reason i'm posting is because if i do not use X11.ActiveWindow first then i
get a segfault 11
If i use X11.ActiveWindow in any way like above just putting it's value in
an unused variable then no segfault.
Respects
BruceS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20221021/0b6fcf24/attachment.htm>
More information about the User
mailing list