! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Ability to completely hide panel using xfconf-query
Status:
RESOLVED: INVALID
Severity:
enhancement
Product:
Xfce4-panel

Comments

Description skontar 2016-04-08 09:54:44 CEST
For changing between different monitor setups it would be neat to be able to completely hide one of the panels with xfconf-query commandline tool. Right now there is an option to enable auto-hide only, which is not perfect in this case.

Also complete control of panel settings using xfconf-query (like swapping two complete different configs etc.) would be even better, but I guess too hard to implement.

Thanks!
Comment 1 poma 2016-04-14 00:48:03 CEST
(In reply to skontar from comment #0)
> For changing between different monitor setups it would be neat to be able to
> completely hide one of the panels with xfconf-query commandline tool. Right
> now there is an option to enable auto-hide only, which is not perfect in
> this case.
> 


See if you can produce a "cloak" with:
$ xfconf-query -c xfce4-panel -p /panels/panel-1/autohide-behavior -s 2
$ xfconf-query -c xfce4-panel -p /panels/panel-1/enter-opacity -s 0
$ xfconf-query -c xfce4-panel -p /panels/panel-1/leave-opacity -s 0

Of course,
$ xfconf-query -c xfwm4 -p /general/use_compositing -t bool -s true
is mandatory.


All Good Things...(TNG)
Comment 2 skontar 2016-04-20 15:56:34 CEST
Unfortunately, that does not work as proposed. If I accidentally move mouse cursor too low on the visible panel, the invisible panel is pulled up and blocks the panel underneath. Being invisible makes the matter even.
Comment 3 poma 2016-04-21 18:33:22 CEST
Don't pop-up if the pointer hovers over
---
 panel/panel-window.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/panel/panel-window.c b/panel/panel-window.c
index c21aac3..73da669 100644
--- a/panel/panel-window.c
+++ b/panel/panel-window.c
@@ -2442,7 +2442,7 @@ panel_window_set_autohide_behavior (PanelWindow     *window,
           gtk_drag_dest_set_track_motion (GTK_WIDGET (window), TRUE);
 
           /* signals for pointer enter/leave events */
-          g_signal_connect (G_OBJECT (popup), "enter-notify-event",
+/*          g_signal_connect (G_OBJECT (popup), "enter-notify-event",
               G_CALLBACK (panel_window_autohide_event), window);
           g_signal_connect (G_OBJECT (popup), "leave-notify-event",
               G_CALLBACK (panel_window_autohide_event), window);
-- 

Ref.
https://developer.gnome.org/gtk3/stable/GtkWidget.html#GtkWidget-enter-notify-event
https://developer.gnome.org/gtk3/stable/GtkWidget.html#GtkWidget-leave-notify-event
Comment 4 Simon Steinbeiss editbugs 2017-06-21 23:30:52 CEST
Swapping configs is possible with xfpanel-switch (a python-based helper).

The rest is okay from my point of view (even if not all corner cases are caught).

Feel free to reopen if you disagree.

Bug #12537

Reported by:
skontar
Reported on: 2016-04-08
Last modified on: 2017-06-21

People

Assignee:
Nick Schermer
CC List:
2 users

Version

Version:
4.12.0

Attachments

Additional information