[Gambas-user] x11.DesktopWindow.Desktop and MATE
bsteers4 at gmail.com
Sun Oct 23 16:56:07 CEST 2022
On Sun, 23 Oct 2022 at 15:01, Benoit Minisini <
benoit.minisini at gambas-basic.org> wrote:
> Le 23/10/2022 à 15:35, Bruce Steers a écrit :
> > trying to help a user with workspace switching and i discovered
> > https://forum.gambas.one/viewtopic.php?p=6182#p6182
> > <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
> > ----[ 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.
> Benoît Minisini.
Okay Ben no worries I figured as much :)
the above code seems to be working on mate,cinnamon,gnome and lxde (i've
not tested any others)
I'll work around things if needed.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the User