JamshedVesuna / vim-markdown-preview

A light Vim plugin for previewing markdown files in a browser - without leaving Vim.
577 stars 91 forks source link

xdotool windowactivate does not work in xmonad window manager #37

Open shubhamshuklaer opened 8 years ago

shubhamshuklaer commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

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.

pylipp commented 7 years ago

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).