Systray Position Changes

Bug #706237 reported by Tsu Jan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cairo-Dock Plug-ins
Incomplete
Undecided
Fabounet

Bug Description

When Systray (with a few icons in it) is put on the top right corner of the desktop, its position changes after logging out and in. There's no way to fix this position, although, when Systray is put on the top left corner, it remains there.

Revision history for this message
Fabounet (fabounet03) wrote : Re: [Cairo-dock-team] [Bug 706237] [NEW] Systray Position Changes

what if you start the dock with a delay on startup ?

2011/1/22 Tsu Jan <email address hidden>

> Public bug reported:
>
> When Systray (with a few icons in it) is put on the top right corner of
> the desktop, its position changes after logging out and in. There's no
> way to fix this position, although, when Systray is put on the top left
> corner, it remains there.
>
> ** Affects: cairo-dock-plug-ins
> Importance: Undecided
> Status: New
>
> --
> You received this bug notification because you are a member of Cairo-
> Dock Team, which is subscribed to Cairo-Dock Plug-ins.
> https://bugs.launchpad.net/bugs/706237
>
> Title:
> Systray Position Changes
>
> Status in Cairo-Dock : Plug-ins:
> New
>
> Bug description:
> When Systray (with a few icons in it) is put on the top right corner
> of the desktop, its position changes after logging out and in. There's
> no way to fix this position, although, when Systray is put on the top
> left corner, it remains there.
>
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~cairo-dock-team<https://launchpad.net/%7Ecairo-dock-team>
> Post to : <email address hidden>
> Unsubscribe : https://launchpad.net/~cairo-dock-team<https://launchpad.net/%7Ecairo-dock-team>
> More help : https://help.launchpad.net/ListHelp
>

Revision history for this message
Tsu Jan (tsujan2000) wrote :

A delay of 15 s didn't work.

Perhaps that's because the tray position is always calculated with its top left corner. (Am I right?)

Revision history for this message
Fabounet (fabounet03) wrote : Re: [Cairo-dock-team] [Bug 706237] Re: Systray Position Changes

maybe there is a problem with the gravity of the desklet and its position.
does it move by the same distance as its width ?

2011/1/23 Tsu Jan <email address hidden>

> A delay of 15 s didn't work.
>
> Perhaps that's because the tray position is always calculated with its
> top left corner. (Am I right?)
>
> --
> You received this bug notification because you are a member of Cairo-
> Dock Team, which is subscribed to Cairo-Dock Plug-ins.
> https://bugs.launchpad.net/bugs/706237
>
> Title:
> Systray Position Changes
>
> Status in Cairo-Dock : Plug-ins:
> New
>
> Bug description:
> When Systray (with a few icons in it) is put on the top right corner
> of the desktop, its position changes after logging out and in. There's
> no way to fix this position, although, when Systray is put on the top
> left corner, it remains there.
>
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~cairo-dock-team<https://launchpad.net/%7Ecairo-dock-team>
> Post to : <email address hidden>
> Unsubscribe : https://launchpad.net/~cairo-dock-team<https://launchpad.net/%7Ecairo-dock-team>
> More help : https://help.launchpad.net/ListHelp
>

Revision history for this message
Tsu Jan (tsujan2000) wrote :

No, it doesn't. It's movement is greater that its width.

I forgot to say that when I quit Cairo-Dock and then run it again, Systray doesn't move from the top right corner. Apart from the keyboard indicator and network manager icons, there are pidgin and CherryTree icons in it.

BTW, I don't use Systray on the right side. My report was only for the betterment of Cairo-Dock.

Revision history for this message
Fabounet (fabounet03) wrote :

could you please comment the line 124 in
cairo-dock-plug-ins/systray/src/systray-init.c
gtk_window_set_gravity (GTK_WINDOW (myContainer->pWidget), iGravity);
this was supposed to make the desklet expand to the left when it's on the
right side of the screen, but I'm not sure it's useful/working.
also, does the coordinates change in the conf file ?
Thanks for your great help as usual ! :-)

