diff --git a/events.cpp b/events.cpp index 4b3453028e..c3b833d721 100644 --- a/events.cpp +++ b/events.cpp @@ -16,59 +16,62 @@ return; // seems like knotify is unusable QString event; switch ( e ) { case Close: - event = "Window Close"; + event = "close"; break; case Iconify: - event = "Window Iconify"; + event = "iconify"; break; case DeIconify: - event = "Window DeIconify"; + event = "deiconify"; break; case Maximize: - event = "Window Maximize"; + event = "maximize"; break; case UnMaximize: - event = "Window UnMaximize"; + event = "unmaximize"; break; case Sticky: - event = "Window Sticky"; + event = "sticky"; break; case UnSticky: - event = "Window UnSticky"; + event = "unsticky"; break; case New: - event = "Window New"; + event = "new"; break; case Delete: - event = "Window Delete"; + event = "delete"; break; case TransNew: - event = "Window TransNew"; + event = "transnew"; break; case TransDelete: - event = "Window TransDelete"; + event = "transdelete"; break; case ShadeUp: - event = "Window ShadeUp"; + event = "shadeup"; break; case ShadeDown: - event = "Window ShadeDown"; + event = "shadedown"; break; case MoveStart: - event = "Window Move Start"; + event = "movestart"; break; case MoveEnd: - event = "Window Move End"; + event = "moveend"; break; case ResizeStart: - event = "Window Resize Start"; + event = "resizestart"; break; case ResizeEnd: - event = "Window Resize End"; + event = "resizeend"; break; } - if ( !event ) - return; + + // The notifications are called, but are not necessarily hooked + // to anything (until the user sets it in the control panel) +// if ( !event ) +// return; if ( !KNotifyClient::event( event ) ) diff --git a/eventsrc b/eventsrc index 66b2a2c915..8ea31af9b0 100644 --- a/eventsrc +++ b/eventsrc @@ -47,11 +47,26 @@ Name=Activate Window Comment=Another Window is Activated default_presentation=0 +[new] +New=New Window +Comment=New Window +default_presentation=0 + +[delete] +New=Delete Window +Comment=Delete Window +default_presentation=0 + [open] Name=Open New Window Comment=A New Window Appears default_presentation=0 +[close] +Name=Window Close +Comment=A Window Closes +default_presentation=0 + [shadeup] Name=Window Shade Up Comment=A Window is Shaded Up