How to get csd back in xfce4

Post here if you are a new Porteus member and you're looking for some help.
blue-devil-93
White ninja
White ninja
Posts: 4
Joined: 12 Jul 2022, 14:44
Distribution: xubuntu

How to get csd back in xfce4

Post#1 by blue-devil-93 » 12 Jul 2022, 15:14

Image

There is a huge bug in porteus xfce. The CSD window decoration doesn`t work :Yahoo!: so a third party custom start menu won`t work :evil: . What schould i do to fix this? How do i get csd decorations back??? :hammer:

What the heck happened with xfce. The csd decorations are als mssing from the settings application of xfce. How do i fix this and get the normal xfceui with csd windows?

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

How to get csd back in xfce4

Post#2 by ncmprhnsbl » 13 Jul 2022, 02:41

ah, CSD .. some hate em, some love em.. D: (for those wondering: CSD = client side decorations, ie. window decorations determined by the app(client) and not the window manager)
so.. two things are going on here:
first, we've chosen to use a patched version of gtk+3 that disables a bunch of features, including CSD by default.. gtk3-classic
second, (afaiui) our xfce maintainer chose to compile xfce patched in such a way as to remove CSD as much as possible..
so, how much this fix will apply i can't guarantee, though i imagine your third party custom start menu should be okay.
the fix:
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(run as root):

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..
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

blue-devil-93
White ninja
White ninja
Posts: 4
Joined: 12 Jul 2022, 14:44
Distribution: xubuntu

How to get csd back in xfce4

Post#3 by blue-devil-93 » 13 Jul 2022, 05:41

Thx that was a fast response. Now it works.

I had to extract libxfce4ui-4.16.1-x86_64-1.txz too. then it worked..
Ah its gtk classic.

The menu is from https://github.com/rozniak/xfce-winxp-tc .

Post Reply