The events are called by the section headers in eventsrc (not by "Name").
They won't be called by default since "default_presentation" is set to 0 eventsrc is just updated for a few more events. (Some don't have proper descriptions since I don't know what they do) svn path=/trunk/kdebase/kwin/; revision=48785
This commit is contained in:
parent
0b154e4b7c
commit
b772cfb65b
2 changed files with 37 additions and 19 deletions
41
events.cpp
41
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 ) )
|
||||
|
|
15
eventsrc
15
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
|
||||
|
|
Loading…
Reference in a new issue