vim-markdown-preview icon indicating copy to clipboard operation
vim-markdown-preview copied to clipboard

xdotool windowactivate does not work in xmonad window manager

Open shubhamshuklaer opened this issue 9 years ago • 3 comments

You can place this info somewhere for people facing the same problem

For xmonad window manager xdotool windowactivate gives error

Your windowmanager claims not to support _NET_ACTIVE_WINDOW, so the attempt to activate the window was aborted.

The solution is to use XMonad.Hooks.EwmhDesktops in your xmonad configuration file.

Useful links https://mail.haskell.org/pipermail/xmonad/2008-November/006770.html https://mail.haskell.org/pipermail/xmonad/2008-November/006773.html http://xmonad.org/xmonad-docs/xmonad-contrib/XMonad-Hooks-EwmhDesktops.html http://www.ohspite.net/posts/keepass-global-autotype-in-xmonad/

shubhamshuklaer avatar Apr 15 '16 17:04 shubhamshuklaer

By default there is no error message, so it just seems like that the plugin is not working. I couldn't find a better place to document it, so I put it here. Maybe someone else can put it at its correct place.

shubhamshuklaer avatar Apr 15 '16 18:04 shubhamshuklaer

I think it will be enough to write that EWMH(extended window manager hints) is needed for the plugin. People can find how to enable EWMH in xmonad on google.

shubhamshuklaer avatar Apr 16 '16 02:04 shubhamshuklaer

I noticed that i3 has similar limitations. xdotool windowactivate only works if the windows (vim and browser) are opened on the same hierarchical level (e.g. side-by-side).

pylipp avatar Aug 29 '17 12:08 pylipp