Skip to content
This repository has been archived by the owner on Oct 16, 2020. It is now read-only.

minimised to tray broken in Ubuntu #22

Open
kitgarrett opened this issue Mar 22, 2012 · 16 comments
Open

minimised to tray broken in Ubuntu #22

kitgarrett opened this issue Mar 22, 2012 · 16 comments
Labels

Comments

@kitgarrett
Copy link

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.

@Gamesh
Copy link

Gamesh commented Mar 23, 2012

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

@foudfou
Copy link
Owner

foudfou commented Mar 28, 2012

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

@ckesey
Copy link

ckesey commented Apr 10, 2012

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

@Gamesh
Copy link

Gamesh commented Apr 10, 2012

apt-get install gtk2-engines-pixbuf

also does not help

@foudfou foudfou reopened this Apr 10, 2012
@foudfou
Copy link
Owner

foudfou commented Apr 10, 2012

@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
Copy link
Owner

foudfou commented Apr 10, 2012

@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.

@ckesey
Copy link

ckesey commented Apr 10, 2012

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
Copy link

ckesey commented Apr 10, 2012

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?

@foudfou
Copy link
Owner

foudfou commented Apr 17, 2012

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.

@ckesey
Copy link

ckesey commented Apr 18, 2012

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.

@foudfou
Copy link
Owner

foudfou commented Apr 19, 2012

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 ?

@ckesey
Copy link

ckesey commented Apr 19, 2012

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
Copy link

ckesey commented Apr 20, 2012

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

@foudfou
Copy link
Owner

foudfou commented May 1, 2012

@ckesey, thx.

I managed to have it half-working (4174095): 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
Copy link
Owner

foudfou commented May 5, 2012

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
Copy link
Owner

foudfou commented May 5, 2012

Activate restored windows doesn't work either under Compiz.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants