martyr-deepin / deepin-terminal-gtk

DDE terminal emulator application
GNU General Public License v3.0
263 stars 57 forks source link

WINDOWID environment variable is not set #217

Open Lyle-Tafoya opened 4 years ago

Lyle-Tafoya commented 4 years ago

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?