X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2FA953858418 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1699377672; bh=p6skiZ12Cu3pE73Fc+3/sW2pW5yGjLc+e8FKU4EVKKY=; h=To:Subject:Date:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=ygCHSo267x1AkagCSxJUzgYvTcTrGo9SrmeqNvwOPFyG86IDpVw4/AAAisRkk2LR5 ItjcF7ibwwKz2An1bqlqNph9Ik/lbzSRViOEnrvooeOwhaXzHAIskxBwlQaYgQAzU3 3ntEV48ZBNDzKdr8EgUeCJpcdUeckMCWyMYWyebo= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E23413858D1E ARC-Filter: OpenARC Filter v1.0.0 sourceware.org E23413858D1E ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699377658; cv=none; b=ak75m7EOaPoDMiLRoCfcYvxf1gcze3IUfLAa46vOFLaBZWVRFM3SkkAfdtSQVY7Id9CQbWQtgeg6CEDyppJrVGyoUFxUEk3B+EkFgYaltj1QyHOGyEGNPhCCqAXbNqptX5TpQdCSuRpF9M5P06aajag/lx1DNLxYg/OkeU4S1i8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699377658; c=relaxed/simple; bh=dA8LJv/NusH/JCxYIrAQBr8XHY90eX/YRR27E/YyICA=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=pMIsPIkhlUSV9xKNjx8EfX4/2eWxFZYHkrDQ+aZ4YSmm+cGBW7yKSZiSGVL89YzTEnXT9prABU//2k2XRK8l21OJJUizLPa8CKLik+PqlDEY6w1AG4G31TIfm11jWIXKoAUHQj+AdoWdcWk/8xGKT2CnLvapdvHj4uZbGJL/BJ4= ARC-Authentication-Results: i=1; server2.sourceware.org To: "cygwin AT cygwin DOT com" Subject: RE: [EXT] Re: XWin copy/paste succeeds on Windows 7, crashes on Windows 11 Enterprise. Thread-Topic: [EXT] Re: XWin copy/paste succeeds on Windows 7, crashes on Windows 11 Enterprise. Thread-Index: AdoOkZldZkaI/m/oSRiHM2QwVvHrlwAwP1KAAGK0UJAAC8zygAAKLbIA//+0CACAAEugYP//Lyyw Date: Tue, 7 Nov 2023 17:20:55 +0000 Message-ID: References: <242d35130d84418d934265782064690b AT ida DOT org> <18fd5519-180d-4d48-95d1-994f7c5e36f5 AT dronecode DOT org DOT uk> <474496f4a2e94e3c8ba06e1a2eaa1d75 AT ida DOT org> <7166752f-e08e-4595-8915-d8eaec920718 AT Shaw DOT ca> <963e0be7a77b4e849cfbca73c209abb4 AT ida DOT org> In-Reply-To: <963e0be7a77b4e849cfbca73c209abb4@ida.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.0.14.18] MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, HTML_MESSAGE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-Content-Filtered-By: Mailman/MimeDel 2.1.30 X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , From: "Stone, Timothy M via Cygwin" Reply-To: "Stone, Timothy M" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Cygwin" I have created an entire program to test this. It's only 40 lines. The program pops up a type in window...then you can type something in it and test the copy/paste. On Windows 11 enterprise: When using "translations_ignore", it correctly just prints "Ignoring" every time I cut/copy/paste. When using "translations_copypaste", the program crashes. On Windows 7 professional: When using "translations_ignore", it correctly just prints "Ignoring" every time I cut/copy/paste. When using "translations_copypaste", it correctly cuts/copies/pastes. Of course, you'll need to link with X/Motif libraries, and possibly change the one line to point at your XKeysymDB, but this 40 line program shows the whole problem: #include #include #include #include void ignore_cut_paste(Widget widget, XEvent *event, String *args, int *num_args) { printf("Ignoring\n"); } int main(int argc, char **argv) { Widget W,thewin,rowcol,textarea; XtAppContext app_context; XtActionsRec actions2; _putenv("display=127.0.0.1:0.0"); _putenv("xkeysymdb=.\\XKeysymDB"); W = XtAppInitialize(&app_context, (String)"Test",NULL,(Cardinal)0,&argc,argv,NULL,NULL,(Cardinal)0); actions2.string = "ignore_cut_paste"; actions2.proc = (XtActionProc)ignore_cut_paste; XtAppAddActions (app_context, &actions2, 1); String translations_copypaste = "#override\n Ctrlv: paste-clipboard()\n Ctrlc: copy-clipboard()\n Ctrlx: cut-clipboard()"; String translations_ignore = "#override\n Ctrlv: ignore_cut_paste()\n Ctrlc: ignore_cut_paste()\n Ctrlx: ignore_cut_paste()"; thewin = XtCreatePopupShell("Test", topLevelShellWidgetClass,W,NULL,0); rowcol = XtVaCreateWidget ("rowcol",xmRowColumnWidgetClass, thewin, NULL); textarea = XtVaCreateManagedWidget ("test_area", xmTextFieldWidgetClass, rowcol, XmNmaxLength, 80, XmNtranslations, XtParseTranslationTable ( translations_copypaste ) , NULL); XtManageChild(textarea); XtManageChild (rowcol); XtPopup(thewin,XtGrabNone); XtAppMainLoop(app_context); } -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple