start_drag() function on Window not working

Godot Version

Godot 4.7.2

Question

Hello! I’m trying to make a desktop companion game, similar to something like Desktop Defender or Ropuka’s Idle Island. I want the player to be able to right-click anywhere inside the window to start dragging it, but calling the built-in start_drag() function doesn’t seem to work. Here is my code thus far:

class_name WindowManager extends Node

var window: Window

func _ready() -> void:
	window = get_window()

func _input(event: InputEvent) -> void:
	if event.is_action_pressed("right_click"):
		window.start_drag()

This script is attached to a default node inside my main scene. I’ve confirmed that the input is received, since replacing start_drag() with print(“drag”) will print a message. Also, sometimes the cursor will turn into a cross arrow for a split second, but this is inconsistent.

I’m on Linux Mint, is this an OS issue? Or is there something else I’m missing?