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 142317 - hiding gnome panel doen't allow me the use of the whole screen...
hiding gnome panel doen't allow me the use of the whole screen...
Status: RESOLVED FIXED
Product: gnome-panel
Classification: Other
Component: panel
git master
Other All
: Normal normal
: ---
Assigned To: Panel Maintainers
Panel Maintainers
: 145148 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2004-05-11 05:33 UTC by Joshua Clayton
Modified: 2015-03-24 13:00 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proposed patch (2.83 KB, patch)
2004-05-18 04:20 UTC, Sagar Rastogi
needs-work Details | Review
Proposed patch (2.93 KB, patch)
2004-06-03 06:17 UTC, Sagar Rastogi
none Details | Review
Proposed patch (3.62 KB, patch)
2004-10-09 21:18 UTC, Sagar Rastogi
needs-work Details | Review
Proposed patch (2.36 KB, patch)
2005-01-30 22:39 UTC, Vincent Untz
none Details | Review

Description Joshua Clayton 2004-05-11 05:33:39 UTC
...and if you can't use the space, what is the point in even having "hide" buttons

Simply put, the hide buttons on the gnome panel will slide it back, leaving just
the little tab a la MacOS.  But the little tab behaves like the regular panel in
that nothing can occupy the same space on the display.  This means that
applications that are maximized on the screen still leave vacant the space that
the panel normally occupies.

I was originally going to list this as an "enhancement" bug, but since it
effectively moots the "hide buttons" feature, I thought it might merit a bit
more attention.

I would suggest that perhaps the panel should be always on top, but allow other
windows to maximize under it, like a normal top window.

Along the same lines (thinking back to the MacOS 9 interface), it would be a
nice enhancement to be able to have panel(s) of arbitrary width, attached to the
side(s) of the screen that could be hidden leaving an always-on-top tab.
Comment 1 Mark McLoughlin 2004-05-13 12:50:14 UTC
Probably should remove the strut hint when hidden ..
Comment 2 Sagar Rastogi 2004-05-18 04:20:00 UTC
Created attachment 27799 [details] [review]
Proposed patch

Followed mark's suggestion to change strut hint when the panel is hidden.
Comment 3 Kjartan Maraas 2004-05-18 15:53:35 UTC
Upping pri because we have a patch now.
Comment 4 Kjartan Maraas 2004-05-18 15:55:56 UTC
There's a lot of unnecessary whitespace changes in there. Not that it really
matters much in a patch of this size, but leaving that out is a good rule of
thumb to make patches as easy to review as possible.
Comment 5 Mark McLoughlin 2004-06-02 12:38:37 UTC
Hmm, I think what I really meant to say was that we should the window type to
_NET_WM_WINDOW_TYPE_NORMAL instead of _NET_WM_WINDOW_TYPE_DOCK when its hidden.
Note we should *not* do this when its autohidden.
Comment 6 Sagar Rastogi 2004-06-03 06:17:12 UTC
Created attachment 28284 [details] [review]
Proposed patch

Mark: I have added what u suggested to what I had done earlier. Is this correct
or should I submit a patch containing only the changes you mentioned in comment
#5 (That does not give intended behavior)? 

BTW what was wrong with the earlier patch.. just wondering.
Comment 7 Vincent Noel 2004-07-22 18:54:45 UTC
*** Bug 145148 has been marked as a duplicate of this bug. ***
Comment 8 Vincent Noel 2004-08-06 15:23:40 UTC
ping : can someone apply this patch ?
Comment 9 Kjartan Maraas 2004-09-01 22:19:31 UTC
Comments on the patch:

- drop spurious whitespace changes
- when removing the if () tests in panel-xutils.c also reduce indentation of the
code block that used to be under the test?
Comment 10 Vincent Noel 2004-10-01 20:42:06 UTC
Sagar : can you provide an updated version of the patch ? Thanks !
Comment 11 Sagar Rastogi 2004-10-09 21:18:48 UTC
Created attachment 32435 [details] [review]
Proposed patch

MAde the requested changes.
Comment 12 Mark McLoughlin 2004-11-11 08:37:20 UTC
I'd do this more like:

  1) add a panel_struts_unset_window_hint()

void
panel_struts_unset_window_hint (PanelToplevel *toplevel)
{
        if (!GTK_WIDGET_REALIZED (toplevel))
                return;

        panel_xutils_set_strut (GTK_WIDGET (toplevel)->window, 0, 0, 0, 0);
}

  2) Update panel_struts_set_window_hint() to use unset_window_hint()
     when there's no strut

  3) Update panel_toplevel_update_struts() to have something like:

        if (toplevel->priv->state == PANEL_STATE_NORMAL ||
            toplevel->priv->state == PANEL_STATE_AUTO_HIDDEN)
                panel_struts_set_window_hint (toplevel);
        else
                panel_struts_unset_window_hint (toplevel);
Comment 13 Kjartan Maraas 2005-01-04 00:05:35 UTC
Could you update the patch according to Mark's comments?
Comment 14 Vincent Untz 2005-01-12 13:57:40 UTC
Sorry for the spam. Mass-marking some bugs to the 2.10.x milestone.
 Filter on "VINCENT WANTS THIS FOR 2.10" to ignore.
Comment 15 Vincent Untz 2005-01-30 21:37:40 UTC
> Hmm, I think what I really meant to say was that we should the window type to
> _NET_WM_WINDOW_TYPE_NORMAL instead of _NET_WM_WINDOW_TYPE_DOCK when its hidden.

Mark: I don't understand this. The toplevel is still a panel and having the
button always on top is a good thing. Why would you want to have
_NET_WM_WINDOW_TYPE_NORMAL?
Comment 16 Vincent Untz 2005-01-30 22:39:36 UTC
Created attachment 36743 [details] [review]
Proposed patch

Here's my attempt. It seems to be working well.
Comment 17 Vincent Untz 2005-01-31 17:33:04 UTC
I'm convinced my patch is right ajnd we don't need to set the panel type to
_NET_WM_WINDOW_TYPE_NORMAL so I went ahead.