[Gambas-user] desktop.x11.MoveWindow to another workspace segfault

Benoit Minisini benoit.minisini at gambas-basic.org
Sat Oct 22 00:44:53 CEST 2022


Le 21/10/2022 à 23:32, Bruce Steers a écrit :
> 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
> 

As usual, post a project that reproduces the bug.

Regards,

-- 
Benoît Minisini.



More information about the User mailing list