Firefox Title Bar Issue

Post here if you are a new Porteus member and you're looking for some help.
JTD
Black ninja
Black ninja
Posts: 40
Joined: 18 Feb 2019, 09:55
Distribution: Porteus-XFCE-v5.01-x86_64

Firefox Title Bar Issue

Post#1 by JTD » 08 Sep 2022, 10:12

Hello people, I have an issue with Porteus 5.0 XFCE (no idea if its desktop environment specific) and Firefox Title Bar, to ilustrate the issue better, here is a picture with Title Bar enabled:

Image

Nothing wrong there, but when you disable Title Bar:

Image

The Title Bar at the top won't go away, in fact it creates another set of Minimize, Maximize and Close icons right below them.

I did more tests with a Firefox fork and also Linux Mint XFCE (Waterfox AppImage, since it's the same file being tested on both Porteus and Mint) and disabling Title Bar works on Mint, not on Porteus (same issue as the Firefox images above)

Is there a tweak or something that was enabled within Porteus XFCE window buttons that is forcing them to stay? If so, how can I disable it so I can have web browser tabs at the very top of the monitor?

Thank you in advance!

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3938
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

Firefox Title Bar Issue

Post#2 by ncmprhnsbl » 09 Sep 2022, 00:06

probly this: How to get csd back in xfce4
for a quick test:
in a terminal:

Code: Select all

export GTK_CSD=1
firefox
if that works, do this:
create (as root) /etc/profile.d/restore-csd.sh and put:

Code: Select all

#!/bin/sh

export GTK_CSD=1
and make sure it's executable : chmod +x /etc/profile.d/restore-csd.sh
if you're using changes, this be enough (with reboot)
if not, here's script to make a module( name it "whatever" and run as root: sh whatever):

Code: Select all

#!/bin/bash
echo -e '#!/bin/sh\n\nexport GTK_CSD=1\n' > /etc/profile.d/restore-csd.sh
chmod +x /etc/profile.d/restore-csd.sh
mkdir /tmp/module
cp -a --parents /etc/profile.d/restore-csd.sh /tmp/module
dir2xzm /tmp/module /tmp/restore-csd.xzm
echo "restore-csd.xzm is in /tmp, move it to your modules folder and reboot"
and if your want disappearing scrollbars; add export GTK_OVERLAY_SCROLLING=1 to that file too..

EDIT: went to check this out... but.. seems newer firefox doesn't have that option(disable titlebar) anymore... what version are you using?
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

JTD
Black ninja
Black ninja
Posts: 40
Joined: 18 Feb 2019, 09:55
Distribution: Porteus-XFCE-v5.01-x86_64

Firefox Title Bar Issue

Post#3 by JTD » 09 Sep 2022, 16:15

That was it! The Client Side Decorations were the reason, and that script as a module works like a charm, thank you very much for your help!

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3938
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

Firefox Title Bar Issue

Post#4 by ncmprhnsbl » 11 Sep 2022, 00:27

ncmprhnsbl wrote:
09 Sep 2022, 00:06
EDIT: went to check this out... but.. seems newer firefox doesn't have that option(disable titlebar) anymore... what version are you using?
to clarify (to myself mostly), seems this option doesn't show in firefox in some window managers(eg. openbox) (unless CSD is already enabled.. ie $ GTK_CSD=1 firefox)
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

Post Reply