Am Freitag, 27. März 2015 schrieb Takao Fujiwara : > 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.
The workarea can change randomly at any point during the session (eg. because the user resized the panel) - you want to listen for changes in the property and fix the position of your bar in return - that's not a one time event to spot. Cheers, Thomas
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
