Bug 70490 - 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.
Gnome and KDE window manager ignores application request to omit close button...
Status: CLOSED NOTABUG
Product: Red Hat Linux
Classification: Retired
Component: X11R6-contrib (Show other bugs)
7.2
All Linux
medium Severity medium
: ---
: ---
Assigned To: Ngo Than
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2002-08-01 15:05 EDT by Wendel Dean Renner
Modified: 2008-05-01 11:38 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2002-08-01 15:05:08 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Wendel Dean Renner 2002-08-01 15:05:04 EDT
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 15:51:45 EDT
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 16:02:28 EDT
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?

Note You need to log in before you can comment on or make changes to this bug.