@ -1052,8 +1052,30 @@ MouseArea{
function slotPublishGeometries ( ) {
if ( ( isWindow || isStartup || isGroupParent ) && icList && ! icList . delayingRemoval ) {
tasksModel . requestPublishDelegateGeometry ( mainItemContainer . modelIndex ( ) ,
backend . globalRect ( mainItemContainer ) , mainItemContainer ) ;
var globalChoords = backend . globalRect ( mainItemContainer ) ;
/ / ! M a g i c L a m p e f f e c t d o e s n t l i k e c o o r d i n a t e s o u t s i d e t h e s c r e e n a n d
/ / ! w i d t h , h e i g h t s o f z e r o v a l u e . . . S o w e n o w n o r m a l i z e t h e g e o m e t r i e s
/ / ! s e n t i n o r d e r t o a v o i d s u c h c i r c u m s t a n c e s
if ( root . vertical ) {
globalChoords . width = 1 ;
globalChoords . height = Math . max ( root . iconSize , mainItemContainer . height ) ;
} else {
globalChoords . height = 1 ;
globalChoords . width = Math . max ( root . iconSize , mainItemContainer . width ) ;
}
if ( root . position === PlasmaCore . Types . BottomPositioned ) {
globalChoords . y = plasmoid . screenGeometry . y + plasmoid . screenGeometry . height - 1 ;
} else if ( root . position === PlasmaCore . Types . TopPositioned ) {
globalChoords . y = plasmoid . screenGeometry . y + 1 ;
} else if ( root . position === PlasmaCore . Types . LeftPositioned ) {
globalChoords . x = plasmoid . screenGeometry . x + 1 ;
} else if ( root . position === PlasmaCore . Types . RightPositioned ) {
globalChoords . x = plasmoid . screenGeometry . x + plasmoid . screenGeometry . width - 1 ;
}
tasksModel . requestPublishDelegateGeometry ( mainItemContainer . modelIndex ( ) , globalChoords , mainItemContainer ) ;
}
}