Bug 70490

Summary: Gnome and KDE window manager ignores application request to omit close button on popup dialogs. This is a disastor for a large application with many popups because using the windown manager close by passes application's close button.
Product: [Retired] Red Hat Linux Reporter: Wendel Dean Renner <wendeldrenner>
Component: X11R6-contribAssignee: Than Ngo <than>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 7.2   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-08-01 19:05:08 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Wendel Dean Renner 2002-08-01 19:05:04 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.75 [en] (Win98; U)

Description of problem:
example code:

int n= 0;
// eliminates the close on the title bar.
// see page 1-142,143 OSF/MOTIF.
long functions = MWM_FUNC_ALL;  // puts all in.
functions  |= MWM_FUNC_CLOSE;   // then take out the close.
XtSetArg(args[n], XmNmwmFunctions, functions); n++;
Widget dialog_shell =  XmCreateDialogShell(TopLevelWidget,
                  "Dialog_Name", args,n);

The mwm window manager downloaded from ICS correctly leaves out the close button.  But KDE and GNOME still 
puts it in.   I am not even sure what the window manager is doing?    destroying the widget?   unmanaging the widget?
I have ported a large application to linux from SGI IRIX and this is a major problem.

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. Use above code to create a popup dialog
2. On the window frame, a close button is still provided
3.The close button closes the window.
4. Using the mwm window manager down loaded from www.ics.com, there is correct behavior.
But that window manager does not work with KDE or GNOME so can't be used with desktop.
	

Actual Results:  The popup goes away.  If my application tries to pop it back up, by managing the form widget which
is the child of the dialog_shell, sometimes the program crashes with a segmentation fault
which leads me to belive that the window manager must be deleting something.

Expected Results:  The window manager should not provide a close button on the popup.

Additional info:

If large applications are to be ported to Linux, we should not have to rewrite them to work around
something that does not abhere to the X/Motif standard.

Comment 1 Ngo Than 2002-08-01 19:51:45 UTC
i don't think it's a bug. KDE/Gnome managers don't support such motif special
request. It just work with mwm (motif window manager)

Comment 2 Wendel Dean Renner 2002-08-01 20:02:28 UTC
Is there anyway to pass this problem on to Gnome or KDE?    It may not be a bug but it sure is a problem.
Also, if LInux is to be successful shouldn't X/Motif run with the same behavior as on Unix systems?