[Gambas-user] x11.DesktopWindow.Desktop and MATE
Bruce Steers
bsteers4 at gmail.com
Sun Oct 23 15:35:58 CEST 2022
trying to help a user with workspace switching and i discovered something.
https://forum.gambas.one/viewtopic.php?p=6182#p6182
i found setting X11.DesktopWindow.Desktop did not work to move to another
workspace but using DesktopWindow.Move() did on MATE desktop.
then i found using DesktopWindow.Move was not working on gnome or cinnamon
but using DesktopWindow.Desktop did !
so i've had to use this..
Dim xw As DesktopWindow = New DesktopWindow(Me.Handle)
Select Direction
Case Move_Right
If Desktop.Type = "MATE" Then xw.Move(Screen.Width + Me.X, Me.Top)
Else xw.Desktop += 1
Case Move_Left
If Desktop.Type = "MATE" Then xw.Move(0 - Screen.Width + Me.X, Me.Top)
Else xw.Desktop = Max(xw.Desktop - 1, 0)
End Select
Is it a bug to report or can it be expected to behave different on the
various desktops?
Respects
BruceS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20221023/d66a22a6/attachment.htm>
More information about the User
mailing list