diff options
author | Ken Moore <moorekou@gmail.com> | 2015-07-10 08:48:54 -0400 |
---|---|---|
committer | Ken Moore <moorekou@gmail.com> | 2015-07-10 08:48:54 -0400 |
commit | f6e8efef826cd3b45db8f5be03f540dc7b528d96 (patch) | |
tree | ab539ea4c627fdfa41bfb541f2c166a5c9eae9bd /lumina-config/AppDialog.h | |
parent | Ok, NOW the desktop plugins layout methodology is consistent/reliable. Had to... (diff) | |
download | lumina-f6e8efef826cd3b45db8f5be03f540dc7b528d96.tar.gz lumina-f6e8efef826cd3b45db8f5be03f540dc7b528d96.tar.bz2 lumina-f6e8efef826cd3b45db8f5be03f540dc7b528d96.zip |
Clean up a few last things in lumina-config:
1) Centering the app selection window on the parent
2) When a special keypress is detected (no modifiers), prepend "None" to the Fluxbox key string (seems to be more reliable).
3) After saving the list of desktop plugins, have it re-load the setting from the file 1 second later to catch the unique identifiers that each plugin was assigned by the desktop.
Diffstat (limited to 'lumina-config/AppDialog.h')
-rw-r--r-- | lumina-config/AppDialog.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lumina-config/AppDialog.h b/lumina-config/AppDialog.h index acc6c73e..8c35d9b7 100644 --- a/lumina-config/AppDialog.h +++ b/lumina-config/AppDialog.h @@ -39,8 +39,10 @@ public: ui->comboBox->addItem( LXDG::findIcon(APPS[i].icon,"application-x-executable"), APPS[i].name ); } this->setWindowIcon( LXDG::findIcon("system-search","") ); - QPoint center = QApplication::desktop()->screenGeometry(QCursor::pos()).center(); - this->move(center.x()-(this->width()/2), center.y()-(this->height()/2) ); + if(parent!=0){ + QPoint center = parent->geometry().center(); + this->move(center.x()-(this->width()/2), center.y()-(this->height()/2) ); + } } ~AppDialog(){} |