diff options
author | Ken Moore <ken@pcbsd.org> | 2014-10-30 14:29:32 -0400 |
---|---|---|
committer | Ken Moore <ken@pcbsd.org> | 2014-10-30 14:29:32 -0400 |
commit | 10aa0b0ffb77023f3828486aeefcdfbf91cca7b7 (patch) | |
tree | 569ecdaaab76abfa603856b9280b0a02db70e811 /lumina-desktop/desktop-plugins/LDPluginContainer.h | |
parent | For the system tray, only have it make changes when doing the whole check: do... (diff) | |
download | lumina-10aa0b0ffb77023f3828486aeefcdfbf91cca7b7.tar.gz lumina-10aa0b0ffb77023f3828486aeefcdfbf91cca7b7.tar.bz2 lumina-10aa0b0ffb77023f3828486aeefcdfbf91cca7b7.zip |
Large quality of life update to Lumina:
1) Fix up the applauncher desktop plugins so that the initial sizing is sane.
2) Completely remove all global static variables from the session.
3) Re-enable the login/logout chimes (works properly without static variables)
4) Streamline the desktop background rotation algorithms a bit.
5) Greatly streamline the Session start procedure (50% to 75% faster on my computer here)
6) Make sure the background wallpaper does not rotate every time the desktop settings file changes (only when the backgrounds for that desktop are changed, or the rotation timer goes off)
Diffstat (limited to 'lumina-desktop/desktop-plugins/LDPluginContainer.h')
-rw-r--r-- | lumina-desktop/desktop-plugins/LDPluginContainer.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lumina-desktop/desktop-plugins/LDPluginContainer.h b/lumina-desktop/desktop-plugins/LDPluginContainer.h index 52e426ba..109083da 100644 --- a/lumina-desktop/desktop-plugins/LDPluginContainer.h +++ b/lumina-desktop/desktop-plugins/LDPluginContainer.h @@ -39,8 +39,10 @@ public: if(settings->allKeys().isEmpty()){ //Brand new plugin - no location/size info saved yet //save the initial size of the plugin - the initial location will be set automatically - settings->setValue("location/width", plugin->sizeHint().width()); - settings->setValue("location/height", plugin->sizeHint().height()); + QSize sz = plugin->sizeHint(); + if(!sz.isValid()){ sz = QSize(64,64); } + settings->setValue("location/width", sz.width()); + settings->setValue("location/height", sz.height()); settings->sync(); } this->setContentsMargins(0,0,0,0); |