← Back to team overview

compiz team mailing list archive

[Bug 1104511] [NEW] Compiz Application Switcher (ALT-Tab) does just use high res icons when provided by .desktop file


Public bug reported:

I am trying to set a high resolution for a Java based application

This application uses SWT which uses the GTK function
gtk_window_set_icon() to set an icon for the application.

However, no matter of the resolution I pass there the ALT-Tab switcher
uses a bad icon.

This has been reported as well for Python
unity) and reported in the forums

I tried to get more insights at http://askubuntu.com/questions/245875

The following Java code shows the problem:
import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.GC;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;

public class Test {
  public static void main(String[] args) {
    Display display = new Display();

    final int SIZE = 256;
    Image large = new Image(display, SIZE, SIZE);
    GC gc = new GC(large);
    gc.fillArc(0, 0, SIZE, SIZE, 45, 270);

    Shell shell = new Shell(display);
    shell.setImages(new Image[] {  large });


    while (!shell.isDisposed()) {
      if (!display.readAndDispatch())


ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: compiz 1:0.9.9~daily13.01.21-0ubuntu1
ProcVersionSignature: Ubuntu 3.8.0-1.5-generic 3.8.0-rc4
Uname: Linux 3.8.0-1-generic x86_64
ApportVersion: 2.8-0ubuntu2
Architecture: amd64
CompizPlugins: No value set for `/apps/compiz-1/general/screen0/options/active_plugins'
CompositorRunning: compiz
Date: Thu Jan 24 23:10:03 2013
DistUpgraded: 2013-01-23 07:16:01,014 DEBUG enabling apt cron job
DistroCodename: raring
DistroVariant: ubuntu
 tp-smapi, 0.41, 3.5.0-22-generic, x86_64: installed
 tp-smapi, 0.41, 3.8.0-1-generic, x86_64: installed
 virtualbox, 4.1.22, 3.5.0-22-generic, x86_64: installed
 virtualbox, 4.1.22, 3.8.0-1-generic, x86_64: installed
 Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller [8086:2a42] (rev 07) (prog-if 00 [VGA controller])
   Subsystem: Lenovo Device [17aa:20e4]
   Subsystem: Lenovo Device [17aa:20e4]
InstallationDate: Installed on 2012-03-31 (299 days ago)
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Beta amd64 (20120331)
MachineType: LENOVO 6474A46
MarkForUpload: True
PackageArchitecture: all
 Socket 0:
   no product info available
 Socket 0:
   no card
 PATH=(custom, no user)
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.8.0-1-generic root=UUID=b32d85c9-d1fb-49ca-8c94-c64d321221b3 ro quiet splash vt.handoff=7
SourcePackage: compiz
UpgradeStatus: Upgraded to raring on 2013-01-23 (1 days ago)
dmi.bios.date: 10/17/2012
dmi.bios.vendor: LENOVO
dmi.bios.version: 7UET94WW (3.24 )
dmi.board.name: 6474A46
dmi.board.vendor: LENOVO
dmi.board.version: Not Available
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: Not Available
dmi.modalias: dmi:bvnLENOVO:bvr7UET94WW(3.24):bd10/17/2012:svnLENOVO:pn6474A46:pvrThinkPadT400:rvnLENOVO:rn6474A46:rvrNotAvailable:cvnLENOVO:ct10:cvrNotAvailable:
dmi.product.name: 6474A46
dmi.product.version: ThinkPad T400
dmi.sys.vendor: LENOVO
version.compiz: compiz 1:0.9.9~daily13.01.21-0ubuntu1
version.ia32-libs: ia32-libs 20090808ubuntu36
version.libdrm2: libdrm2 2.4.41-0ubuntu1
version.libgl1-mesa-dri: libgl1-mesa-dri 9.0.2-0ubuntu1
version.libgl1-mesa-dri-experimental: libgl1-mesa-dri-experimental N/A
version.libgl1-mesa-glx: libgl1-mesa-glx 9.0.2-0ubuntu1
version.xserver-xorg-core: xserver-xorg-core 2:
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev 1:2.7.3-0ubuntu2
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:7.0.0-0ubuntu1
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.20.19-0ubuntu2
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:1.0.6-0ubuntu1
xserver.bootTime: Thu Jan 24 22:57:21 2013
xserver.configfile: default
xserver.logfile: /var/log/Xorg.0.log
xserver.version: 2:
xserver.video_driver: intel

** Affects: compiz (Ubuntu)
     Importance: Undecided
         Status: New

** Tags: amd64 apport-bug compiz-0.9 raring running-unity ubuntu

You received this bug notification because you are a member of compiz
packagers, which is subscribed to compiz in Ubuntu.

  Compiz Application Switcher (ALT-Tab) does just use high res icons
  when provided by .desktop file

To manage notifications about this bug go to:

Follow ups