Issue 417 in xmonad: managehook use focused window to work on

Status: New Owner: ---- New issue 417 by alsergbox: managehook use focused window to work on http://code.google.com/p/xmonad/issues/detail?id=417 What steps will reproduce the problem? 1. Add to myManageHook , title =? "xmessage" --> doF (W.shift "2" ) , title =? "xmessage" --> doF (W.shift "2" ) 2. Restart xmonad 3. Spawn terminal on workspace "1" 4. Run there xmessage 'Here I am!' 5. Go to workspace "2" What is the expected output? What do you see instead? Expected terminal's window on workspace "1" and xmessage's on "2". Instead — both on "2". What version of the product are you using? On what operating system? xmonad 0.9.1 Debian Please provide any additional information below.

Updates: Status: Invalid Comment #1 on issue 417 by vogt.adam: managehook use focused window to work on http://code.google.com/p/xmonad/issues/detail?id=417 The queries (title =? "xmessage") are run on the new window that triggered the manageHook to be run. So both lines match. The first (W.shift "2") moves the xmessage, and the next one moves your terminal. Get rid of one of your duplicate lines. You may be interested in XMonad.Hooks.ManageHelpers if you have cases that more subtly match multiple manageHooks.
participants (1)
-
codesite-noreply@google.com