Remove the Change Desktop Notifications

icc-effect-5.14.5
Martin Gräßlin 2013-04-19 11:35:59 +02:00
parent 2b3cf17649
commit af673c11d7
5 changed files with 1 additions and 3507 deletions

File diff suppressed because it is too large Load Diff

View File

@ -108,9 +108,6 @@ bool Notify::raise(Event e, const QString& message, Client* c)
event = "unfullscreen";
break;
default:
if ((e > DesktopChange) && (e <= DesktopChange + 20)) {
event = QString("desktop%1").arg(e - DesktopChange);
}
break;
}
if (event.isNull())

View File

@ -59,8 +59,7 @@ public:
DemandAttentionOther,
CompositingSuspendedDbus,
FullScreen,
UnFullScreen,
DesktopChange = 100
UnFullScreen
};
static bool raise(Event, const QString& message = QString(), Client* c = NULL);

View File

@ -18,8 +18,6 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*********************************************************************/
#include "../virtualdesktops.h"
// for mocking
#include "../notifications.h"
// KDE
#include <KDE/KAction>
#include <KDE/KActionCollection>
@ -31,13 +29,6 @@ namespace KWin {
int screen_number = 0;
bool Notify::raise(Event e, const QString& message, Client* c)
{
Q_UNUSED(e)
Q_UNUSED(message)
Q_UNUSED(c)
return false;
}
}
Q_DECLARE_METATYPE(Qt::Orientation)

View File

@ -19,8 +19,6 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*********************************************************************/
#include "virtualdesktops.h"
// KWin
#include "notifications.h"
// KDE
#include <KDE/KAction>
#include <KDE/KActionCollection>
@ -243,7 +241,6 @@ bool VirtualDesktopManager::setCurrent(uint newDesktop)
return false;
}
const uint oldDesktop = m_current;
Notify::raise((Notify::Event)(Notify::DesktopChange + newDesktop));
// change the desktop
m_current = newDesktop;
emit currentChanged(oldDesktop, newDesktop);