[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: timing of KDE5 panel  in login
From:       Takao Fujiwara <tfujiwar () redhat ! com>
Date:       2015-03-27 10:59:13
Message-ID: 55153801.7070806 () redhat ! com
[Download RAW message or body]

On 03/27/15 19:34, Thomas Lübking-san wrote:
> On Freitag, 27. März 2015 11:21:35 CEST, Takao Fujiwara wrote:
> > I'd like to run a custom panel at bottom right in KDE5 for \
> > ibus(propertypanel.vala): https://github.com/ibus/ibus/tree/master/ui/gtk3
> > 
> > Since KDE5 allocates the owned panel at bottom, I try to get the desktop height \
> > using _NET_CURRENT_DESKTOP atom.
> 
> Hawhat?
> You likely want to monitor _NET_WORKAREA - _NET_CURRENT_DESKTOP is the current \
> virtual desktop, that gets your zero information on strut restrictions.

Right, I try to get the desktop size from _NET_WORKAREA and _NET_CURRENT_DESKTOP.

> 
> > My custom panel runs at login time and tries to get the desktop height using \
> > _NET_CURRENT_DESKTOP atom but KDE5 panel still is not launched.
> 
> What does the panel have to do with the current desktop??

After KDE panel runs, the height of root window != the height of _NET_WORKAREA \
because KDE5 panel is allocated. I wish to move my panel to (the width of root \
window, the height of _NET_WORKAREA) But When I try to get the the height of \
_NET_WORKAREA during the login, the height of root window == the height of \
_NET_WORKAREA because KDE5 panel is  not allocated yet. So the position of my panel \
and one of the KDE panel is duplicated.

This is the expected result.

+------- plasma-desktop 5 -----+
> > 
> +-----------+|
> > my panel  ||
> +-----------+|
> +----------------------------+|
> > KDE5 panel                ||
> +----------------------------+|
+------------------------------+

But actual result at login time is duplicated because KDE5 panel is not allocated:

+----------------+-----------+
> KDE5 panel    | My panel  |
+----------------+-----------+

After KDE5 panel runs, my panel gets the right position because the height of \
_NET_WORKAREA returns the right value.

> 
> => What information are you precisely interested in?
> a) the available screen area (not covered by strutting panels)
> b) the moment when plasmashell is running and or
> c) has added some specific panel/plasmoid/etc.
> 
> Cheers,
> Thomas
> 
> > > Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


> > Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic