Commit graph

35 commits

Author SHA1 Message Date
Dana Jansens
a488360f48 add the PointerMotionHintMask everywhere, we dont need every mouse event 2007-04-24 01:00:27 +00:00
Dana Jansens
2442cdfd85 1) translate all of openbox's output
2) update copyrights.
3) make release. ok that part not quite yet.
2007-04-23 17:56:35 +00:00
Dana Jansens
19b480058e wow... this is a big commit...
all related to _NET_WM_USER_TIME and focus stealing prevention

a) add launcher startup notification. this means when you run something from
   the openbox menu or a key/mouse binding, that startup notification will go
   on in openbox and other applications like your panel or something
b) add the _NET_WM_USER_TIME property for windows
c) use the _NET_WM_USER_TIME data and startup notification to prevent focus
   stealing.
d) cookie party !! ! all are invited.
e) oh yeah, and pass around timestamps for a lot more things. like, when you
   run an action, send the timestamp for the event that is running the action.
   this is important for startup notification. this also affects menus.
f) yes.. cookies..

would it be a good idea to disable focus stealing prevention if a window takes
too long to load? i mean.. maybe after a certain length of time, a user can't be
expected to not do anything in any other windows, but would they still want the
new application to focus then? HMM. open question i guess..
2007-03-11 04:44:15 +00:00
Dana Jansens
78af5d15e9 this includes a number of things since my magnificent return....
1. some random compiling/style cleanups
2. some bigfixes
 - mislogic in per-window-settings and focusing new windows
 - use client_can_focus rather than checking variables for directional focus
 - MAYBE fix all those lock-ups forever. using event_curtime (a new variable) now instead of event_lasttime. event_lasttime is still used however when the event being processed did not have a time associated with it. this may or may not be a problem, and will be seen.
3. um.. i forget
4. oh yeah, 3rd party docks are now treated like the internal ob dock irt focus. that is, clicking on them won't pass them focus. this is going to be ratified as expected behavior in the wm-spec just now. if docks/panels want focus they can request it with _net_active_window, and then they can have all the focus they want! one day alt-tabbing around dock windows might be nice. but not until the ob dock is moved out into a separate application. going to have to add a wmapp selection and stuff for that though... ugly. who uses wmdockapps anymore !? someone must.. *sigh*
2007-03-02 02:23:00 +00:00
Mikael Magnusson
d9f14c1d01 update copyright step 2 2006-08-22 16:44:18 +00:00
Mikael Magnusson
335e8acbfc yay no tabs in the source 2004-03-21 01:03:00 +00:00
Dana Jansens
174de91c34 use g_[s]list_next/previous consistantly, and check for "it" instead of "it != NULL" consistantly. props to Logan again :) 2003-10-25 19:27:09 +00:00
Dana Jansens
740c5b2a20 consistant glib type usage 2003-10-15 03:59:35 +00:00
Dana Jansens
adb9bb700f give actions a ref count 2003-09-26 16:47:12 +00:00
Dana Jansens
227d8b8511 pass the context to action_run_mouse 2003-09-21 19:39:06 +00:00
Dana Jansens
ba05275408 comment 2003-09-19 17:45:33 +00:00
Dana Jansens
e5908c3f89 use the new action ru system which always runs lists of actions instead of individual ones 2003-09-19 17:41:05 +00:00
Dana Jansens
bdc10887cb provide a way to remove all bindings 2003-09-17 08:11:59 +00:00
Dana Jansens
16f46c296d no tabs 2003-09-17 07:44:49 +00:00
Dana Jansens
c4e4760c41 add copyright headers, adjust --version output to include copyright, and --help output to not include version output. 2003-09-17 07:32:52 +00:00
Dana Jansens
88b8398342 add the MoveResize context, which is used while doing a move/resize on a window. Actions bound in this context can be executed with the mouse during a move/resize on a window. 2003-09-17 06:44:04 +00:00
Dana Jansens
9caa096ad9 frame context fallbacks when there is no binding on the context 2003-09-10 20:05:06 +00:00
Dana Jansens
8fe0cb8989 no more interactive mouse actions, they are evil etc. actions now "feel" much more solid. if move/resizing a window while changing workspaces, it will follow. 2003-09-09 07:16:38 +00:00
Dana Jansens
78282959f9 little bit of an actions overhaul, added action_run* so that duplicated code can all be in the same place now woot.
allow actions to specify when they can be used (ShowMenu cant in the OB_USER_ACTION_MENU_SELECTION case)
remove KeyboardMove ad KeyboardResize. Instead, just use Move and Resize and determine if it should be a keyboard move/resize in the code
2003-09-07 19:03:20 +00:00
Dana Jansens
68e8dea93d dont ungrab/grab all the mouse bindings every time a new one is added. just do it once on startup. 2003-09-03 23:20:21 +00:00
Dana Jansens
9d35b8c198 use the NONE cursor when not specifying a cursor 2003-09-03 20:31:50 +00:00
Dana Jansens
806a8c411f add a reconfigure action, also reconfigure on SIGUSR2.
support reconfiguring throughout the entire codebase.
2003-09-03 18:11:39 +00:00
Dana Jansens
91e04979a6 dont grab frame context mouse bindings on desktop windows 2003-09-03 08:11:38 +00:00
Dana Jansens
829a9fafd4 when no modifiers are in a binding, then make it non-interactive 2003-08-31 18:52:56 +00:00
Dana Jansens
2c6c0757fa make interactive actions a type and not special cases.
add the <interactive> option to them to turn off interactivity
2003-08-30 16:58:30 +00:00
Dana Jansens
a098c2437e rename the 'root' context to 'desktop' 2003-08-20 23:13:40 +00:00
Dana Jansens
d59508ae91 use the result from XGetGeometry correctly 2003-08-20 22:50:04 +00:00
Dana Jansens
533992f5aa handle the XGetGeomtry failing for button releases 2003-08-20 17:06:08 +00:00
Dana Jansens
9e3d680cf7 dont grab client context stuff on desktop windows. check that clint is non-null 2003-08-20 15:50:12 +00:00
Dana Jansens
6375df675f grab root mouse bindings on desktop windows also, since they are conceptually the desktop. 2003-08-20 06:17:43 +00:00
Dana Jansens
1045079482 adjust for changes to the parsing api.
split the menu into its own file.
2003-08-12 19:18:21 +00:00
Dana Jansens
8b67ce7030 prefix/capitalize the mouse actions enum 2003-08-12 18:12:17 +00:00
Dana Jansens
e1fd32bcf5 add an option for if the popup is used for desktop cycling. defaults on. 2003-08-12 10:03:13 +00:00
Dana Jansens
8529aab619 remove debug printings 2003-08-12 07:31:31 +00:00
Dana Jansens
c90da6da78 move the keyboard and mouse plugins into the kernel for mucho sexiness.
make workspace changing a grabbed/interactive process like focus cycling is, with the popup and all.
this is some hot shit.
2003-08-12 07:26:16 +00:00
Renamed from plugins/mouse/mouse.c (Browse further)