! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Window titles with full_width_title on aren't centered in the title bar
Status:
RESOLVED: MOVED

Comments

Description Patrick Walton 2011-03-13 19:10:13 CET
Created attachment 3551 
Proposed patch.

Simple bug: IMHO it looks better if window titles with the "full_width_title" option set to true are centered in the middle of the title bar.

The attached patch fixes this!
Comment 1 krims0n32 2011-06-22 13:08:50 CEST
I agree with this :)

When moving buttons around in the titlebar, this is not taken into account when centering the window title. E.g. I like to have 3 buttons on the left and one on the right, the window title is now skewed to the right quite a bit.

I was looking into the title_horizontal_offset theme parameter, but as I found out in the sourcecode this parameter is not taken into account when using centered titles.
Comment 2 Patrick Walton 2011-07-25 01:23:07 CEST
Adding cc's so that this doesn't get lost.
Comment 3 Alistair Buxton 2018-12-05 15:57:48 CET
Well this got lost anyway.

What is that full_width_title setting actually supposed to do? Because at the moment it doesn't seem to have any effect on the visual appearance of the title bar.
Comment 4 Yousuf 'Jay' Philips 2020-05-09 21:06:01 CEST
Never noticed this until I watched this review of MX Linux. https://youtu.be/Gv_BkNvuNlE?t=250

The patch is available for the last 9 years, so is there any issue to getting this merged?
Comment 5 Olivier Fourdan editbugs 2020-05-10 17:01:03 CEST
(In reply to Yousuf 'Jay' Philips from comment #4)
> Never noticed this until I watched this review of MX Linux.
> https://youtu.be/Gv_BkNvuNlE?t=250
> 
> The patch is available for the last 9 years, so is there any issue to
> getting this merged?

The title is centered relative to the title area who's size varies depending on which buttons are enabled.

If we were to change that, it would need to be optional because the current behavior makes a lot of sense with many themes.
Comment 6 Yousuf 'Jay' Philips 2020-05-10 18:07:33 CEST
(In reply to Olivier Fourdan from comment #5)
> If we were to change that, it would need to be optional because the current
> behavior makes a lot of sense with many themes.

Can you identify some themes where this make sense, as it seems like it would be a bug in those themes.
Comment 7 Olivier Fourdan editbugs 2020-05-11 09:18:31 CEST
(In reply to Yousuf 'Jay' Philips from comment #6)
> Can you identify some themes where this make sense, as it seems like it
> would be a bug in those themes.

I'm sorry that doesn't make any sense, how could that be a “bug in those themes”?

Any theme that distinguish the title area from the rest would look odd with a globally centered title.
Comment 8 Yousuf 'Jay' Philips 2020-05-11 14:31:57 CEST
(In reply to Olivier Fourdan from comment #7)
> I'm sorry that doesn't make any sense, how could that be a “bug in those
> themes”?

Guess we were misunderstanding each other

> Any theme that distinguish the title area from the rest would look odd with
> a globally centered title.

Okay that was a more specific. Can you mention any popular ones that are like this, as I cant find any.
Comment 9 Olivier Fourdan editbugs 2020-05-11 15:37:35 CEST
In the base xfwm4 package, there's "Moheli".

Or a bunch of those from the "xfwm4-themes" package, like "Mofit" for example.
Comment 10 Yousuf 'Jay' Philips 2020-05-11 22:36:56 CEST
Thanks.

So i did some digging around with other DEs (Gnome, Mate, Cinammon, KDE) and only Xfce behaves in this manner, so I doubt theme designers, especially those who are creating cross-DE themes, would be wanting this behavior or are even aware of this Xfce-specific behaviour.

We have theme designers who are part of the dev team who could give their input to decide whether it should be the default or not, if you are willing to consider it.
Comment 11 Git Bot editbugs 2020-05-29 11:46:07 CEST
-- GitLab Migration Automatic Message --

This bug has been migrated to xfce.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.xfce.org/xfce/xfwm4/-/issues/54.

Please create an account or use an existing account on one of our supported OAuth providers. 

If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests

Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev

Bug #7409

Reported by:
Patrick Walton
Reported on: 2011-03-13
Last modified on: 2020-05-29

People

Assignee:
Olivier Fourdan
CC List:
6 users

Version

Version:
unspecified

Attachments

Proposed patch. (945 bytes, patch)
2011-03-13 19:10 CET , Patrick Walton
no flags

Additional information