diff --git a/notifications.cpp b/notifications.cpp
index 508678c1ef..f430dcf794 100644
--- a/notifications.cpp
+++ b/notifications.cpp
@@ -106,6 +106,9 @@ bool Notify::raise( Event e, const QString& message, Client* c )
case CompositingSuspendedDbus:
event = "compositingsuspendeddbus";
break;
+ case TilingLayoutChanged:
+ event = "tilinglayoutchanged";
+ break;
default:
if ((e > DesktopChange) && (e <= DesktopChange+20))
{
diff --git a/notifications.h b/notifications.h
index f8d7b6db8b..af371f8082 100644
--- a/notifications.h
+++ b/notifications.h
@@ -60,6 +60,7 @@ class Notify
DemandAttentionOther,
CompositingSlow,
CompositingSuspendedDbus,
+ TilingLayoutChanged,
DesktopChange = 100
};
diff --git a/tilinglayoutfactory.cpp b/tilinglayoutfactory.cpp
index ada039a043..0716a4c0fb 100644
--- a/tilinglayoutfactory.cpp
+++ b/tilinglayoutfactory.cpp
@@ -22,10 +22,10 @@ along with this program. If not, see .
#include
#include
-#include
#include
#include
+#include "notifications.h"
#include "tile.h"
#include "client.h"
@@ -39,9 +39,8 @@ along with this program. If not, see .
kDebug(1212) << #lay;\
layout = new lay( w );\
layout->setLayoutType( lay##L );\
- KNotification::event( "tilinglayoutchanged", \
- i18n( "Layout changed to %1", i18n(#lay) ),\
- QPixmap(), NULL, KNotification::CloseOnTimeout, KComponentData( "kwin" ) );\
+ Notify::raise( Notify::TilingLayoutChanged, \
+ i18n( "Layout changed to %1", i18n(#lay) ) ); \
break
namespace KWin