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 679290 - side by side mode should hide titlebar for those apps requesting it
side by side mode should hide titlebar for those apps requesting it
Status: RESOLVED FIXED
Product: mutter
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: mutter-maint
mutter-maint
Depends on:
Blocks:
 
 
Reported: 2012-07-03 00:12 UTC by William Jon McCann
Modified: 2019-05-05 08:19 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
window: Also use hide-titlebar-when-maximized when tiled (1.21 KB, patch)
2012-07-03 00:27 UTC, Florian Müllner
committed Details | Review
panel: Allow dragging an unfocused tiled match window (1.88 KB, patch)
2012-07-03 10:09 UTC, Rui Matos
needs-work Details | Review

Description William Jon McCann 2012-07-03 00:12:17 UTC
It seems to me that side by side mode is a special case of maximized so I think we should hide the titlebar for those apps requesting it to be hidden when maximized.
Comment 1 Florian Müllner 2012-07-03 00:27:14 UTC
Created attachment 217893 [details] [review]
window: Also use hide-titlebar-when-maximized when tiled

Side-by-side tiling is conceptually very close to maximization
("half-maximized"), so it makes sense to also hide the titlebar
in this state if requested by the application.
Comment 2 Rui Matos 2012-07-03 10:09:15 UTC
Review of attachment 217893 [details] [review]:

Looks fine. If designers agree it's ACN from me. See also the following patch.
Comment 3 Rui Matos 2012-07-03 10:09:37 UTC
Created attachment 217918 [details] [review]
panel: Allow dragging an unfocused tiled match window

Since we allow dragging tiled windows from the panel, it seems natural
that we also allow it for the matching unfocused tiled window if it
exists, especially since tiled windows might now have their titlebar
hidden.
Comment 4 Florian Müllner 2012-07-03 10:23:35 UTC
Comment on attachment 217893 [details] [review]
window: Also use hide-titlebar-when-maximized when tiled

Attachment 217893 [details] pushed as 0a50488 - window: Also use hide-titlebar-when-maximized when tiled

I'll assume "filed by a designer" == "designers are OK with it" ;-)
Comment 5 Florian Müllner 2012-07-03 10:55:35 UTC
Review of attachment 217918 [details] [review]:

I'm not sure this behavior makes sense to me, but let's get design input on this. Allowing to drag a window from the panel that does not match the app menu may or may not be a problem, personally I tend to like it. However, using the matched window seems confusing to me - basically we end up with "sometimes you can drag an unfocused tiled window, sometimes you can't". So if we extend the behavior to non-focus windows, we should allow it for all unfocused tiled/maximized windows in my opinion (e.g. pick window at (pointerX, panelY + panelHeight + 1) and check if it's either tiled or maximized), not based on an implementation detail of the window shadow policy.
Comment 6 Rui Matos 2012-07-03 12:13:52 UTC
(In reply to comment #5)
> However, using the
> matched window seems confusing to me - basically we end up with "sometimes you
> can drag an unfocused tiled window, sometimes you can't". So if we extend the
> behavior to non-focus windows, we should allow it for all unfocused
> tiled/maximized windows in my opinion (e.g. pick window at (pointerX, panelY +
> panelHeight + 1) and check if it's either tiled or maximized), not based on an
> implementation detail of the window shadow policy.

I think it only makes sense for "foreground" unfocused tiled windows as implemented here because, just as with maximized windows, there's no ambiguity as to which window the gesture will apply.
Comment 7 Florian Müllner 2012-07-03 12:23:57 UTC
I don't see that. If I have two windows, why is the case where the focus window is tiled less ambiguous than the case where it is not?
Comment 8 Rui Matos 2012-07-03 12:45:31 UTC
(In reply to comment #7)
> I don't see that. If I have two windows, why is the case where the focus window
> is tiled less ambiguous than the case where it is not?

Because then it's likely that both tiled windows are exposed enough that you can visually see their tops contiguous to the panel.

It's not perfect because you can do something like having a 3rd window of the same size and in the same place, stacked on top of the unfocused match tiled window but not tiled itself and this code would still allow you to drag the match tiled window underneath. This seems like a very unlikely scenario in practice though?
Comment 9 Florian Müllner 2012-07-03 12:54:34 UTC
(In reply to comment #8)
> (In reply to comment #7)
> > I don't see that. If I have two windows, why is the case where the focus window
> > is tiled less ambiguous than the case where it is not?
> 
> Because then it's likely that both tiled windows are exposed enough that you
> can visually see their tops contiguous to the panel.

That would only make sense to me if we treated the windows as a unit, e.g. start a drag for both windows. Also, we don't care about contiguous tops for the focus window, so why does it become important for non focus windows?
Comment 10 Rui Matos 2012-07-03 13:00:01 UTC
(In reply to comment #9)
> That would only make sense to me if we treated the windows as a unit, e.g.
> start a drag for both windows. Also, we don't care about contiguous tops for
> the focus window, so why does it become important for non focus windows?

Not contiguous between each other but between each one of them and the panel. Anyway, too much yak shaving already for such a little detail. There's more important stuff to do.
Comment 11 Owen Taylor 2012-10-08 17:33:27 UTC
(In reply to comment #5)
> Review of attachment 217918 [details] [review]:
> 
> I'm not sure this behavior makes sense to me, but let's get design input on
> this. Allowing to drag a window from the panel that does not match the app menu
> may or may not be a problem, personally I tend to like it. However, using the
> matched window seems confusing to me - basically we end up with "sometimes you
> can drag an unfocused tiled window, sometimes you can't". So if we extend the
> behavior to non-focus windows, we should allow it for all unfocused
> tiled/maximized windows in my opinion (e.g. pick window at (pointerX, panelY +
> panelHeight + 1) and check if it's either tiled or maximized), not based on an
> implementation detail of the window shadow policy.

Trying out Rui's patch, it took me a while to find a case where it didn't allow the drag (a maximized window with a tiled window on top of half of it), and when it didn't work, it was just puzzling. I suspect that the current restriction of the drag-off to the focused window is wrong - if the user learns the drag-off behavior, they aren't paying attention to what window is focused and the app menu, they rather are paying attention to the juncture of the maximized/tiled window with the panel.
Comment 12 Owen Taylor 2012-10-08 17:34:03 UTC
Review of attachment 217918 [details] [review]:

Marking need-work for now pending designer input. Jon?
Comment 13 Lapo Calamandrei 2012-10-19 15:06:47 UTC
I'd test the patch, I happen to try unmaxing (with topbar grab) an unfocused window (whole window not a tile) and the current behaviour makes it seems broken (trapped feeling), I think with tiles it will seems even more broken, I was actually thinking it was a bug so Owen reasoning is right to me.
Comment 14 Jonas Ådahl 2018-02-01 10:53:29 UTC
Seems this never got any designer input, and we still don't initiate a window-move when dragging from the panel over a non-focused tile. Adding the 'usability' keyword to see if that helps with getting UX feedback.
Comment 15 Lapo Calamandrei 2018-03-21 22:09:45 UTC
Actually there was some designer input Jonas :-)
Comment 16 Jonas Ådahl 2018-04-09 19:31:22 UTC
I was referring to comment 12. Since then, was there any input given elsewhere?