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 723580 - Add “move titlebar on the screen” logic for client-side titlebars
Add “move titlebar on the screen” logic for client-side titlebars
Status: RESOLVED OBSOLETE
Product: mutter
Classification: Core
Component: general
3.11.x
Other Linux
: Low enhancement
: ---
Assigned To: mutter-maint
mutter-maint
Depends on:
Blocks:
 
 
Reported: 2014-02-04 06:29 UTC by Arnaud B.
Modified: 2021-07-05 13:45 UTC
See Also:
GNOME target: ---
GNOME version: 3.11/3.12


Attachments
Fix meta_window_titlebar_is_onscreen() for titlebar-less windows (922 bytes, patch)
2014-03-06 00:43 UTC, Owen Taylor
committed Details | Review

Description Arnaud B. 2014-02-04 06:29:48 UTC
The option “move titlebar on the screen” of the <alt>space menu bugs with headerbars:
* it’s always shown (clickable), even if the window is totally displayed;
* it does nothing, even if the headerbar is not visible.
Comment 1 Owen Taylor 2014-03-06 00:39:47 UTC
The reason it shows up is a simple logic bug in meta_window_titlebar_is_onscreen():

gboolean
meta_window_titlebar_is_onscreen (MetaWindow *window)
{
  [...]
  /* Titlebar can't be offscreen if there is no titlebar... */
  if (!window->frame)
    return FALSE;
}

The comment would refer to returning FALSE not TRUE.

The better long-term fix, though, would be to have some way for a CSD window to indicate the size of the titlebar. (Also needed for cascading.)
Comment 2 Owen Taylor 2014-03-06 00:43:16 UTC
Created attachment 271053 [details] [review]
Fix meta_window_titlebar_is_onscreen() for titlebar-less windows

Here's the trivial fix - if we apply this we should retitle the bug and
repurpose it to handle a client-reported titlebar, since it's not *really*
making the functionality work, it's just making it not appear at the 
wrong time.

====

Make the code correspond to the comment - the titlebar can't be
offscreen if there's no titlebar.
Comment 3 Jasper St. Pierre (not reading bugmail) 2014-03-06 02:05:13 UTC
Review of attachment 271053 [details] [review]:

Seems this bug has been around since 2005... sigh.
Comment 4 Owen Taylor 2014-03-11 17:02:55 UTC
Comment on attachment 271053 [details] [review]
Fix meta_window_titlebar_is_onscreen() for titlebar-less windows

Attachment 271053 [details] pushed as 40c15f6 - Fix meta_window_titlebar_is_onscreen() for titlebar-less windows
Comment 5 GNOME Infrastructure Team 2021-07-05 13:45:39 UTC
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org.
As part of that, we are mass-closing older open tickets in bugzilla.gnome.org
which have not seen updates for a longer time (resources are unfortunately
quite limited so not every ticket can get handled).

If you can still reproduce the situation described in this ticket in a recent
and supported software version, then please follow
  https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines
and create a new ticket at
  https://gitlab.gnome.org/GNOME/mutter/-/issues/

Thank you for your understanding and your help.