Issue 376 in xmonad: TwinView issues

Status: New Owner: ---- New issue 376 by dripstone.blendercn: TwinView issues http://code.google.com/p/xmonad/issues/detail?id=376 What steps will reproduce the problem? 1. Enable Nvidia TwinView 2. Put some windows on main screen, and some on another screen 3. Switch between different workspaces using mod 1, mod 2 ... What is the expected output? What do you see instead? It is easy to get windows messed up. A window which should show on main screen can jump to another screen. What version of the product are you using? On what operating system? 0.9 -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings

Updates: Status: Invalid Comment #1 on issue 376 by vogt.adam: TwinView issues http://code.google.com/p/xmonad/issues/detail?id=376 You are supposed to be able to have workspaces swap screens. This ensures that focus stays on the current screen. If you'd rather have the focus jump to the other screen when you try to view the other visible workspace, see here: http://haskell.org/haskellwiki/Xmonad/Frequently_asked_questions#Replacing_g... -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings

Comment #2 on issue 376 by daniel.wagner: TwinView issues http://code.google.com/p/xmonad/issues/detail?id=376 You may also like XMonad.Layout.IndependentScreens, which gives each screen its own set of workspaces. http://xmonad.org/xmonad-docs/xmonad-contrib/XMonad-Layout-IndependentScreen... -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings

Comment #3 on issue 376 by dripstone.blendercn: TwinView issues http://code.google.com/p/xmonad/issues/detail?id=376 Hi, I don't know what greedyView is, so I tried daniel.wagner's way. The code I used in xmonad.hs is: import XMonad.Layout.IndependentScreens ... ... ++ [ ("M" ++ m ++ ('-':k:[]) , windows $ onCurrentScreen f i) | (i, k) <- zip myWorkspaces ['1'..'0'] , (f, m) <- [(W.view, ""), (W.shift, "-S"), (copy, "-C-S")] It's not working. Suppose the focus is always on main screen. If I press mod 1, I have window A on main screen, and B,C on the other screen. Now if I press mod 2, I will have B,C on main screen, and D on the other screen. However, sometimes it works. For example, after I try mod n(random) for a couple of times, I press mod 1, A is on main screen, B,C on the other. When I press mod 2, A will be replaced by D. B,C remain on the other screen. -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings

Comment #4 on issue 376 by daniel.wagner: TwinView issues http://code.google.com/p/xmonad/issues/detail?id=376 You may need to log out and log back in to eliminate xmonad's stored state, which may be inconsistent with X.L.IndependentScreens' assumptions. -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings

Comment #5 on issue 376 by dripstone.blendercn: TwinView issues http://code.google.com/p/xmonad/issues/detail?id=376 Thanks, but restarting linux didn't solve the problem. -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings

Comment #6 on issue 376 by wirtwo...@gmail.com: TwinView issues http://code.google.com/p/xmonad/issues/detail?id=376 To the OP: ['1'..'0'] is the same as [] or "" so the bindings in comment three will not add or change any key bindings; try instead: | (i, k) <- zip myWorkspaces "1234567890" or | (i, k) <- zip myWorkspaces (['1'..'9'] ++ "0") -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings

Comment #7 on issue 376 by dripstone.blendercn: TwinView issues http://code.google.com/p/xmonad/issues/detail?id=376 Both methods didn't work. I am confused :) I have 9 workspaces: myWorkspaces = map (:[]) ['1' .. '9'] How can I map 10 shortcuts for them: | (i, k) <- zip myWorkspaces "1234567890" -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings

Comment #8 on issue 376 by evvsoft: TwinView issues http://code.google.com/p/xmonad/issues/detail?id=376 I try to do this, but key bindings not work (xmonad show very long error). May be because in my config: myWorkspaces = withScreens 2 ["main","firefox","im","music","video","wine","virtualbox","smth","smth2"] ??? At all, a can't unterstand, how IndependentScreens work :(

Comment #9 on issue 376 by ivan.miljenovic: TwinView issues http://code.google.com/p/xmonad/issues/detail?id=376 IIUC, IndependentScreens will use the same set of workspace names but duplicate them with one workspace of each name per screen.

Comment #10 on issue 376 by daniel.wagner: TwinView issues http://code.google.com/p/xmonad/issues/detail?id=376 @comment 8: I can help you debug/figure out what's going on. Attach an xmonad.hs here or ping dmwit on #xmonad.

Comment #11 on issue 376 by evvsoft: TwinView issues http://code.google.com/p/xmonad/issues/detail?id=376 To daniel.wagner: my xmonad.hs here: http://pastebin.com/2BxQ6ZcC If you can help - please! To ivan.miljenovic: i understand that, now i have 18 virtual desktops, but all 18 i can see in 1 monitor. I need hard linked 9 desktops to first monitor and another 9 - to second; when my cursor in first monitor, keys 1-9 changes desktops of first monitor, when in second - changes desktops of second.

Comment #12 on issue 376 by daniel.wagner: TwinView issues http://code.google.com/p/xmonad/issues/detail?id=376 evvsoft: I can't reproduce your description, "xmonad show very long error". The config you pasted seems to compile and execute to me. As for your keybindings, I suggest you take a look at the "Usage" section of the IndependentScreens documentation; in particular, it has some code that you should use to override the default keybindings for mod+1-9, and that you can mimic for any other workspace-changing keybindings you may have. You may also like to use the "unmarshall" function (or "unmarshallW" if you are using darcs) to pretty-print the workspace name in your layoutHook. (I believe there is a description of how to do this in the docs if you build them from the darcs version.) Let me know if you have any more questions or annoyances.

Comment #13 on issue 376 by evvsoft: TwinView issues http://code.google.com/p/xmonad/issues/detail?id=376 "As for your keybindings, I suggest you take a look at the "Usage" section of the IndependentScreens documentation; in particular, it has some code that you should use to override the default keybindings for mod+1-9, and that you can mimic for any other workspace-changing keybindings you may have." If i add that code to my config, xmonad show error. And I don't know how to change this code, because I don't know Haskell, all my config copy-pasted from the internet.

Comment #14 on issue 376 by daniel.wagner: TwinView issues http://code.google.com/p/xmonad/issues/detail?id=376 Hiya evvsoft, I've modified the lines from the Usage for you to use verbatim. Add these four lines (with the indentation given) to the end of xmonad.hs (assuming it's the same as the one you pasted before): `additionalKeysP` [("M-" ++ m ++ show k, windows $ onCurrentScreen f i) | (i, k) <- zip (workspaces defaultConfig) [1..9] , (f, m) <- [(W.greedyView, ""), (W.shift, "S-")]]

Comment #15 on issue 376 by evvsoft: TwinView issues http://code.google.com/p/xmonad/issues/detail?id=376 Thank you very-very much, it's work's! I tryid to add this, but use "++", not "`additionalKeysP`"!
participants (1)
-
codesite-noreply@google.com