mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
kdeui: make use of KGlobalSettings::isMultiHead() in KApplication::saveState()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
8e5dd5ea50
commit
2e9329f1a1
2 changed files with 1 additions and 4 deletions
|
@ -580,8 +580,7 @@ void KApplication::saveState( QSessionManager& sm )
|
||||||
// tell the session manager about our new lifecycle
|
// tell the session manager about our new lifecycle
|
||||||
QStringList restartCommand = sm.restartCommand();
|
QStringList restartCommand = sm.restartCommand();
|
||||||
|
|
||||||
QByteArray multiHead = qgetenv("KDE_MULTIHEAD");
|
if (KGlobalSettings::isMultiHead()) {
|
||||||
if (multiHead.toLower() == "true") {
|
|
||||||
// if multihead is enabled, we save our -display argument so that
|
// if multihead is enabled, we save our -display argument so that
|
||||||
// we are restored onto the correct head... one problem with this
|
// we are restored onto the correct head... one problem with this
|
||||||
// is that the display is hard coded, which means we cannot restore
|
// is that the display is hard coded, which means we cannot restore
|
||||||
|
|
|
@ -213,7 +213,6 @@ public:
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This returns the current mouse settings.
|
* This returns the current mouse settings.
|
||||||
* On Windows, settings are retrieved from the system.
|
|
||||||
* @return the current mouse settings
|
* @return the current mouse settings
|
||||||
*/
|
*/
|
||||||
static KMouseSettings & mouseSettings();
|
static KMouseSettings & mouseSettings();
|
||||||
|
@ -362,7 +361,6 @@ public:
|
||||||
* Returns if the user specified multihead. In case the display
|
* Returns if the user specified multihead. In case the display
|
||||||
* has multiple screens, the return value of this function specifies
|
* has multiple screens, the return value of this function specifies
|
||||||
* if the user wants KDE to run on all of them or just on the primary
|
* if the user wants KDE to run on all of them or just on the primary
|
||||||
* On Windows, settings are retrieved from the system.
|
|
||||||
* @return true if the user chose multi head
|
* @return true if the user chose multi head
|
||||||
*/
|
*/
|
||||||
static bool isMultiHead();
|
static bool isMultiHead();
|
||||||
|
|
Loading…
Add table
Reference in a new issue