summaryrefslogtreecommitdiff
path: root/openbox/event.c
AgeCommit message (Collapse)Author
2010-01-15if we get an event on a subwindow of root that we don't know about, but it ↵Dana Jansens
is related to a press we received on the root window, then process the event (Fixes bug #3702)
2010-01-11Merge branch 'backport' into workDana Jansens
Conflicts: configure.ac data/rc.xml openbox/client.c openbox/event.c openbox/focus_cycle.c openbox/focus_cycle_popup.c openbox/openbox.c openbox/prop.c openbox/prop.h openbox/screen.c parser/parse.c version.h.in
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.
2010-01-08Merge branch 'backport' into workDana Jansens
Conflicts: Makefile.am openbox/actions/focus.c openbox/config.c openbox/event.c openbox/menuframe.c
2010-01-08make Home and End keys navigate to top/bottom of the active menuDana Jansens
2010-01-08Use submenuShowDelay when navigating menus with the keyboardDana Jansens
2010-01-06Improved menu behaviourDana Jansens
Make 'left' key in a menu close it's visible child menu and move to the parent properly. Make clicking on a menu item in a menu close any of its grandchildren and remove focus from its children, effectively focusing the menu item you clicked on.
2010-01-06Some fixes for the submenu hide delay codeDana Jansens
When nothing in a menu is selected, go back to selecting the open submenu. Adjust the LeaveNotify event handling to only respond when there is not a EnterNotify coming for the same menu frame. Change the default submenu show/hide delays. Have the default values for submenu show/hide match the default rc.xml
2010-01-05Revert "Don't hide submenus immediately when unselecting the parent's entry"Dana Jansens
This reverts commit 828c095c8b5a2df96a38faaeb8a0df504e68e70f.
2010-01-05Revert "A fix for delayed hiding of submenus."Dana Jansens
This reverts commit 1fb198410e9d3ca660d91d1049249db0f2f47732.
2009-12-21Merge branch 'backport' into workDana Jansens
2009-12-21A fix for delayed hiding of submenus.Dana Jansens
It fixes this: (Mikachu) dana: i think his issue was if you have a menu with two submenus s1 and s2, open the s1 submenu, then point to s2 and go into s1, then after the delay, s1 is hidden despite you being inside it still, because s2 was never unselected
2009-12-18Add a focus option, unfocusOnLeave that removes focus from a window when the ↵Dana Jansens
pointer leaves it This uses the same delay to unfocus as is used for focusing on enter
2009-12-18Merge branch 'backport' into workDana Jansens
Conflicts: openbox/screen.c
2009-12-17Allow delayed focus to work while in a menu or move/resize since it wont ↵Dana Jansens
kill them now
2009-12-16Merge branch 'backport' into workDana Jansens
Conflicts: obt/keyboard.c obt/keyboard.h openbox/event.c openbox/menuframe.c openbox/moveresize.c openbox/openbox.c openbox/screen.c
2009-12-14Don't hide submenus immediately when unselecting the parent's entryDana Jansens
This allows users to move to the submenu across other menu items (the same as they already could across other menu items that were submenus). This uses the same config delay for hiding submenus as it does for showing new ones. Based off the ideas in bug #3762.
2009-12-14Allow the user to bind more than one keycode to a keysym for Ob ↵Dana Jansens
Menus/Move/Resize If the user has escape bound to more than one keycode then they can use any of them to close a menu. This change applies to the hardcoded keys in openbox, which are used for the menus and for move/resize, and maybe other places.
2009-12-11Merge branch 'backport' into workDana Jansens
Conflicts: openbox/config.c openbox/event.c openbox/prop.c openbox/prop.h openbox/screen.c openbox/screen.h
2009-12-09Fix the Focus/Activate actions to focus windows on other desktops correctlyDana Jansens
2009-12-08Merge branch 'backport' into workDana Jansens
Conflicts: openbox/actions/all.h openbox/actions/session.c openbox/client.c openbox/event.c openbox/grab.c
2009-12-08Fix client_activate() to work for internal Openbox menusDana Jansens
client_activate() is a helpful way to focus a window on another desktop, but only Openbox is allowed to do such things, user messages cannot.
2009-12-08Change _net_active_window behaviour.Dana Jansens
Move focus on _net_active_window "app" requests if focus stealing would be allowed. If focus is not given to the target window and it is hilited (or any other situation where it is hilited) and the window is on another desktop, then also raise it and make it the LRU window, so when you switch desktops you go right to it.
2009-11-21Revert "Revert "make windows stay on screen when..."Dana Jansens
Just kidding. This doesn't revert d81d54c7a977a034199f24fc8fa7433e634aaf91 but it redoes the work that patch reverted in a better, less intrusive, way.
2009-11-21Revert all commits for the Hooks feature to move it to a topic branch.Dana Jansens
This reverts commit fd2f617be7ff57fcb187daa737f66d243544c8cd. This reverts commit a47d0a53652a96ca1df96fc9268757df1431ae55. This reverts commit a1908e076736e1a618bd305c5963dbfecaa30497. This reverts commit dc2e6f6bf7143a56de360a393b33906735e63625. This reverts commit 985e7dadf9a3ebf4bd265d955c3198e96405e5d2. This reverts commit db781556d63d1a50bd1b1b4b6b5423ef703bf2c7. This reverts commit feec8f663f0a11546c2da87575fecc8a88d97ca1.
2009-11-07Make clang happierMikael Magnusson
Add asserts to default: in switch statements Store pointed to variables locally so it knows they don't change Remove some dead assignments Mark ob_exit_with_error as noreturn Use "%s", msg instead of just msg to printf style functions Use the c_pfocus variable
2009-09-20Merge branch 'backport' into workMikael Magnusson
2009-09-20Reload motif wm hints when property changesMikael Magnusson
Google's chrome does this when you toggle window decorations. Based on patch in #4250 by Daniel Erat.
2009-09-19Merge branch 'backport' into workMikael Magnusson
Conflicts: openbox/actions/desktop.c openbox/client.c openbox/event.c openbox/extensions.c openbox/popup.c openbox/screen.c parser/parse.c
2009-07-05Another debug message typoMikael Magnusson
2009-01-29Merge branch 'backport' into workMikael Magnusson
Conflicts: openbox/event.c openbox/frame.c
2009-01-29Handle InputShape type shaping too.Mikael Magnusson
Many composite apps use this to pass through clicks where they are transparent.
2008-11-15Merge branch 'backport' into workMikael Magnusson
Conflicts: openbox/event.c
2008-11-05Using format specifiers without arguments in printf is bad.Mikael Magnusson
2008-10-27Merge branch 'backport' into workMikael Magnusson
Conflicts: openbox/client.c openbox/prop.c openbox/prop.h
2008-10-27Correct a 64-bit bug in event_time_afterMikael Magnusson
The code assumed the timestamps had the same domain as the type Xlib uses for them, which is almost never the case with Xlib. Change all involved variables to guint32.
2008-03-08Merge branch 'backport' into workMikael Magnusson
Conflicts: obt/keyboard.c openbox/actions/cyclewindows.c openbox/actions/directionalwindows.c openbox/frame.c openbox/openbox.c
2008-03-08Remove double newlines.Mikael Magnusson
2008-03-02Merge branch 'backport' into workDana Jansens
Conflicts: openbox/actions/execute.c openbox/event.c openbox/openbox.c openbox/openbox.h
2008-03-02add a RECONFIGURING state, and enter that when doing reconfiguringDana Jansens
2008-03-02missing a headerDana Jansens
2008-03-02Merge branch 'backport' into workDana Jansens
Conflicts: openbox/actions/all.h openbox/event.c openbox/prompt.c
2008-03-02don't let you use left to go "up to parent" on menus which don't have any parentDana Jansens
2008-03-01queue hooks so that they don't run as each thing happens, instead run them ↵Dana Jansens
at the end. keep the openbox code paths fast.
2008-03-01Get hooks workingDana Jansens
2008-02-27Merge branch 'backport' into workMikael Magnusson
Conflicts: openbox/client.c openbox/event.c openbox/event.h
2008-02-27Various cleanups of event.cMikael Magnusson
Typo in debug message. Improve some comments. Space after comma. Factor out compress_client_message_event. Fold two ifs together. Change duplicated case to fall through.
2008-02-27Refactor the event handling for titlebar buttons a bit.Mikael Magnusson
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.