XWorkstation.st
changeset 5904 238059ebf678
parent 5903 1ae08cd914f6
child 5905 019e270dbce1
--- a/XWorkstation.st	Tue Apr 17 21:18:45 2012 +0200
+++ b/XWorkstation.st	Tue Apr 17 21:43:23 2012 +0200
@@ -8057,14 +8057,19 @@
 
     "JV@2012: On X11, mouse buttons are: left=1, middle=2, right=3
     Even on 2-button mouse (button 2 is simply not reported). 
-    Here the middle button is mapped to button 128 (which in EditTextView 
+    Here the middle button is mapped to button #paste (which in EditTextView 
     pastes the PRIMARY selection). 128 is here to make clear that this
     is somewhat special value.
 
     This remapping kludge is here to have all the widget's code backward/windows 
-    compatible while still having X11's middle button behavior"
-
-    buttonTranslation at: 2 put: 128
+    compatible while still having X11's middle button behavior.
+
+    Also note, that buttonTranslation is overwritten in display.rc,
+    the code is here just for a case display.rc is not read/available
+    and for documentation (symbol references does not search .rc files).
+    "
+
+    buttonTranslation at: 2 put: #paste
 
     "Modified (comment): / 17-04-2012 / 21:18:34 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
@@ -12461,7 +12466,7 @@
 !XWorkstation class methodsFor:'documentation'!
 
 version_CVS
-    ^ '$Header: /cvs/stx/stx/libview/XWorkstation.st,v 1.539 2012-04-17 19:18:45 vrany Exp $'
+    ^ '$Header: /cvs/stx/stx/libview/XWorkstation.st,v 1.540 2012-04-17 19:43:23 vrany Exp $'
 !
 
 version_SVN