XWINDOW to selected_window before passing it to window_internal_width.
Attach a file by drag & drop or click to upload