public static boolean xMoveOrResizeWindow( Window window, int x, int y, int direction ) {
		System.out.println( "---- move or resize window: " + x + "," + y );
		return sendEvent( window,
			"_NET_WM_MOVERESIZE",
			x,
			y,
			direction,
			X11.Button1,		// left mouse button
			1 );				// source indication
	}
Send _NET_WM_MOVERESIZE to window to initiate moving or resizing.

Warning: Although the implementation of this method is (nearly) identical
         to the C++ implementation, this one does not work correctly.
         DO NOT USE.

https://specifications.freedesktop.org/wm-spec/wm-spec-latest.html#idm45446104441728
https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gdk/x11/gdksurface-x11.c#L3841-3881
flatlaf-natives/flatlaf-natives-jna/src/main/java/com/formdev/flatlaf/natives/jna/linux/X11WmUtils.java