Click passthrough only works in editor

Godot Version

godot 4.3

Question

hello,i have a transparent app that has clickthrough, and it almost works, but i can only click on things in the godot editor, nothing else. even when built. if i try to interact with window ui or my browser or anything other than the godot editor it doesnt do anyrhing.

heres my code

extends Node2D

@onready var icon = $Icon


# Called when the node enters the scene tree for the first time.
func _ready():
	# Set bg transparent.
	get_tree().get_root().set_transparent_background(true)

# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
	set_passthrough(icon)
	#icon.position = get_global_mouse_position()

func set_passthrough(sprite: Sprite2D):
	var texture_center: Vector2 = sprite.texture.get_size() / 2
	var texture_corners: PackedVector2Array = [
		sprite.global_position + texture_center * Vector2(-0, -0), 
		sprite.global_position + texture_center * Vector2(0, -0), # all zero because i need to click everywhere
		sprite.global_position + texture_center * Vector2(0 , 0), 
		sprite.global_position + texture_center * Vector2(-0 ,0)
	]

	DisplayServer.window_set_mouse_passthrough(texture_corners)

does anyone know how to fix this? i need an answer as soon as possible