Xfce Forum

Sub domains
 

You are not logged in.

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

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

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
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,949

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)


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

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

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

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
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,949

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?


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

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

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

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
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,949

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.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

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

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

Re: How do I center the window title?

Now everything works! Thank you for help:)

Offline

#8 2019-03-21 04:45:38

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

Re: How do I center the window title?

Hello again! I noticed that some of the letters in the title are hidden. It is necessary that the end of the heading be hidden, and not its beginning.
So displayed now:
bbcode
Must be so:
bbcode
If the title is long, the beginning and end of the title change.
bbcode
So it looks completely:
bbcode

How to fix it?

Offline

#9 2019-04-14 11:51:31

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

Re: How do I center the window title?

Offline

Board footer

Powered by FluxBB