[Solved] Panel artifact remains after hiding

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
zargon12

[Solved] Panel artifact remains after hiding

Post by zargon12 »

Hi

I'm creating a panel in the center of the screen that is toggled on/off by a button
in the taskbar. The following code works properly:
function panel_toggle {
test -z "$1" && echo missing panel id && exit 1
test ! -z "`echo $1 | sed s/[0-9]*//g`" && echo bad panel id && exit 1

CHANNEL=xfce4-panel
PANELID=$1
PROP=/panels/panel-$PANELID/autohide

if `xfconf-query -c $CHANNEL -p $PROP >/dev/null 2>&1`; then
xfconf-query -c $CHANNEL -T -p $PROP
else
xfconf-query -c $CHANNEL -n -p $PROP -t bool -s false
fi

}
BUT there is a thin line remaining in the center of the screen after the
panel is hidden. Is there any workaround to hide this artifact?
=====================
Well , determined there probably is no solution. Even when the artifact is
made invisible it is still there and when the mouse moves over it the window
pops up. When booting in the desktop has the lines showing and it
seeps through.




Thanks

Murray
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 4 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
MtnDewManiac
Level 6
Level 6
Posts: 1491
Joined: Fri Feb 22, 2013 5:18 pm
Location: United States

Re: Panel artifact remains after hiding

Post by MtnDewManiac »

You could make it 100% transparent when it is not in use. It'll still be there, you just won't see it.

Regards,
MDM
Mint 18 Xfce 4.12.

If guns kill people, then pencils misspell words, cars make people drive drunk, and spoons made Rosie O'Donnell fat.
zargon12

Re: Panel artifact remains after hiding

Post by zargon12 »

Thanks for the reply.

That's the kind of response I was looking for.

It seems you need compiz for that, want to stick with
xfwm as it is lightweight.

Thanks for the suggestion though.

Murray
MtnDewManiac
Level 6
Level 6
Posts: 1491
Joined: Fri Feb 22, 2013 5:18 pm
Location: United States

Re: Panel artifact remains after hiding

Post by MtnDewManiac »

zargon12 wrote:It seems you need compiz for that
Hmm...

My three panels are translucent (50% opacity). Right-click on a panel, choose "Panel Preferences," select the panel you wish to modify, select the "Appearance" tab, and adjust either or both Opacity sliders (Enter and Leave) to suit.

At least that's how I did it. I do NOT have compiz installed; I use Xfce's native one.

Regards,
MDM
Mint 18 Xfce 4.12.

If guns kill people, then pencils misspell words, cars make people drive drunk, and spoons made Rosie O'Donnell fat.
zargon12

Re: Panel artifact remains after hiding

Post by zargon12 »

Thanks

My Appearance settings for transparency are greyed out . Says at the bottom:
Enable compositing for transparency settings.

Murray
MtnDewManiac
Level 6
Level 6
Posts: 1491
Joined: Fri Feb 22, 2013 5:18 pm
Location: United States

Re: Panel artifact remains after hiding

Post by MtnDewManiac »

zargon12 wrote:My Appearance settings for transparency are greyed out . Says at the bottom:
Enable compositing for transparency settings.
Right. You do that here: {Menu} / Settings / Window Manager Tweaks, the tab on the far right.

Regards,
MDM
Mint 18 Xfce 4.12.

If guns kill people, then pencils misspell words, cars make people drive drunk, and spoons made Rosie O'Donnell fat.
zargon12

Re: Panel artifact remains after hiding

Post by zargon12 »

Thanks again,

OK, this can work. Followed your instructions and I can
now manually change to transparent mode. It then leaves no
artifact. The next and last issue is how to set/reset
transparency programmatically in bash.

Thanks kindly
Murray
zargon12

Re: Panel artifact remains after hiding

Post by zargon12 »

Ok
Have a solution. Discovered there is an Xfce Form. They had the last piece of the jigsaw.

ceate a file ~\.gtkrc-2.0 and place the following code in
style "xfce-panel-window-style"
{
# Time in miliseconds before the panel will unhide on an enter event
XfcePanelWindow::popup-delay = 100

# Time in miliseconds before the panel will hide on a leave event
XfcePanelWindow::popdown-delay = 50

# Size of autohide window in pixels
XfcePanelWindow::autohide-size = 1
}
class "XfcePanelWindow" style "xfce-panel-window-style"

Setting the authide-size to 1 did the trick.
You can also adjust the delay for window display and leave times.
You must logout for these changes to take effect.
In panel preferences you must have 'none use system style'
Happy camper, Xfce is wonderful. Hope this still works in the
next release of Xfce due in a week.

Thanks for the assistance, learned a lot.

Murray
zargon12

Re: Panel artifact remains after hiding

Post by zargon12 »

Hi

After further examination it seems the best one can do is to get rid of the
lines at the screen border by setting Appearance/Leave (Opacity) to 0.

Looks a lot cleaner.

Marking this as solved, no real solution.
Thanks

Murray
Locked

Return to “Xfce”