diff --git a/workspace.cpp b/workspace.cpp index 1ce68399cc..34d59e286e 100644 --- a/workspace.cpp +++ b/workspace.cpp @@ -18,7 +18,6 @@ Copyright (C) 1999, 2000 Matthias Ettrich #include #include #include -#include #include #include #include @@ -2405,18 +2404,6 @@ void Workspace::setCurrentDesktop( int new_desktop ){ } current_desktop = new_desktop; - // code from bgsettings.cc to determine if notification is necessary - int screen_number = DefaultScreen(qt_xdisplay()); - QCString configname; - if (screen_number == 0) - configname = "kdesktoprc"; - else - configname.sprintf("kdesktop-screen-%drc", screen_number); - KConfig cfg(configname); - cfg.setGroup("Background Common"); - if (!cfg.readBoolEntry("CommonDesktop", true)) - KIPC::sendMessageAll(KIPC::BackgroundChanged, current_desktop); - rootInfo->setCurrentDesktop( current_desktop ); // restore the focus on this desktop