Getting pid and details for topmost window

前端 未结 9 1074
醉酒成梦
醉酒成梦 2020-12-04 13:08

Does anyone know how to get the PID of the top active window and then how to get the properties of the window using the PID? I mean properties like process name, program nam

9条回答
  •  孤城傲影
    2020-12-04 13:11

    Extracted the gist of xprop into https://github.com/mondalaci/current-window-linux

    Works but sometimes segfaults - needs to be fixed and cleaned up.

提交回复
热议问题