Path: ...!weretis.net!feeder6.news.weretis.net!feeder8.news.weretis.net!news.imp.ch!news.alphanet.ch!alphanet.ch!.POSTED.localhost!not-for-mail From: Marc SCHAEFER Newsgroups: fr.comp.applications.x11 Subject: Re: [X11] Qui =?ISO-8859-1?Q?contr=F4le?= quoi Date: Thu, 4 Nov 2021 07:09:44 -0000 (UTC) Organization: Posted through ALPHANET Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Injection-Date: Thu, 4 Nov 2021 07:09:44 -0000 (UTC) Injection-Info: shakotay.alphanet.ch; posting-host="localhost:127.0.0.1"; logging-data="30304"; mail-complaints-to="usenet@alphanet.ch" User-Agent: tin/2.4.3-20181224 ("Glen Mhor") (UNIX) (Linux/4.19.0-18-amd64 (x86_64)) Cancel-Lock: sha256:ksT4UYupODRzz1+Sc53p6Qd/8GzcWqOafVg3JwYnoWU= Bytes: 1845 Lines: 14 Marc SCHAEFER wrote: > Jo Engo wrote: >> $ xdotool getwindowfocus # ne me laisse pas choisir la fenêtre et me > > bizarre, j'ai dû me brouter hier en essayant; désolé. En fait c'était l'option selectwindow que j'avais essayé, je ne sais pas pourquoi j'ai écrit getwindowfocus. Mais cela ne donne pas le PID mais l'ID de la fenêtre pour X. D'ailleurs, le PID pourrait être sur une autre machine si le client X est distant (cas de figure assez rare aujourd'hui, toutefois). Mais cela ne change rien au fait que xprop remplit mieux cette tâche, semble-t-il.