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.
Summary: Gnome and KDE window manager ignores application request to omit close button...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: X11R6-contrib
Version: 7.2
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Than Ngo
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-08-01 19:05 UTC by Wendel Dean Renner
Modified: 2008-05-01 15:38 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2002-08-01 19:05:08 UTC
Embargoed:


Attachments (Terms of Use)

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?


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