mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
kdeui: drop bogus multihead support
tottaly a hack, restoring applications on specific display will not work either (not as long as it is possible to start session on any display, i.e. restoring on specific display is unreliable) Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
e482da9067
commit
1969c7c22a
4 changed files with 2 additions and 35 deletions
|
@ -748,22 +748,6 @@ void KApplication::saveState( QSessionManager& sm )
|
|||
// tell the session manager about our new lifecycle
|
||||
QStringList restartCommand = sm.restartCommand();
|
||||
|
||||
if (KGlobalSettings::isMultiHead()) {
|
||||
// if multihead is enabled, we save our -display argument so that
|
||||
// we are restored onto the correct head... one problem with this
|
||||
// is that the display is hard coded, which means we cannot restore
|
||||
// to a different display (ie. if we are in a university lab and try,
|
||||
// try to restore a multihead session, our apps could be started on
|
||||
// someone else's display instead of our own)
|
||||
QByteArray displayname = qgetenv("DISPLAY");
|
||||
if (! displayname.isNull()) {
|
||||
// only store the command if we actually have a DISPLAY
|
||||
// environment variable
|
||||
restartCommand.append(QLatin1String("-display"));
|
||||
restartCommand.append(QLatin1String(displayname));
|
||||
}
|
||||
}
|
||||
|
||||
KCmdLineArgs *args = KCmdLineArgs::parsedArgs("kde");
|
||||
if (args && args->isSet("tray")) {
|
||||
restartCommand.append(QLatin1String("-tray"));
|
||||
|
|
|
@ -328,15 +328,6 @@ QString KGlobalSettings::musicPath()
|
|||
return (path.isEmpty() ? QDir::homePath() : path);
|
||||
}
|
||||
|
||||
bool KGlobalSettings::isMultiHead()
|
||||
{
|
||||
QByteArray multiHead = qgetenv("KDE_MULTIHEAD");
|
||||
if (!multiHead.isEmpty()) {
|
||||
return (multiHead.toLower() == "true");
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
bool KGlobalSettings::wheelMouseZooms()
|
||||
{
|
||||
KConfigGroup g(KGlobal::config(), "KDE");
|
||||
|
|
|
@ -319,14 +319,6 @@ public:
|
|||
*/
|
||||
static QFont smallestReadableFont();
|
||||
|
||||
/**
|
||||
* Returns if the user specified multihead. In case the display
|
||||
* 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
|
||||
* @return true if the user chose multi head
|
||||
*/
|
||||
static bool isMultiHead();
|
||||
|
||||
/**
|
||||
* Typically, QScrollView derived classes can be scrolled fast by
|
||||
* holding down the Ctrl-button during wheel-scrolling.
|
||||
|
|
Loading…
Add table
Reference in a new issue