Implement sweep selection as alternative for the piece menu
[xboard.git] / xboard.c
index 5f4cb0c..079d42b 100644 (file)
--- a/xboard.c
+++ b/xboard.c
@@ -3951,6 +3951,7 @@ void PieceMenuPopup(w, event, params, num_params)
      Cardinal *num_params;
 {
     String whichMenu; int menuNr;
+    shiftKey = strcmp(params[0], "menuW"); // used to indicate black
     if (event->type == ButtonRelease)
         menuNr = RightClick(Release, event->xbutton.x, event->xbutton.y, &pmFromX, &pmFromY);
     else if (event->type == ButtonPress)