Startup applications get incorrect placement "under" top panel

Bug #859724 reported by Xavier Guillot
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Unity
Confirmed
Undecided
Unassigned
psensor (Ubuntu)
Invalid
Undecided
Unassigned
unity (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Several startup applications, eg Psensor, hotot and alarm-clock-applet, are incorrectly placed at launch in Oneiric. They often go "over" the Unity dock on the left - I configured this one to be always visible, so other windows, even maximized, should be at right from the dock. They also go "under" the top panel, so that their title bar is hidden, and the windows cannot be moved except by ALT+LEFT_MOUSE.
See picture joined.

Revision history for this message
Xavier Guillot (valeryan-24) wrote :
Revision history for this message
Jean-Philippe Orsini (jfi) wrote :

Bonjour Xavier,

I guess that your Ubuntu version is Oneiric and that Psensor is not 0.6.1.9 (version in the Oneiric repo) but a more recent one (at least 0.6.2.10). Could you please confirm and gives the exact Psensor version (apt-cache show psensor) ?

I also assume that you have checked the 'Hide Window Decoration' option in the Psensor preferences.

What do you mean by 'not movable'? If you have checked the 'Hide Window Decoration' option, it is normal that the window title bar is not visible, so you cannot use the title bar to move the window and you don't have the close button. You should be able to move the window by positioning the mouse in the window then press alt+left mouse button and move the mouse. You can use alt+f4 to close the window.

The window placement of Psensor is managed by Unity and not Psensor, so you should open a report to the package Unity (maybe it is already reported).

If sometimes the window is over the dock bar, it is a Unity issue like for the placement.

If you check the 'Keep Window Below' option of Psensor, it is not always lower than the dock bar?

Regards,
                               JeanFI.

Revision history for this message
Xavier Guillot (valeryan-24) wrote :

Hello JeanFI,

Thanks for the quick answer and explanations.

I added Unity as project affected by this bug.

To be more precise :

- Yes, I use Psensor 0.6.2.11 on Oneiric beta 2 from your ppa

- No, I didn't check the 'Hide Window Decoration' option in the Psensor preferences, neither 'Keep Window Below' option.

- Psensor is not movable because, as you can see on the screenshot, its title bar of main window, with the "Close", "Minimize", "Maximize" buttons is "hidden" by the Unity top indicator and global menu panel. So I can not move the window with the mouse, if I click, it opens the global menu, I can quit from here.

Then restart Psensor, and this time it always starts correctly, ie just right Unity dock and just above global menu.

Revision history for this message
Jean-Philippe Orsini (jfi) wrote :

Xavier,

I am reproducing the issue.

It appears that it is due to the fact that Psensor is started before the WM is handling the windows placement.

/etc/xdg/autostart/psensor.desktop does not set X-GNOME-Autostart-Phase, so it should be the 'Applications' phase (which is after the WM). Setting this attribute to Applications does not change the issue. Anyway, I don't know if Unity is supposed to support it.

But...... X-GNOME-Autostart-Delay seems to work (I set it to 30), psensor is started ~30s after Unity and its window is placed correctly.

Maybe not very clean, but at least it will avoid the need to manually quit or move the psensor windows at each startup.

I am going to commit this workaround and hope that some Unity people can provide a better solution.

Changed in unity:
status: New → Confirmed
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in psensor (Ubuntu):
status: New → Confirmed
Revision history for this message
Xavier Guillot (valeryan-24) wrote :

Thanks for the answer and explanation.

And yes it seems correlated to Unity, because I have the same problem with application Hotot if I also put it on the startup programs :

http://code.google.com/p/hotot/issues/detail?id=431&colspec=ID%20Type%20Status%20Priority%20Reporter%20Milestone%20Owner%20Summary&start=100

So I hope that it will be corrected in Unity, perhaps by avoiding that programs which do not launch on maximized windows start before the Dock.

Changed in unity (Ubuntu):
status: New → Confirmed
Revision history for this message
Gerhard Burger (burger.ga) wrote :

Having the same issue with alarm-clock-applet using Oneiric. It is also set as a startup program. The Window is movable though by pressing ALT+LEFT_MOUSE. Don't know if this is still an issue in unity 5. Will change the bug description since apparently multiple startup applications are affected.

summary: - PSensor as startup applications goes "over" Unity dock
+ Startup applications get incorrect placement "under" top panel
description: updated
description: updated
Changed in psensor (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
Omer Akram (om26er) wrote :

thanks for the bug report. This particular bug has already been reported and is tracked as bug 759898

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.