Bug 435222 - No "emblems" displayed on Linux scaled desktop if more than 3 images in windowsImages
Summary: No "emblems" displayed on Linux scaled desktop if more than 3 images in windo...
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.4   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks: 434665
  Show dependency tree
 
Reported: 2014-05-19 13:43 EDT by David Williams CLA
Modified: 2020-05-26 04:18 EDT (History)
8 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Williams CLA 2014-05-19 13:43:13 EDT
I'm opening this bug as the suggestion of bug 434665 comment 11. 

But, see bug 432741 on more of the "history" behind no emblem displayed, and our current fix/work around. 

By chance I noticed at "EPP packages" displayed an emblem, on Linux, but SDK did not. After much "trial and error" discovered the EPP packages only specify 3 images in their "windowsImages" ... and indeed, that fixed our case too. But, that fix causes the problem noted in bug  434665. 

I would appreciate a quick "appraisal" of this issue ... if it looks like a simple fix ... is there another "workaround"? 

The reason for the urgency, is that if EPP packages are to get correct behavior then they'd have to use "4 images" too, for bug 434665 and then lack of emblems would be a regression. So, we may face a tough choice of "which problem to solve", if we can't solve both of them.
Comment 1 Markus Keller CLA 2014-05-19 14:22:47 EDT
To spell out the APIs involved: The IDEApplication calls SWT's Decorations#setImages(Image[]) with a set of images that are specified in the product (same images for all platforms).

Other platforms seem to be able to skip images they don't want, but on Linux GTK, supplying more images seems to break the "emblems". If that's a platform limitation, then SWT should filter out the unsuitable images, so that API clients are shielded from platform differences and can pass all the images they want.

To reproduce in an Eclipse runtime workbench:
- check out project platform/org.eclipse.sdk from git://git.eclipse.org/gitroot/platform/eclipse.platform.git
- open plugin.xml
- on line 7, add e.g. ",eclipse512.png" to the windowImages
Comment 2 Dani Megert CLA 2014-05-21 11:49:22 EDT
This probably goes to 4.5 or 4.4.1.
Comment 3 Sravan Kumar Lakkimsetti CLA 2015-03-24 05:33:26 EDT
Hi David,

We are triaging bugs for 4.5 M7. Please let us know if you think this bug has to be addressed M7/4.5?
Comment 4 David Williams CLA 2015-03-24 10:07:56 EDT
No, I would not think it is "stop ship" ... we've been living with it for a while now. (But honestly, I have "lost track" of many of the "side issues" and assume they are still present, and assume we can live with them too.).
Comment 5 Sravan Kumar Lakkimsetti CLA 2016-03-23 05:37:20 EDT
Moving out of 4.6 as we donot have cycles to work on this issue
Comment 6 Alexander Kurtakov CLA 2018-10-19 08:36:02 EDT
How is this one actually reproduced?
Comment 7 David Williams CLA 2018-10-26 10:27:52 EDT
(In reply to Alexander Kurtakov from comment #6)
> How is this one actually reproduced?

In short, do something that causes/requires the emblem to be displayed! :) 

There may be several ways, depending on Linux desktop chosen, and Linux UI preferences selected, But the way I originally noticed it was using Ubuntu (highly customized) and Compiz Display Manager. Under its "Window Management" preferences is one called "Scale", that must be enabled. 

Then, put the desktop in scale mode (Super-w). It is the one that shows all open windows at once, on desktop, as "little app windows" so you can select the one you want to work with. 

When you have a lot of windows, they can be pretty small so the 
emblem -- displayed in lower right corner as a "large icon" -- helps distinguish the window(s) that you are looking for. 

In CompizConfig Setting Manager, it gives three choices for "Overlay Icon": a) None, b) Emblem, c) Big. It must be set to Emblem.

Again, some of this info in my head is a few years old and based on highly customized Ubuntu and things may be different on newer or other distros.
Comment 8 Eric Williams CLA 2019-02-14 14:37:30 EST
Sravan, is this one still relevant?