2011/1/24 Tsu Jan <email address hidden>

> No, it doesn't. It's movement is greater that its width.
>
> I forgot to say that when I quit Cairo-Dock and then run it again,
> Systray doesn't move from the top right corner. Apart from the keyboard
> indicator and network manager icons, there are pidgin and CherryTree
> icons in it.
>
> BTW, I don't use Systray on the right side. My report was only for the
> betterment of Cairo-Dock.
>
> --
> You received this bug notification because you are a member of Cairo-
> Dock Team, which is subscribed to Cairo-Dock Plug-ins.
> https://bugs.launchpad.net/bugs/706237
>
> Title:
> Systray Position Changes
>
> Status in Cairo-Dock : Plug-ins:
> New
>
> Bug description:
> When Systray (with a few icons in it) is put on the top right corner
> of the desktop, its position changes after logging out and in. There's
> no way to fix this position, although, when Systray is put on the top
> left corner, it remains there.
>
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~cairo-dock-team<https://launchpad.net/%7Ecairo-dock-team>
> Post to : <email address hidden>
> Unsubscribe : https://launchpad.net/~cairo-dock-team<https://launchpad.net/%7Ecairo-dock-team>
> More help : https://help.launchpad.net/ListHelp
>

Revision history for this message
Tsu Jan (tsujan2000) wrote :

Commenting out that line had no effect.

Some numbers: width of Systray before and after log-out = 97; x position before log-out = -97 (I also tried -1); x position after log-in = -315.

Revision history for this message
Tsu Jan (tsujan2000) wrote :

Hello again,

I don't know where the magic number -315 comes from in my case (my monitor resolution is 1280x1024). However, when I add:

gtk_window_move (GTK_WINDOW (myContainer->pWidget), myContainer->iWindowPositionX + 218, myContainer->iWindowPositionY);

to "systray-init.c" properly, Systray moves to the top left corner after log-in. Here, 218 = 315 - 97 and 97 is the width of Systray. That also works when I remove some tray applications from start-up, i.e. the difference 218 doesn't change.

Revision history for this message
Tsu Jan (tsujan2000) wrote :

Excuse me! I meant "top right" not "top left" with the last comment.

Revision history for this message
Matthieu Baerts (matttbe) wrote :

@fabounet: any idea about this bug? :-)

Changed in cairo-dock-plug-ins:
status: New → Incomplete
assignee: nobody → Fabounet (fabounet03)
Revision history for this message
Fabounet (fabounet03) wrote :

well, I think I understand why this happens, and we should probably modify
the way the desklet's gravity is handled (when a desklet is on the right,
its position should be given by its top-right corner, not the top-left
corner)
didn't have time to fix it though ^_^

2013/10/4 Matthieu Baerts <email address hidden>

> @fabounet: any idea about this bug? :-)
>
> ** Changed in: cairo-dock-plug-ins
> Status: New => Incomplete
>
> ** Changed in: cairo-dock-plug-ins
> Assignee: (unassigned) => Fabounet (fabounet03)
>
> --
> You received this bug notification because you are a member of Cairo-
> Dock Devs, which is subscribed to Cairo-Dock Plug-ins.
> https://bugs.launchpad.net/bugs/706237
>
> Title:
> Systray Position Changes
>
> Status in Cairo-Dock: Plug-ins:
> Incomplete
>
> Bug description:
> When Systray (with a few icons in it) is put on the top right corner
> of the desktop, its position changes after logging out and in. There's
> no way to fix this position, although, when Systray is put on the top
> left corner, it remains there.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/cairo-dock-plug-ins/+bug/706237/+subscriptions
>
> _______________________________________________
> Mailing list: https://launchpad.net/~cairo-dock-team
> Post to : <email address hidden>
> Unsubscribe : https://launchpad.net/~cairo-dock-team
> More help : https://help.launchpad.net/ListHelp
>

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.