FireTray icon indicating copy to clipboard operation
FireTray copied to clipboard

minimised to tray broken in Ubuntu

Open kitgarrett opened this issue 13 years ago • 16 comments

I think the latest update has sadly broken Firetray - whenever I minimize Thunderbird to the tray I can't restore it to desktop by any means. I have to instead restart Thunderbird in safemode and disable the add-on to access the program. Ubuntu 11.10, Thunderbird 11.

kitgarrett avatar Mar 22 '12 19:03 kitgarrett

have the same issue here thunderbird 11.0 Firetray 0.4.1 Ubuntu 11.10 oneiric LInux 3.0.0-16-generic

jusurb avatar Mar 23 '12 06:03 jusurb

Hi, bug confirmed. In my case, this was because the Thunderbird/Firefox icon was not created (displayed?) in the taskbar. I eventually managed to get the icons back, but I couldn't tell exactly how, since I've been struggling for more than 3 hours. Things to try:

gsettings set com.canonical.Unity.Panel systray-whitelist "['all']" # can also use dconf-editor as suggested in: http://askubuntu.com/questions/30742/how-do-i-access-and-enable-more-icons-to-be-in-the-system-tray

apt-get install gtk2-engines-pixbuf as suggested in: https://bugs.launchpad.net/ubuntu/+source/light-themes/+bug/762167 https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/854992

foudfou avatar Mar 28 '12 19:03 foudfou

If I understand this correctly I'm seeing the same issue. You can click the TB notification icon to minimize the window and it can be restored correctly HOWEVER if you use the "-" on the TB window pane to minimize...I have to close TB all together because it can't ever be restored. Just curious as to why this was closed?

Anyone else seeing this issue?

Linux Mint 12 (updated) TB 11.0.1 Foxtray 0.4.1

ckesey avatar Apr 10 '12 14:04 ckesey

apt-get install gtk2-engines-pixbuf

also does not help

jusurb avatar Apr 10 '12 14:04 jusurb

@ckesey I can confirm your issue. The tray icon is displayed, but the minimized event is not catched. So FireTray will always try to hide all windows when clicking on the icon.

@Gamesh do you get a TB tray icon when launching TB ? If not, then I think we have 2 issues here.

foudfou avatar Apr 10 '12 15:04 foudfou

@ckesey there may also be conflicts with Ubtuntu extensions like Global Menu Bar and Messaging Menu and Unity Launcher: after disabling both, I could restore TB with 2 Alt-Tab. Still, the minimize event is not catched, and that needs to be fixed.

foudfou avatar Apr 10 '12 15:04 foudfou

Yes I do get the TB logo the whole time and never goes away unless the TB is killed. I've noticed that it all depends on how it was hidden. If you click the "-" to hide....game over for me. I have to force close it and reopen.

I've tried this in both Cinnamon and Gnome 3 with same results

ckesey avatar Apr 10 '12 16:04 ckesey

I've tried just about everything I know to bring it back and can't find a pattern that works to bring it back.

Alt-Tab does not show it and changing from workspace to workspace does nothing either.

When I double click on the icon in the tray I can often times see effects of a window being maximized (very quickly and then goes away) however never shows any of the TB windows.

I'm assuming this is a Firetray issue rather than a linix distro/TB issue?

ckesey avatar Apr 10 '12 17:04 ckesey

Unity is actually acting weird:

  • UnmapNotify event is not sent when minimizing, so the minimize handler is not actually triggered. In other words: the hide_on_minimize feature was broken. I tried to correct that in the minimize-detect branch. Could you try to build it, and tell if it works better ?
  • Now, with the correction, when showing a window after minimizing, the TB window is not actually shown: it's "shown" minimized. So you can show it with say Alt-Tab I'll be digging further anyway.

foudfou avatar Apr 17 '12 23:04 foudfou

foudfou:

I'm not exactly sure what I'm suppose to do to build it but let me tell you what I've done thus far. I've noticed there are two files (on the link you sent) that have been modified in the last 24 hours. I copied the code from those and replaced it with what I had.

After replacing these two files (and launch TB) it doesn't go to the tray at all. When I minimize the window it goes to the task bar but never goes to the tray. When I click the "x" in TB, which usually sends it to the tray, it closes the window. I had to reinstall the extension to get the TB icon to show in the tray again.

If I've not done something correctly to test this please let me know.

ckesey avatar Apr 18 '12 18:04 ckesey

I created build instructions. Hope this helps.

I also would like to make sure we understand the same thing by "minimizing windows": I click on the "" icon on the top left corner of the application window. "" is between "x" and the square icon (i.e. btw. close and maximize). Do you minimize by other means ?

foudfou avatar Apr 19 '12 08:04 foudfou

Thanks for the help on building this extension and the easy to follow instructions.

Yes I am using the "_" on the left side of the maximize. Even after building and installing this I still have the same issue. I know something is new because the TB icon has now changed to a envelope in the system tray.

I've learned how to turn on debug and have some info. When I click the "_" button and can't bring it back from the system tray I get this on a single click to the firetray system tray icon (doesn't bring windows back until I close it):

*** LOG firetray: showHideAllWindows: ctypes.voidptr_t(ctypes.UInt64("0x0")) *** LOG firetray: visibleWindowsCount=-1 *** LOG firetray: windowsCount=1 *** LOG firetray: visibilityRate=-1 *** LOG firetray: hideAllWindows

This is what I get when I restore from minimize using the system tray icon (and works as expected):

*** LOG firetray: showHideAllWindows: ctypes.voidptr_t(ctypes.UInt64("0x0")) *** LOG firetray: visibleWindowsCount=0 *** LOG firetray: windowsCount=1 *** LOG firetray: visibilityRate=0 *** LOG firetray: showAllWindows *** LOG firetray: showSingleWindow xid=73400511 *** LOG firetray: showSingleStateful xid=73400511 *** LOG firetray: restore: x=0, y=25, w=1680, h=996 *** LOG firetray: restored WindowStates: 2 *** LOG firetray: window raised

ckesey avatar Apr 19 '12 19:04 ckesey

foudfou:

I wanted to make sure you knew this if you haven't read it above....I'm using Linux Mint 12 with Cinnamon and TB 11.0.1

ckesey avatar Apr 20 '12 18:04 ckesey

@ckesey, thx.

I managed to have it half-working (4174095780f): on my Ubuntu 12.04, I can minimize to tray, but on restoring, the TB window is not shown, although the menu is in the indicator (which means that the window has the focus). Alt-tab or clicking on the launcher icon actually shows it. Could you confirm the "fix" is working for you ?

I think I'll leave that issue aside, at least for v0.4.2. And advise somehow that "minimize to tray" just doesn't work well under Unity. Unity/Compiz is definitely acting weird, and that needs to be sorted out with the Unity devs.

foudfou avatar May 01 '12 21:05 foudfou

Just found out that remember desktop does not work either in Compiz. Compiz has a concept of Viewport (as opposed to Desktops). See previous discussions about it. Not sure I can fix that. Don't understand why nsIBaseWindow.setPositionAndSize() not sufficient to place window inside the viewport.

foudfou avatar May 05 '12 13:05 foudfou

Activate restored windows doesn't work either under Compiz.

foudfou avatar May 05 '12 14:05 foudfou