0

I'm trying to create a GNOME Shell extension and draw a window on the screen using GJS. I have referred to the gjs guide, the official API documentation, and the gnome shell js source code.

However, I don't understand how to draw a window because I'm not sure what the API methods return. Here is the code I've written so far for the stage:

var stage = new Clutter.Actor(
{
   name: "fancygnome-stage",
   opacity: 100,
   width: 1000,
   height: 1000,
   x: 0,
   y: 0,
});

I'm not sure where to use this stage and how to proceed from here. I expect to have a method to put the stage somewhere and then draw on it. I've been stuck on this for 8 hours, and I would appreciate any help or guidance on how to proceed.

Thanks in advance!

0 Answers0