Re: [dev] xid of a current window

From: Benjamin R. Haskell <suckless_AT_benizi.com>
Date: Sun, 25 Mar 2012 12:57:35 -0400 (EDT)

On Sun, 25 Mar 2012, Swiatoslaw Gal wrote:

> ---------- From Ivan Kanakarakis 25-03-2012 at 15:20 ----------
>> $ xdotool getactivewindow
> XGetWindowProperty[_NET_ACTIVE_WINDOW] failed (code=1)
> xdo_get_active_window reported an error

You could use the focused window instead (which was what you originally
asked about):

$ xdotool getwindowfocus
48234505

dwm doesn't (or didn't? - depending on today's patches) set
_NET_ACTIVE_WINDOW, but there's still a focused window.

-- 
Best,
Ben
Received on Sun Mar 25 2012 - 18:57:35 CEST

This archive was generated by hypermail 2.3.0 : Sun Mar 25 2012 - 19:00:06 CEST