default  Access: viewconf PLT Bugs
Main PageQuick QueryStandard QueryAdvanced QueryHelp
Edit

View Problem Report: 9690

send email to interested parties or send email followup to audit-trail
Reporter's email: alexey.v.voinov@gmail.com
Number: 9690
Category: mred
Synopsis: drscheme's or mred's main window doesn't receive focus from window manager
Class: sw-bug
Responsible: mflatt
Notify-List:
Severity: serious
Priority: medium
State: closed
Confidential: no
Arrival-Date: Sat Aug 16 08:16:01 -0400 2008
Closed-Date:
Last-Modified: Mon Aug 25 08:58:33 -0400 2008
Originator: Alexey Voinov
Organization: plt
Submitter-Id: unknown
Release: 4.1
Environment: Linux i686 / Mozilla/5.0 (X11; U; Linux i686; ru; rv:1.9.0.2pre) Gecko/2008071906 Firefox/3.0.1
Description: MrEd doesn't set XtNinput resource for it's frame windows (XWMHints.input field). When this hint is not set to True, window manager may not assign keyboard focus to that window. This behaviour can be seen when mred or drscheme is started in WindowMaker or XFCE. Maybe in some others too.

Here's trivial patch that works for me:
--- plt-4.1/src/wxxt/src/Windows/Frame.cc~      2008-06-23 08:01:16 +0400
+++ plt-4.1/src/wxxt/src/Windows/Frame.cc       2008-08-16 16:07:33 +0400
@@ -376,7 +376,8 @@
        XtVaSetValues(X->frame, XtNiconPixmap, plt_icon, NULL);
       }
     }
-
+   
+    XtVaSetValues(X->frame, XtNinput, True, NULL);
     return TRUE;
}

File Attachments:
How-To-Repeat:
Fix:
Release-Note:
Unformatted:

send email to interested parties or send email followup to audit-trail

Audit Trail:

State changed from "open" to "closed" by mflatt at Mon, 25 Aug 2008 08:58:33 -0400
Reason>>> Patch applied, finally. Thanks for the patch!