getCurrentDesktop doesn’t return the app drawer in the app drawer. Is this intended?

getCurrentDesktop doesn’t return the app drawer in the app drawer. Is this intended?

]]>

3 Commentsto getCurrentDesktop doesn’t return the app drawer in the app drawer. Is this intended?

  1. Anonymous says:

    < ![CDATA[

    LL.getContainerById(99).getType() returns “Container” and when accessing the desktop settings while in the app drawer it opens the desktop ones.


    So I think it is.

    ]]>

  2. Anonymous says:

    < ![CDATA[

    This is unfortunate. This breaks scripts which normally would run fine in the appdrawer, even if they are intended for use on a desktop (like my DimBackground script).

    ]]>

  3. Anonymous says:

    < ![CDATA[

    Yes this is intended, the purpose is to get the currently “selected” desktop, the one which will be displayed when you come back to the launcher.


    Depending on the script, I think the LL.getEvent().getContainer() may be more suited to retrieve the top level container. But again, it depends on the script.


    Following the parent containers until there is no parent should also provide the correct container. A possible alternative would be to look at the class of LL.getContext(), and based on this either use getCurrentDesktop or getContainerById (same for lockscreen)

    ]]>

Leave a Reply

Your email address will not be published. Required fields are marked *