Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 234172 - x11-wm/fluxbox - tray moves windows right and down when minimised, then unminimised
Summary: x11-wm/fluxbox - tray moves windows right and down when minimised, then unmin...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Jim Ramsay (lack) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-07 11:21 UTC by Goran Mekić
Modified: 2008-09-03 19:42 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Goran Mekić 2008-08-07 11:21:17 UTC
If I minimize xchat, gajim or some other app to tray, when clicking on the tray icon to activate the app, it's moved a little bit right and down.

Reproducible: Always

Steps to Reproduce:
Comment 1 Jim Ramsay (lack) (RETIRED) gentoo-dev 2008-08-07 16:50:29 UTC
Just to be clear - You are referring to the system tray (little icons beside the clock) and not the "iconbar" or "taskbar" which is the list of open windows across the bottom (names and icons)

Can you please try minimizing the regular way (using the window button), then restoring the regular way (clicking the window's name in the iconbar), with the same apps that exhibit this odd behaviour, just to see if the same effect is observed?
Comment 2 Goran Mekić 2008-08-07 17:09:11 UTC
(In reply to comment #1)
> Just to be clear - You are referring to the system tray (little icons beside
> the clock) and not the "iconbar" or "taskbar" which is the list of open windows
> across the bottom (names and icons)
    Yes, i mean system tray on the lower right corner of the screen (by default)

> Can you please try minimizing the regular way (using the window button), then
> restoring the regular way (clicking the window's name in the iconbar), with the
> same apps that exhibit this odd behaviour, just to see if the same effect is
> observed?
> 
     Minimizing to taskbar doesn't move the window at all.
Comment 3 Jim Ramsay (lack) (RETIRED) gentoo-dev 2008-08-07 21:49:57 UTC
Okay, then the problem technically isn't fluxbox, but I believe it can be worked around.

The problem:
When you "minimize to systray", the application technically closes its window, and so fluxbox destroys it and forgets about where it was last.  Then when you restore it the application creates a brand new window.  Fluxbox hasn't seen this one, so it places it using its normal new window placement algorithm, which will often place it just below and to the right of the last window it opened.

The workaround:
When the window is open, you can tell Fluxbox to remember the position so the next time the same window is created it appears in the same place.  Just right-click on the window titlebar and find the setting in there.

Please let me know if this works.
Comment 4 Goran Mekić 2008-08-08 06:54:03 UTC
> The problem:
> When you "minimize to systray", the application technically closes its window,
> and so fluxbox destroys it and forgets about where it was last.  Then when you
> restore it the application creates a brand new window.  Fluxbox hasn't seen
> this one, so it places it using its normal new window placement algorithm,
> which will often place it just below and to the right of the last window it
> opened.
    But it happens even if that's the only window on the screen.

> The workaround:
> When the window is open, you can tell Fluxbox to remember the position so the
> next time the same window is created it appears in the same place.  Just
> right-click on the window titlebar and find the setting in there.
> 
> Please let me know if this works.
    This almost works. First time the window is created (from tray) it's moved also, but every next time it's on the same position (where it moved the first time).

Comment 5 Ben Leggett 2008-09-02 23:04:25 UTC
I have exactly this issue. Didn't happen on my old x86 1024x768 laptop,
but after installing Gentoo on the new 1280x800 amd64 laptop, I started to get this problem.
Comment 6 Jim Ramsay (lack) (RETIRED) gentoo-dev 2008-09-03 16:27:16 UTC
Now that fluxbox-1.1.0-r1 is out, please give that a try - There have been so many changes between 1.0.0 and this one that the window placement may have become more stable.

Thanks!
Comment 7 Ben Leggett 2008-09-03 17:55:33 UTC
Seems to be fixed in 1.1.0-r1.
Comment 8 Jim Ramsay (lack) (RETIRED) gentoo-dev 2008-09-03 19:42:57 UTC
That is great news!

Marking as fixed.