I'm developing an application application which needs to be able to detect key release events from inside a terminal emulator. To do this, I need the X11 Window id of the terminal emulator my program is running inside. Most major terminal emulators (ie. xterm, urxvt, konsole, xfce4-terminal, mate-terminal, alacritty, etc...) set an environment variable WINDOWID to be used by developers like myself. There is an alternate way I can attempt to determine the Window id, but I find it to be highly unreliable because it relies on some assumptions that are not always true. Would you consider adding this feature?
I'm developing an application application which needs to be able to detect key release events from inside a terminal emulator. To do this, I need the X11 Window id of the terminal emulator my program is running inside. Most major terminal emulators (ie. xterm, urxvt, konsole, xfce4-terminal, mate-terminal, alacritty, etc...) set an environment variable WINDOWID to be used by developers like myself. There is an alternate way I can attempt to determine the Window id, but I find it to be highly unreliable because it relies on some assumptions that are not always true. Would you consider adding this feature?