Xfce Forum

Sub domains
 

You are not logged in.

#1 2019-02-02 13:22:47

Tonas
Member
Registered: 2019-02-02
Posts: 4

How do I center the window title?

Hi guys!

Because of the firefox and csd bug, I had to install the new xfwm4. And broke the layout of the title window. Its location. Before that, I used this patch, which centers the window title. How to arrange the title of the window strictly in the center? I can not apply this patch due to lack of knowledge and experience in this matter. I want to get this result (Screenshot from here ) FluxBB bbcode test

Offline

#2 2019-02-02 14:33:55

ToZ
Moderator
From: Canada
Registered: 2011-06-02
Posts: 5,112

Re: How do I center the window title?

Hello and welcome.

That patch file will still work if applied to the xfwm4-git AUR package and going through a manual makepkg process like this:

wget https://aur.archlinux.org/cgit/aur.git/snapshot/xfwm4-git.tar.gz
tar xzvf xfwm4-git.tar.gz
cd xfwm4-git
makepkg -o

cd src/xfwm4/
### save PATCHFILE file here
patch -p0 < PATCHFILE

cd ../../
makepkg -ei

"makepkg -o" gets all the files but doesn't build. You then manually patch the source. "makepkg -i" then continues the build and install.

Ideally, one should create a new PKGBUILD file, but this manual process will get it installed.

Last edited by ToZ (2019-02-03 01:48:22)

Offline

#3 2019-02-03 01:13:37

Tonas
Member
Registered: 2019-02-02
Posts: 4

Re: How do I center the window title?

Installed and restarted xfwm, but there is no result. Where could I be wrong?

Offline

#4 2019-02-03 01:31:41

ToZ
Moderator
From: Canada
Registered: 2011-06-02
Posts: 5,112

Re: How do I center the window title?

What was the output on the screen when applied the patch file? Did it show that it took?

Offline

#5 2019-02-03 01:44:18

Tonas
Member
Registered: 2019-02-02
Posts: 4

Re: How do I center the window title?

test@test ~/xfwm/xfwm4-git/src/xfwm4/» patch -p0 < centralize.patch
patching file src/frame.c
Hunk #1 succeeded at 494 (offset -2 lines).
patch unexpectedly ends in middle of line
Hunk #2 succeeded at 525 with fuzz 1 (offset -2 lines).

Offline

#6 2019-02-03 01:48:07

ToZ
Moderator
From: Canada
Registered: 2011-06-02
Posts: 5,112

Re: How do I center the window title?

Sorry, my last command was missing a switch. It should be:

makepkg -ei

I'll make the correction above as well.

Offline

#7 2019-02-03 01:53:24

Tonas
Member
Registered: 2019-02-02
Posts: 4

Re: How do I center the window title?

Now everything works! Thank you for help:)

Offline

Board footer

Powered by FluxBB