sugarlabs / sugar

Sugar GTK shell
GNU General Public License v3.0
255 stars 241 forks source link

Frame icons vanish when frame palettes open #819

Open quozl opened 5 years ago

quozl commented 5 years ago

Reproducer: open the frame, hover mouse or touch the battery or speaker icon.

Expected result: palette for icon is drawn, no other changes.

Observed result: palette for icon is drawn, but other icons may vanish. Is most likely on first use of palette for an icon; repeated uses don't cause other icons to vanish.

Occurs on Ubuntu 18.04

JuiP commented 4 years ago

Just an observation- The battery icon doesnot seem to vanish. However, other status icons vanish, even on repeated uses. Is there some patch of the code that is different for Battery which is making it behave the way it is supposed to?

I'm not quite sure if I will be able to fix this but I want to work on this issue, what do you think is the best way to proceed?

quozl commented 4 years ago

Thanks. You are correct it may relate to the specific code for each icon. Or it could relate to the relative position of the icons; for example there is no icon to the right of the battery icon, so there's no way to force a redraw for the area immediately adjacent to the battery icon. This could be proven or disproven by changing the display order of the icons temporarily.

Sorry, I don't know what is a best way to proceed. Just proceed in any way that may gather useful information or test hypotheses.

p.s. if I wanted to find out how to proceed, I would have done so without creating an issue. An issue represents an unmet need that the author of the issue does not plan to immediately address. Also there's no need to say you are working on an issue; anyone is free to work on an issue at any time, making whatever contributions that help.

shaansubbaiah commented 4 years ago

Faced the same issue where the icon disappears and the background turns black, reproduced by:

Hover or click any icon -> hover or click an adjacent icon -> Previous icon remains blank

This occurs only when moving to an icon adjacent to the previously selected icon. Cannot get the rightmost icon to turn blank.

Perhaps it has something to do with hover like these lines in /src/jarabe/frame/framewindow.py

    def _enter_notify_cb(self, window, event):
        if event.detail != Gdk.NotifyType.INFERIOR:
            self.hover = True

    def _leave_notify_cb(self, window, event):
        if event.detail != Gdk.NotifyType.INFERIOR:
            self.hover = False

Not sure what the tray with the Speech assistant and Volume is called though.