Make frame width configurable in XB
[xboard.git] / xboard.c
index c2a5373..a1a41b9 100644 (file)
--- a/xboard.c
+++ b/xboard.c
@@ -1572,8 +1572,8 @@ GetActualPlacement (Widget wg, WindowPlacement *wp)
     XtSetArg(args[i], XtNwidth, &w); i++;
     XtSetArg(args[i], XtNheight, &h); i++;
     XtGetValues(wg, args, i);
-    wp->x = x - 4;
-    wp->y = y - 23;
+    wp->x = x - frameX;
+    wp->y = y - frameY;
     wp->height = h;
     wp->width = w;
 }
@@ -5617,6 +5617,12 @@ CopyPositionProc (Widget w, XEvent *event, String *prms, Cardinal *nprms)
                   NULL/* transfer_done_proc */);
 }
 
+void
+CopyFENToClipboard ()
+{ // wrapper to make call from back-end possible
+  CopyPositionProc(NULL, NULL, NULL, NULL);
+}
+
 /* function called when the data to Paste is ready */
 static void
 PastePositionCB (Widget w, XtPointer client_data, Atom *selection,