libs: do not setup the clock applet as passive popup

two reasons for that - one is that no other applet does that (e.g. battery
and device applets dissapear once focus is lost) and second being that
passive popups are documented as non-focus stealing applets but the
calendar widget accepts key and mouse events (for various reasons) thus
stealing the focus to process key and mouse events is abosolutely ok

also the minium and preferred size are set by Plasma::Calendar

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2023-07-24 08:53:54 +03:00
parent 850c98cc3d
commit d7a2762955

View file

@ -126,7 +126,6 @@ public:
if (!calendarWidget) {
calendarWidget = new Plasma::Calendar();
calendarWidget->setAutomaticUpdateEnabled(false);
calendarWidget->setMinimumSize(QSize(230, 220));
}
} else {
delete calendarWidget;
@ -163,7 +162,6 @@ ClockApplet::ClockApplet(QObject *parent, const QVariantList &args)
d(new Private(this))
{
setPopupIcon(QIcon());
setPassivePopup(true);
}
ClockApplet::~ClockApplet()