Index: /applications/editors/josm/plugins/wmsplugin/build.xml
===================================================================
--- /applications/editors/josm/plugins/wmsplugin/build.xml	(revision 13583)
+++ /applications/editors/josm/plugins/wmsplugin/build.xml	(revision 13584)
@@ -37,5 +37,5 @@
                 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
                 <attribute name="Plugin-Description" value="Allows external WMS resources to be displayed." />
-                <attribute name="Plugin-Mainversion" value="1180" />
+                <attribute name="Plugin-Mainversion" value="1379" />
             </manifest>
         </jar>
Index: /applications/editors/josm/plugins/wmsplugin/src/wmsplugin/WMSAdjustAction.java
===================================================================
--- /applications/editors/josm/plugins/wmsplugin/src/wmsplugin/WMSAdjustAction.java	(revision 13583)
+++ /applications/editors/josm/plugins/wmsplugin/src/wmsplugin/WMSAdjustAction.java	(revision 13584)
@@ -17,5 +17,5 @@
 
 public class WMSAdjustAction extends MapMode implements
-        MouseListener, MouseMotionListener{
+    MouseListener, MouseMotionListener{
 
     GeorefImage selectedImage;
@@ -26,5 +26,5 @@
     public WMSAdjustAction(MapFrame mapFrame) {
         super(tr("Adjust WMS"), "adjustwms", 
-                        tr("Adjust the position of the WMS layer"), mapFrame, 
+                        tr("Adjust the position of the selected WMS layer"), mapFrame, 
                         ImageProvider.getCursor("normal", "move"));
     }
@@ -45,14 +45,13 @@
         if (e.getButton() != MouseEvent.BUTTON1)
             return;
-
-         for(Layer layer:Main.map.mapView.getAllLayers()) {
-            if (layer.visible && layer instanceof WMSLayer) {
-                prevEastNorth=Main.map.mapView.getEastNorth(e.getX(),e.getY());
-                selectedLayer = ((WMSLayer)layer);
-                selectedImage = selectedLayer.findImage(prevEastNorth);
-                if(selectedImage!=null){
-                    Main.map.mapView.setCursor
-                        (Cursor.getPredefinedCursor(Cursor.MOVE_CURSOR));
-                }
+        
+        Layer layer=Main.map.mapView.getActiveLayer();
+        if (layer.visible && layer instanceof WMSLayer) {
+            prevEastNorth=Main.map.mapView.getEastNorth(e.getX(),e.getY());
+            selectedLayer = ((WMSLayer)layer);
+            selectedImage = selectedLayer.findImage(prevEastNorth);
+            if(selectedImage!=null) {
+                Main.map.mapView.setCursor
+                    (Cursor.getPredefinedCursor(Cursor.MOVE_CURSOR));
             }
         }
@@ -60,14 +59,11 @@
 
     @Override public void mouseDragged(MouseEvent e) {
-            /*
-        if (e.getButton() != MouseEvent.BUTTON1)
-            return;
-            */
-
         if(selectedImage!=null) {
             EastNorth eastNorth=
                     Main.map.mapView.getEastNorth(e.getX(),e.getY());
-                selectedLayer.displace(eastNorth.east()-prevEastNorth.east(), 
-                eastNorth.north()-prevEastNorth.north());
+            selectedLayer.displace(
+                eastNorth.east()-prevEastNorth.east(), 
+                eastNorth.north()-prevEastNorth.north()
+            );
             prevEastNorth = eastNorth;
             Main.map.mapView.repaint();
@@ -92,3 +88,9 @@
     @Override public void mouseClicked(MouseEvent e) {
     }
+    
+    // This only makes the buttons look disabled, but since no keyboard shortcut is
+    // provided there aren't any other means to activate this tool
+    @Override public boolean layerIsSupported(Layer l) {
+        return (l instanceof WMSLayer) && l.visible;
+    }
 }
