[Gambas-user] x11.DesktopWindow.Desktop and MATE
benoit.minisini at gambas-basic.org
Sun Oct 23 16:00:13 CEST 2022
Le 23/10/2022 à 15:35, Bruce Steers a écrit :
> trying to help a user with workspace switching and i discovered something.
> 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?
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
The X11 window manager does what it wants. It does not necessarily
respect the protocols behind DesktopWindow.Move() and DesktopWindow.Window.
If you want a reliable X11 window manager, you can use the KDE window
manager for example.
More information about the User