From 9f064164a4ef720798d6e49a78f1ed92c924a2dd Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 26 Mar 2003 05:06:12 +0000 Subject: [PATCH] add the lexer --- plugins/mouse/.cvsignore | 1 - plugins/mouse/mouserc | 49 ++++++++ plugins/mouse/mouserc_parse.l | 228 ++++++++++++++++++++++++++++++++++ 3 files changed, 277 insertions(+), 1 deletion(-) create mode 100644 plugins/mouse/mouserc_parse.l diff --git a/plugins/mouse/.cvsignore b/plugins/mouse/.cvsignore index 7fe77089..41ed68d8 100644 --- a/plugins/mouse/.cvsignore +++ b/plugins/mouse/.cvsignore @@ -7,5 +7,4 @@ Makefile.in translate.lo lex.mparse.c lex.mparse.lo -mouserc_parse.l mouserc_parse.lo diff --git a/plugins/mouse/mouserc b/plugins/mouse/mouserc index 1f119a02..1ac987a3 100644 --- a/plugins/mouse/mouserc +++ b/plugins/mouse/mouserc @@ -1,3 +1,52 @@ +# Mouserc - Mouse bindings for Openbox + +# Context : The place where the mouse click takes place +# * Titlebar - A client's titlebar (the top of the frame) +# * Handle - A client's handle (the bottom of the frame) +# * Client - A client (the actual window inside the frame, clicks in this +# context also get passed through to the client) +# * Frame - A client's entire frame (clicks in this context do not get passed +# through to the client) +# * Icon - A client's icon (in the titlebar) +# * AllDesktops - A client's omnipresent button (in the titlebar) +# * Iconify - A client's iconify button (in the titlebar) +# * Maximize - A client's maximize button (in the titlebar) +# * Close - A client's close button (in the titlebar) +# * Root - The root window (the desktop background, these are often blocked +# by programs with desktop windows, and are not +# available on rootless X servers (like OSX)) +# * TLCorner - The top-left corner of the frame (if supported by the +# engine) +# * TRCorner - The top-right corner of the frame (if supported by the +# engine) +# * BLCorner - The bottom-left corner of the frame (if supported by the +# engine) +# * BRCorner - The bottom-right corner of the frame (if supported by the +# engine) +# Other contexts may be created by engines. + +# Event : The type of mouse action to bind +# * Press - A button is pressed +# * Release - A button is released +# * Click - A button is pressed and released +# * DoubleClick - A button is pressed and released twice quickly +# * Drag - A button is held and the mouse is moved + +# Button : The mouse button which is performing the Event +# A string composed of [-]