[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Get ID of x-window

From: Johann Klammer
Subject: Re: Get ID of x-window
Date: Fri, 15 Aug 2014 10:52:04 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Icedove/24.5.0

On 08/14/2014 01:20 PM, Egmont Koblinger wrote:

$WINDOWID might be what you're looking for.

Note that whatever you do, it'll probably be an ugly hack that just
happens to work with your favorite terminal at a hardcoded font size.
E.g. how would your X app figure out the terminal's font size?

Also, keep in mind that there are terminals that have multiple tabs and
your one might not be the visible one (e.g. gnome-terminal -- also
beware that it's known in gnome-terminal that if you drag-n-drop a tab
to another gnome-terminal window then $WINDOWID becomes incorrect
because it can't be updated); there are terminals with split screen
feature (e.g. gnome terminator) and then how do you figure out the
offset; etc...


I believe this is very much what w3m-img does(the html browser) to render those image tags. And yes, there's mild differences between each of the common terminal emulators(not sure how they do it..).

(around line 696)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]