[Gambas-user] Test Screen.Available values

Bruce Steers bsteers4 at gmail.com
Wed May 17 12:39:51 CEST 2023


On Wed, 17 May 2023, 11:23 Mayost Sharon, <sharon at 455.co.il> wrote:

> Hello
>
> Maybe I didn't understand you
>
> 1. Desktop.Count returns me 3
> 2. I checked your project and it works well for me with 3 desktops
> When I give it a time of 15 seconds and then I switch to the second or
> third desktop and it captures the screen of the desktop well
>

Yes with compiz I only get Desktop.Count 1 even though I have 6 workspaces
because gambas only supports one method (as explained in the other post).

And it's possibly the reason I'm getting this screen dimension error too.

BruceS.



> ---------- Original Message -----------
> From: Bruce Steers <bsteers4 at gmail.com>
> To: Gambas Mailing List <user at lists.gambas-basic.org>
> Sent: Wed, 17 May 2023 11:07:58 +0100
> Subject: Re: [Gambas-user] Test Screen.Available values
>
> > On Wed, 17 May 2023, 09:35 Mayost Sharon, <sharon at 455.co.il> wrote:
> >
> > > Hello
> > >
> > > For me it's the pig
> > > so:
> > > _NET_WORKAREA(CARDINAL) = 0, 32, 1920, 1048, 0, 32, 1920, 1048, 0, 32,
> > > 1920, 1048, 0, 32, 1920, 1048
> > >
> > > Is it because I have 3 desktops?
> > >
> >
> > Yes.
> > I use compiz and it only defines one desktop.
> > Gambas does not support this method at all Desktop.Count only ever shows
> 1
> > even though I have 6. I submitted a merge request to add virtual desktop
> > method too many moons ago but got no interest.
> >
> > It's because compiz workspaces method  uses one large desktop screen and
> > splits it into segments
> > Other wms use multiple desktops and so you get multiple results from the
> > workarea property and also gambas Desktop.Count and other functions work
> as
> > expected.
> > My workarea only shows for the one single view screen because of compiz.
> >
> > BruceS
> >
> > > ---------- Original Message -----------
> > > From: Bruce Steers <bsteers4 at gmail.com>
> > > To: Gambas Mailing List <user at lists.gambas-basic.org>
> > > Sent: Wed, 17 May 2023 08:24:31 +0100
> > > Subject: Re: [Gambas-user] Test Screen.Available values
> > >
> > > > On Tue, 16 May 2023 at 19:16, Benoit Minisini <
> > > > benoit.minisini at gambas-basic.org> wrote:
> > > >
> > > > > Le 16/05/2023 à 19:57, Bruce Steers a écrit :
> > > > > >
> > > > > >
> > > > > > Thank you Bruce, Benoit, Mayost
> > > > > > So i guess with all that the best way to add / use a feature like
> > > this
> > > > > > would be to just add a disclaimer that it may or may not work
> > > depending
> > > > > > on the system.
> > > > > >
> > > > > > Respects
> > > > > > BruceS
> > > > > >
> > > > >
> > > > > As explained in the Qt comment, you can use the 'xprop'
> command-line
> > > > > tool to read the X11 properties of the root window and look if
> there is
> > > > > a '_NET_WORKAREA' property and show us what it contains.
> > > > >
> > > > > --
> > > > > Benoît Minisini.
> > > > >
> > > > mine is this...
> > > >
> > > > $ xprop -root _NET_WORKAREA
> > > > _NET_WORKAREA(CARDINAL) = 0, 25, 2646, 999
> > > >
> > > > And that's annoying as that is the entire screen (both monitors) but
> > > > there's only panels on one :-\
> > > >
> > > > Respects
> > > > BruceS
> > > ------- End of Original Message -------
> > >
> > >
> > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
> > >
> ------- End of Original Message -------
>
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20230517/5be7b0d0/attachment.htm>


More information about the User mailing list