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

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

Bug Description


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:


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 as compiled on Arch Linux from AUR. See

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, when it will be available in arch please test again. I am interested if this is still problem with compiz + 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 compiz release and then upgrade both.

compiz 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 :

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 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See 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 . 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