From fbc7c46935197c685d94a79657fcbd18e9a80cfa Mon Sep 17 00:00:00 2001 From: Charles Samuels Date: Thu, 14 Sep 2000 03:10:03 +0000 Subject: [PATCH] Bleh #1 svn path=/trunk/kdebase/kwin/; revision=63811 --- events.cpp | 11 +++++++---- events.h | 4 +++- eventsrc | 16 ++++++++++++++-- workspace.cpp | 3 +++ 4 files changed, 27 insertions(+), 7 deletions(-) diff --git a/events.cpp b/events.cpp index 14bf0dc66a..fb072bfc9a 100644 --- a/events.cpp +++ b/events.cpp @@ -68,13 +68,16 @@ void Events::raise( Event e ) case ResizeEnd: event = "resizeend"; break; + case StartKDE: + event = "startkde"; + break; + case ExitKDE: + event = "exitkde"; + break; } if ( !event ) return; - - - if ( !KNotifyClient::event( event ) ) - forgetIt = TRUE; + forgetIt= !KNotifyClient::event( event ); } diff --git a/events.h b/events.h index aaeb1225b2..b41c95013f 100644 --- a/events.h +++ b/events.h @@ -29,7 +29,9 @@ public: MoveStart, MoveEnd, ResizeStart, - ResizeEnd + ResizeEnd, + StartKDE, + ExitKDE }; static void raise( Event ); diff --git a/eventsrc b/eventsrc index 9d4bd91062..69900cd4ca 100644 --- a/eventsrc +++ b/eventsrc @@ -783,8 +783,7 @@ Comment[it]=Una finestra viene attaccata Comment[ja]=ウィンドウを常に表示します Comment[mk]=Прозорот станува леплив Comment[nl]=Een venster is plakkerig gemaakt -default_presentation=1 -soundfile=pop.wav +default_presentation=0 [unsticky] Name=Window Unsticky @@ -1053,3 +1052,16 @@ Comment[ja]=ウィンドウのリサイズが終了しました Comment[mk]=Прозорот завршува со предименционирањето Comment[nl]=Een venster is klaar met het wijzigen van grootte default_presentation=0 + +[startkde] +Name=Login +Comment=KDE is Starting Up +default_presentation=1 +default_sound=KDE_Startup.wav + +[exitkde] +Name=Logout +Comment=KDE is Exiting +default_presentation=1 +default_sound=KDE_Logout.wav + diff --git a/workspace.cpp b/workspace.cpp index 7898436092..8e8ff8b4f8 100644 --- a/workspace.cpp +++ b/workspace.cpp @@ -213,6 +213,7 @@ Workspace::Workspace( bool restore ) keys (0), root (0) { + Events::raise(Events::StartKDE); root = qt_xrootwin(); default_colormap = DefaultColormap(qt_xdisplay(), qt_xscreen() ); installed_colormap = default_colormap; @@ -2152,6 +2153,8 @@ void Workspace::slotMouseEmulation() void Workspace::slotLogout() { + Events::raise(Events::ExitKDE); + kapp->requestShutDown(); }