To me it sounds like the view is cloned. There are two steps to fixing your problem:
- Unclone the views and set them side by side.
- Learn how to move windows between desktops in xmonad and how to switch desktops.
To unclone, use xrandr to set different views for each monitor.
Open a console and type:
It should display something along the lines:
LVDS1 connected 1280x800+0+0 (normal left inverted right x axis y axis) 331mm x 207mm
800x600 60.3 56.2
VGA1 connected (normal left inverted right x axis y axis)
1024x768 60.0 + 85.0 75.1 70.1
1280x1024 75.0 60.0
1280x960 75.0 60.0
800x600 85.1 72.2 75.0 60.3 56.2
640x480 85.0 72.8 75.0 60.0
TV1 disconnected (normal left inverted right x axis y axis)
In my case LVDS1 is the laptop and VGA1 is a connected projector.
To set the projector left of the monitor use:
$xrandr --output VGA1 --auto --left-of LVDS1
This will use the default resolution for the projector (in this case 1024x768) and place the view left of the laptop screen.
To set a custom resolution use
$xrandr --output VGA1 --mode 1280x800 --left-of LVDS1
In your case it will be something along the lines:
$xrandr --output MONITOR2 --auto --left-of MONITOR1
The shortcuts for moving apps between desktops and switching desktops are
Mod Key + 1,2,3, - 9 for bringing the desktop to the monitor the mouse is on
Mod Key + SHIFT + 1,2,3, - 9 for sending the currently focused application to the particular desktop
The default Mod Key for xmonad is Alt but you can set it to the Windows key in order to free Alt for use in applications.