summaryrefslogtreecommitdiff
path: root/openbox/mouse.c
AgeCommit message (Collapse)Author
2011-10-16Change default doubleclick timeout to 500ms and keep track of where last ↵Mikael Magnusson
click was Bug #5152 - "mouse double-click time is too low by default - 200ms" We only use the doubleclick in one place in the default configuration, for doubleclicking titlebars to maximize windows, so any negative impact of increasing the timeout should be minimal, especially with the addition of requiring the two clicks to be in the same place. Doubleclicks are hardcoded to occur within 8 pixels for now, it doesn't seem worth it to add a config until someone complains. A possibility is using the drag threshold, but some people have that set very low so it could be hard to doubleclick then.
2010-09-16Make the dock a context and add actions LowerDock and RaiseDockMikael Magnusson
2010-05-17allow multiple contexts separated by space in a mouse bindingDana Jansens
example: context="Top Left Right Bottom"
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-16more using g_slice_new() instead of g_new()Dana Jansens
2010-01-08Don't handle input events on prompts if they should be used for a ↵Dana Jansens
binding/menu instead. Also, be more careful about making the prompt buttons look pressed, don't make them pressed from a motion notify event if they didnt first handle the press.
2008-02-26Merge branch 'backport' into workDana Jansens
2008-02-26Fixing bug from commit 041d17373e04Dana Jansens
Pressing a button and leave/enter would cause the button to show hover mode, not pressed mode. Change the behaviour back to how it used to be for pressing (the button stays pressed when you move outside of its box) and make it work correctly, as commit 041d17373e04 also did for menus. Reverting this behaviour because it seems impossible to do the enter/leave stuff correctly for the close button on maximized windows. Leaving the titlebar contexts doesn't give us an Enter event to go along with it, so even if we check all motion events, the button will flash unpressed when leaving the topright contexts.
2008-02-21Merge branch 'backport' into workDana Jansens
Conflicts: openbox/openbox.c openbox/session.c
2008-02-21Change all single quotes to double quotes in strings.Mikael Magnusson
2008-02-15() -> (void)Mikael Magnusson
2008-02-14Merge branch 'backport' into workMikael Magnusson
Diffing against the old work branch where most of the changes in backport were cherry-picked from indicates this should be alright. (0de9097017d4d1991388a35e380a57dc1135b431)
2008-02-14typo in commentMikael Magnusson
2008-02-14Make a pending ReplayPointer happen before moving/showing/hiding a window in ↵Dana Jansens
an action. Commit c907f5af4ad16b1 broke kdesktop again, so we have to fix it at an even finer level.
2008-02-09commit d9d580e0382 broke kdesktop again, so we have to fix it at an even ↵Dana Jansens
finer level. make a pending ReplayPointer happen before moving/showing/hiding a window in an action
2008-02-02Merge branch 'backport' into workDana Jansens
Conflicts: openbox/client.c openbox/event.c openbox/mouse.c openbox/openbox.c openbox/prop.c openbox/prop.h openbox/screen.c parser/parse.c parser/parse.h
2008-02-02if windows on screen are going to be moved, then do the ReplayPointer before ↵Dana Jansens
that occurs, so it goes to the right window. if they are not, then just wait until after the actions are run (for kdesktop's sake really)
2008-01-20make openbox use the obt prop.c/h stuffDana Jansens
holy search and replace batman
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 xerror handling into the libobtDana Jansens
2007-09-04ANSI function declarations, ie () -> (void)Mikael Magnusson
2007-09-04Fix shadowed variablesMikael Magnusson
2007-07-17remove trailing whitespaceMikael Magnusson
2007-06-22add the move actionDana Jansens
2007-06-22add the cyclewindows actionDana Jansens
2007-06-22add interactive action functions. some other changes to stuff that wasnt ↵Dana Jansens
going to work
2007-06-21make mouse use the new action stuffDana Jansens
2007-06-13that got commited by accident somewhereDana Jansens
2007-06-13xinerama support like crazy for struts and everything else too. this ↵Dana Jansens
probably crashes but its been way too long without a commit.
2007-05-28get rid of the plate windowDana Jansens
2007-05-19add a root context that only applies to the root window. it fallsback to the ↵Dana Jansens
desktop context, so desktop stuff applies to it too.
2007-05-19make binding fallback for mouse clicks less restrictive. if you dont have a ↵Dana Jansens
binding for the same button AND STATE then fallback.
2007-05-19missing new left and right contextsDana Jansens
2007-05-16don't queue showmenu events, and set button to 0 when a grab is in place ↵Dana Jansens
after the buttonpress event is run
2007-05-12change the "handle" context to "bottom". add a "top" context. make the topDana Jansens
and bottom contexts resize vertically in the default config file.
2007-05-10dont count button releases to change the context until the first button ↵Dana Jansens
pressed is released
2007-05-09when a window is fully maxed, make clicking on the titlebar past the edge ↵Dana Jansens
buttons count as clicking on the buttons
2007-05-07update some strings and the swedish translationMikael Magnusson
2007-05-04revert r6029, as it didnt fix anything.Dana Jansens
however this patch does fix the aforementioned problem. actions need some reworking... yeah... later...
2007-05-04drop the DoNotPropogate thing. metacity doesn't set it at all, and i cant ↵Dana Jansens
tell any difference in the events generated without it. grab mouse buttons on the client window itself for client bindings. this fixes the weird "click and drag doesnt work when the window is focused" behavior ive been seeing with kdesktop. hooray !
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-03-11wow... this is a big commit...Dana Jansens
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-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-03-21yay no tabs in the sourceMikael Magnusson
2003-10-25use g_[s]list_next/previous consistantly, and check for "it" instead of "it ↵Dana Jansens
!= NULL" consistantly. props to Logan again :)
2003-10-15consistant glib type usageDana Jansens