2017-03-23 18:21 UTC

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0012944CentOS-7xorg-x11-serverpublic2017-03-15 11:38
PrioritynormalSeverityminorReproducibilityhave not tried
PlatformOScentos OS Version7.0
Product Version 
Target VersionFixed in Version 
Summary0012944: Problem generate modal windows
DescriptionWe use X11 servers on centos 7 and XFCE4.
The client sends Windows to this centos X11 server and we need to generate a modal Windows (ie Windows which is not able to go out with the mouse till you click close button)
To have a modal windows we have always used by the past the option MWM_INPUT_SYSTEM_MODAL.
It woks on Windows/Exceed Platform but on centos it does'nt work.
Does anybody has any idea
Additional InformationX11 client who send the X11 Windows is a pascal Program

(*--------------------------- *)
            (VAR arg_entry : ARRAY [l1..u1:integer] OF ARG;
             VAR n_arg : integer;
             VAR name: [READONLY] PACKED ARRAY [l2..u2:integer] OF char;
             VAR valu: [READONLY] integer);

  pt_tab_arg :=(pt_tab_arg MOD 100) + 1;
  tab_arg [pt_tab_arg] := name;
  arg_entry [l1+n_arg].name := IADDRESS(tab_arg [pt_tab_arg]);
  arg_entry [l1+n_arg].value := valu::XtArgVal;
  n_arg := n_arg + 1;

Call to the procedure is :
            M_Set_arg (arg_list, argc, XmNx, x);
            M_Set_arg (arg_list, argc, XmNy, y);
            M_Set_arg (arg_list, argc, XmNmwmInputmode, MWM_INPUT_SYSTEM_MODAL);

detail on XmNmwmInputMode

XmNmwmInputMode Specifies the input mode flag (application modal or system modal input con-
 straints) for the _MOTIF_WM_HINTS property. If no input mode flag is specified
 by the _MOTIF_WM_HINTS property, no input constraints are applied, and input
 goes to any window. The default for the XmNmwmInputMode resource is not to
 specify any input mode flag for the _MOTIF_WM_HINTS property.

 An application that sets input constraints on a dialog usually uses the Bullet-
 inBoard's XmNdialogStyle resource rather than the parent DialogShell's XmNmwmIn-
 putMode resource.

 The possible values for this resource, defined in the include file Xm/MwmUtil.h,

    Input goes to any window.

    Input does not go to ancestors of this window.

    Input goes only to this window.

    Input does not go to other windows in this application.

TagsNo tags attached.
Attached Files




pytalix (reporter)

Result of xprop | grep MOTIF this Windows is

MOTIF_WM_INTS(_MOTIF_WM_HINTS) = 0x7,0x3C,0xfffffff5, 0x2, 0x0
seems to be correct
If the argument in
M_Set_arg (arg_list, argc, XmNmwmInputmode, MWM_INPUT_PRIMARY_APPLICATION_MODAL);

MOTIF_WM_INTS(_MOTIF_WM_HINTS) = 0x7,0x3C,0xfffffff5, 0x1, 0x0

Can not understant why centos 7 doesn't interpret the modal windows


pytalix (reporter)

even with changing property of Windows using xprop I have not effect
it is always possible to click out of this window with the mouse
xprop -id windid -f _MOTIF_WM_HINTS 32a -set _MOTIF_WM_HINTS "0x7, 0x3c, 0xffffff5, 0x3 , 0x0" which is MWM_INPUT_SYSTEM_MODAL
xprop -id windid -f _MOTIF_WM_HINTS 32a -set _MOTIF_WM_HINTS "0x7, 0x3c, 0xffffff5, 0x2 , 0x0" which is MWM_INPUT_FULL_APPLICATION_MODAL

-Issue History
Date Modified Username Field Change
2017-03-11 06:19 pytalix New Issue
2017-03-13 15:50 pytalix Note Added: 0028844
2017-03-15 11:38 pytalix Note Added: 0028862
+Issue History