gtk-window-decorator incorrectly draws the title bar if GDK_SCALE is set

Bug #1530277 reported by Alexander E. Patrakov on 2015-12-31
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Compiz
Undecided
Unassigned
Xenial
Undecided
Unassigned
compiz (Ubuntu)
Undecided
Unassigned
Nominated for Zesty by Marco Trevisan (Treviño)
Xenial
Undecided
Unassigned

Bug Description

[Impact]

I have a HiDPI screen. For all other GTK3 applications (and, to some extent, GTK2) to deal with it, I have to set two variables:

GDK_SCALE=3
GDK_DPI_SCALE=0.33333

The font rendering DPI is set to 240.

Unfortunately, this breaks decorations drawn by gtk-window-decorator, as illustrated on the screenshot. I can work around this by creating a wrapper that sets these variables to 1, only for this broken decorator.

[Test case]

1) In mate or pure compiz session run:
   env GDK_SCALE=3 GDK_DPI_SCALE=0.33333 gtk-window-decoration --replace
2) Check the decorations appearance
3) They should look properly scaled without glitches

[Regression potential]
The scaling is wrong or the decorations aren't properly painted

Related branches

Forgot to say: this is about Compiz 0.9.12.2-10 as compiled on Arch Linux from AUR. See https://aur.archlinux.org/packages/compiz/

I guess this is still bug/problem, right? Can you tell Metacity version that is used with compiz?

Metacity had HiDPI changes/fixes... Soon there will be new compiz release 0.9.13.0, when it will be available in arch please test again. I am interested if this is still problem with compiz 0.9.13.0 + metacity 3.20.x.

There is no Metacity running, but version 3.18.4-1 is installed. I use MATE desktop on Arch Linux.

I will upgrade Metacity later today to version 3.20.1-1 and retest the bug.

You don't need it to be running, library from metacity is used to draw themes. :)

Do not upgrade yet, current compiz version will not work with metacity 3.20, wait for 0.9.13.0 compiz release and then upgrade both.

compiz 0.9.13.0 is now in arch. :) please test.

The bug still exists

If you know how to rebuild compiz then check linked merge proposal. That will fix decorations, but it is not full fix... I have no time to work on it. :(

I will check that on Saturday. thanks!

Changed in compiz:
status: New → Fix Committed
Changed in compiz (Ubuntu):
status: New → Fix Released
Amr Ibrahim (amribrahim1987) wrote :

Ping!
SRU into Xenial.

description: updated

Hello Alexander, or anyone else affected,

Accepted compiz into xenial-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/compiz/1:0.9.12.3+16.04.20171116-0ubuntu1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed.Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested and change the tag from verification-needed-xenial to verification-done-xenial. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-xenial. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in compiz (Ubuntu Xenial):
status: New → Fix Committed
tags: added: verification-needed verification-needed-xenial
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers