skx / kpie

Simple devilspie-like program for window manipulation, with Lua.
GNU General Public License v2.0
80 stars 13 forks source link

focus() doesn't seem to work #13

Closed cedardocster closed 9 years ago

cedardocster commented 9 years ago

if ( string.find( window_title(), "web search", 1, true ) ) then center() above() focus() end

this centers and brings above, but I can't type in the window until I click the window

(using Ubuntu 14.04 Mate edition)

skx commented 9 years ago

We use the wnck_window_activate() function for which the documantion says:

Asks the window manager to make window the active window. The window manager may choose to raise window along with focusing it, and may decide to refuse the request (to not steal the focus if there is a more recent user activity, for example).

I suspect this means that there is little I can do about the problem.

skx commented 9 years ago

I guess this is the same as #12.

cedardocster commented 9 years ago

Yup, thanks :)