nonameentername / wmii

Automatically exported from code.google.com/p/wmii
MIT License
0 stars 0 forks source link

_NET_ACTIVE_WINDOW is not available #266

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
* What steps will reproduce the problem?
1. Start a wmii session
2. Try to obtain the active window
2a) With "xprop|grep _NET_ACTIVE_WINDOW" (appears in the supported list but 
there isn't an entry with the active window id
2b) With "xdotool getactivewindow", returns:
XGetWindowProperty[_NET_ACTIVE_WINDOW] failed (code=1)
xdo_get_active_window reported an error

* What is the expected result? What do you see instead?

In both cases I would expect to get the ID of the active windows.

* What version of the product are you using (wmii -v)? On what operating system 
(uname -a)?

OS: RHEL 6.5, x86_64
$ uname -a
Linux oc1555404447 2.6.32-431.17.1.el6.x86_64 #1 SMP Fri Apr 11 17:27:00 EDT 
2014 x86_64 x86_64 x86_64 GNU/Linux

$ wmii -v
wmii-3.9.2, ©2010 Kris Maglione

$ ldd /usr/local/bin/wmii
    linux-vdso.so.1 =>  (0x00007fff8891e000)
    libXft.so.2 => /usr/lib64/libXft.so.2 (0x00000035a4a00000)
    libXext.so.6 => /usr/lib64/libXext.so.6 (0x000000359e200000)
    libXrandr.so.2 => /usr/lib64/libXrandr.so.2 (0x000000359fe00000)
    libXrender.so.1 => /usr/lib64/libXrender.so.1 (0x00000035a0200000)
    libX11.so.6 => /usr/lib64/libX11.so.6 (0x000000359d200000)
    libXinerama.so.1 => /usr/lib64/libXinerama.so.1 (0x00000035a1200000)
    libm.so.6 => /lib64/libm.so.6 (0x000000359a200000)
    libc.so.6 => /lib64/libc.so.6 (0x0000003599e00000)
    libfontconfig.so.1 => /usr/lib64/libfontconfig.so.1 (0x000000359f600000)
    libfreetype.so.6 => /usr/lib64/libfreetype.so.6 (0x000000359ea00000)
    libxcb.so.1 => /usr/lib64/libxcb.so.1 (0x000000359da00000)
    libdl.so.2 => /lib64/libdl.so.2 (0x000000359aa00000)
    /lib64/ld-linux-x86-64.so.2 (0x0000003599a00000)
    libexpat.so.1 => /lib64/libexpat.so.1 (0x000000359e600000)
    libXau.so.6 => /usr/lib64/libXau.so.6 (0x000000359d600000)

--

The objective is to be able to script additional features into my Emacs wmii-el 
script, including managing floating windows via keyboard. For some of this 
ideas having access to the active window is useful.

Original issue reported on code.google.com by fsmu...@gmail.com on 14 Jun 2014 at 4:57

GoogleCodeExporter commented 8 years ago
I'm attaching a patch (which although very simple is likely not ideal) that 
solves this issue by adding an extra changeproperty function that accepts xid 
and calling it dring client focus events, could at least be useful for others.

Original comment by fsmu...@gmail.com on 15 Jun 2014 at 9:37

Attachments: