Godot Version
4.5.1
Question
I’m making a sort of desktop idler.
Due to the drawbacks of mouse_passthrough and mouse_passthrough_polygon (mainly that you can only have one polygon), I have opted to try and make this game in a way where each major element exists inside it’s own window, sized to the element as to let mouse clicks around the elements go to whatever is behind the game.
I have successfully created a system where I can create windows for each element (I am sharing the world_2d from the main window with the secondary windows, and using Camera2d for each window to position over the element of choice), but I have one major issue: The main window is the only window that will accept input.
For this demo, I have disabled borderless/transparent so you can see what’s happening.
Notice that even though the secondary windows go into focus with mouse clicks, the elements inside those windows do not work, yet when the main window is resized to include those elements, the mouse clicks are registered.
I have tried a handful of things, including enabling mouse_passthrough on the secondary windows, forcing focus using grab_focus(), and some others, but I am at a standstill.
Any help is much appreciated!