I'm having trouble drawing a window from my extension

I want to draw a window on top of everything else. I’ve spend 8 hours reading the source code from the gjs repository and some extension repository but I still have not figured it out. Can you please point me to the right direction?

Hello, not sure if this helps but the basic idea is that you will have to create a Clutter.Actor. There are many different types of actors for different situations, if you just want to draw some shapes you can use a St.DrawingArea.

There are a few ways to get it to display on top of the screen, but the easiest may be to do something like this:


Then you probably want to make sure to call layoutManager.removeChrome(actor); later.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.