After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 699269 - workspace: Only show the close buttons for windows that can close
workspace: Only show the close buttons for windows that can close
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
: 698609 728078 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2013-04-29 22:31 UTC by Jasper St. Pierre (not reading bugmail)
Modified: 2014-04-15 13:20 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
workspace: Only show the close buttons for windows that can close (1.66 KB, patch)
2013-04-29 22:31 UTC, Jasper St. Pierre (not reading bugmail)
committed Details | Review
window: Add an accessor for whether the window can close (1.17 KB, patch)
2013-04-29 22:31 UTC, Jasper St. Pierre (not reading bugmail)
committed Details | Review

Description Jasper St. Pierre (not reading bugmail) 2013-04-29 22:31:11 UTC
It's not polite to allow people to close windows from the overview that
don't have the close button on them. There's also potential from choosing
the Quit button if the app doesn't have an app menu, but since that would
leave the menu empty, I'm not sure what the design should be.
Comment 1 Jasper St. Pierre (not reading bugmail) 2013-04-29 22:31:15 UTC
Created attachment 242856 [details] [review]
workspace: Only show the close buttons for windows that can close
Comment 2 Jasper St. Pierre (not reading bugmail) 2013-04-29 22:31:42 UTC
Created attachment 242857 [details] [review]
window: Add an accessor for whether the window can close

The shell will use this to determine whether to show a close
button in the overview.
Comment 3 drago01 2013-05-02 13:06:25 UTC
What does "can close" mean? If the window is undecorated (like a fullscreen window) I see no reason why we shouldn't allow the user to close it from the overview. If anything those patches just introduce inconsistency ...
Comment 4 Jasper St. Pierre (not reading bugmail) 2013-05-02 13:38:21 UTC
(In reply to comment #3)
> What does "can close" mean? If the window is undecorated (like a fullscreen
> window) I see no reason why we shouldn't allow the user to close it from the
> overview. If anything those patches just introduce inconsistency ...

Motif provides a set of hints to hide the close button, and you can test this with a simple GTK+ app:

    const Gtk = imports.gi.Gtk;
    Gtk.init(null);
    let w = new Gtk.Window({ deletable: false });
    w.present();
    Gtk.main();

As far as I know, those hints are the only thing which controls the "can_close" field in MetaWindow.
Comment 5 drago01 2013-05-02 18:01:02 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > What does "can close" mean? If the window is undecorated (like a fullscreen
> > window) I see no reason why we shouldn't allow the user to close it from the
> > overview. If anything those patches just introduce inconsistency ...
> 
> Motif provides a set of hints to hide the close button, and you can test this
> with a simple GTK+ app:
> 
>     const Gtk = imports.gi.Gtk;
>     Gtk.init(null);
>     let w = new Gtk.Window({ deletable: false });
>     w.present();
>     Gtk.main();
> 
> As far as I know, those hints are the only thing which controls the "can_close"
> field in MetaWindow.

OK, which application does that and why?
Comment 6 Jasper St. Pierre (not reading bugmail) 2013-05-02 18:16:33 UTC
Well, it was originally filed for gnome-initial-setup, which doesn't have an exit button since it's a special-purpose app, but I think it's more correct, especially when we add support for modal dialogs to the overview.
Comment 7 Rui Matos 2013-05-09 19:31:40 UTC
Review of attachment 242856 [details] [review]:

Looks good
Comment 8 Rui Matos 2013-05-09 19:32:38 UTC
Review of attachment 242857 [details] [review]:

You've got to change those return types. With that
Comment 9 Rui Matos 2013-05-09 19:33:05 UTC
*** Bug 698609 has been marked as a duplicate of this bug. ***
Comment 10 Jasper St. Pierre (not reading bugmail) 2013-05-09 19:35:03 UTC
Comment on attachment 242857 [details] [review]
window: Add an accessor for whether the window can close

Attachment 242857 [details] pushed as 50b9042 - window: Add an accessor for whether the window can close
Comment 11 Jasper St. Pierre (not reading bugmail) 2013-05-09 19:35:56 UTC
Attachment 242856 [details] pushed as e16c16b - workspace: Only show the close buttons for windows that can close
Comment 12 Florian Müllner 2014-04-15 13:20:23 UTC
*** Bug 728078 has been marked as a duplicate of this bug. ***