Tracking down an issue in vim I concluded that screen5.0.1 swaps osc1,2 - meaning icon is set as title and vice versa.
$ xterm -e bash --norc --noprofile # NOTE: screen -T is ignored here so forced with env. xhost +local:root; $ podman run --rm -it --env DISPLAY="$DISPLAY" --env TERM=xterm --env WINDOWID="$WINDOWID" --net host debian:testing /bin/sh -c 'apt-get update && apt-get install -y vim-gtk3 screen strace x11-utils bash xclip && exec screen env TERM=screen.xterm-256color /bin/bash --norc --noprofile'; xhost -local:root # inside container ... $ screen --version # Screen version 5.0.1 (build on 2026-06-17 12:06:15) $ echo "$TERM" # screen.xterm-256color $ printf '\e]2;OUTER_TITLE\a\e]1;OUTER_ICON\a' $ xprop -id "$WINDOWID" WM_NAME WM_ICON_NAME _NET_WM_NAME _NET_WM_ICON_NAME WM_NAME(STRING) = "OUTER_ICON" # incorrect WM_ICON_NAME(STRING) = "OUTER_TITLE" # incorrect _NET_WM_NAME(UTF8_STRING) = "OUTER_ICON" # incorrect _NET_WM_ICON_NAME(UTF8_STRING) = "OUTER_TITLE" # incorrect # These should be reversed Regards Christoffer Aasted
