summaryrefslogtreecommitdiff
path: root/openbox/grab.c
AgeCommit message (Collapse)Author
2010-04-16event_curtime is replaced (publicly) by event_time()Dana Jansens
This function never returns CurrentTime, which is nice, cuz using CurrentTime for XSetFocus always sucks. If the current XEvent did not have a timestamp, then event_time() will find one. It finds the first timestamp available in the X event queue, meaning the earliest timestamp >= the current (nontimestamped) event. All future events should have a timestamp >= event_time(), so using this in XSetFocus() should not mess up any future calls we make to it. This change seems to work well, as it appears to fix bug #3648.
2010-02-11make menu input work with the new obt keyboard stuff.Dana Jansens
create an Input Context for use during keyboard grabs, and use this to translate KeyPress events properly. make the menu respond to KeyPress events, since these are the only ones that can be translated properly, but still execute things from KeyRelease events
2008-02-18Merge branch 'backport' into workDana Jansens
Conflicts: openbox/grab.c openbox/keyboard.c
2008-02-18Grab key bindings with GrabModeSync, so that if they lead to a keyboard ↵Dana Jansens
grab, then no keyboard events will be lost between the initial keybinding and the keyboard grab.
2008-01-31make an obt_root() macroDana Jansens
2008-01-20change openbox to use the libotk's keyboard.[ch] stuff instead of the old ↵Dana Jansens
modkeys.[ch] and some of translate.[ch]
2008-01-20s/ob_display/obt_display/ and remove ob_displayDana Jansens
2008-01-20add prop.[ch] to the libobt, but they are not used yet. add a global ↵Dana Jansens
obt_display which obt can use, and the application.
2008-01-20move the code for tracking what extensions are available on the display into ↵Dana Jansens
the libobt
2008-01-20move the xerror handling into the libobtDana Jansens
2007-09-04ANSI function declarations, ie () -> (void)Mikael Magnusson
2007-06-13remove debug printDana Jansens
2007-06-12only xungrabkeyboard when we actually have a passive grab on itDana Jansens
2007-06-03revert 7283 until we find out what version they are usingDana Jansens
2007-06-03always ungrab the keyboard/mouse with current time because i dont know what ↵Dana Jansens
else we can do with buggy x.org
2007-05-13add grab/ungrab macros so dont need to pass in 10 arguments to ungrab stuff.Dana Jansens
add a confine option to grab_pointer to confine the pointer to the screen, and use that for moveresize
2007-05-05watch for currenttimeDana Jansens
2007-05-04make the modifier key code a lot better...Dana Jansens
1) it can handle more user cases. 2) it can handle binding more modifier keys with their keysym names like Hyper and Super. W is a shortcut for Super, cuz the windows key is generally bound to it. 3) if you change your keymap bindings and reconfigure openbox it will learn your changes. and i dunno.. its just nice and stuff now.. you can actually read it I think..
2007-04-25playing a bit with grabsDana Jansens
make mouse clicks cancel alt-tab and stuff if you arent dragging during the alt-tab
2007-04-24never mind on the hint idea, it was fun while it lasted. at least i know it ↵Dana Jansens
is there now.
2007-04-24add the PointerMotionHintMask everywhere, we dont need every mouse eventDana Jansens
2007-04-231) translate all of openbox's outputDana Jansens
2) update copyrights. 3) make release. ok that part not quite yet.
2007-04-22remove grab_pointer_window, nothing used itDana Jansens
2007-04-22only pass thru events when the menu is open, don't for other stuffDana Jansens
2007-04-22ignore crossing events while an interactive grab is going on.Dana Jansens
when a menu is open, use the crossing events for the menu only.
2007-04-22grab enter/leave events during mouse grabs and pass events along still ↵Dana Jansens
during the grab. this is needed to catch enter/leave events in the menus. it seems to not be weird with apps.
2007-03-28use CurrentTime constantDana Jansens
2007-03-28use CurrentTime when time gets moved backwardsDana Jansens
2007-03-28handle time wrapping around.Dana Jansens
2007-03-28make sure the ungrab happens after the grab. fracking X server doesn't have ↵Dana Jansens
a monatomic clock..
2007-03-02this includes a number of things since my magnificent return....Dana Jansens
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*
2006-08-22update copyright step 2Mikael Magnusson
2004-10-30None instead of TRUE/FALSE to XGrabPointer (?)Mikael Magnusson
2003-10-15consistant glib type usageDana Jansens
2003-10-03remove debug printsDana Jansens
2003-10-02dont queue up interative end actionsDana Jansens
2003-09-28perhaps fix problems of being left in menus without being able to control ↵Dana Jansens
openbox
2003-09-22dont need to swallow enter events on ungrab cuz we just ignore them all nowDana Jansens
2003-09-21count the EnterNotify events and tell openbox to ignore them when ungrabbing ↵Dana Jansens
the pointer
2003-09-21export if the keyboard and pointer are currently grabbed or notDana Jansens
2003-09-17no tabsDana Jansens
2003-09-17add copyright headers, adjust --version output to include copyright, and ↵Dana Jansens
--help output to not include version output.
2003-09-16grab the pointer on the screen_support_win, causing all mouse events during ↵Dana Jansens
a grab to not be acted on as if they were on the root window/context
2003-09-04match the func prototypes in the headerDana Jansens
2003-09-03use the NONE cursor when not specifying oneDana Jansens
2003-08-31grab the pointer Async for key grabs, lets key bindings like ↵Dana Jansens
<execute>xkill</execute> work
2003-08-30remove debug printDana Jansens
2003-08-30using the ObMainLoop, which rulz the planetDana Jansens
2003-08-01oops buttons not keycodesDana Jansens
2003-08-01if a dock app has a button grabbed already then dont dieDana Jansens