summaryrefslogtreecommitdiff
path: root/openbox/event.c
AgeCommit message (Collapse)Author
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-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-17Allow delayed focus to work while in a menu or move/resize since it wont ↵Dana Jansens
kill them now
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-09Fix the Focus/Activate actions to focus windows on other desktops correctlyDana Jansens
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-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-07-05Another debug message typoMikael Magnusson
2009-01-29Handle InputShape type shaping too.Mikael Magnusson
Many composite apps use this to pass through clicks where they are transparent.
2008-11-05Using format specifiers without arguments in printf is bad.Mikael Magnusson
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-08Remove double newlines.Mikael Magnusson
2008-03-02add a RECONFIGURING state, and enter that when doing reconfiguringDana Jansens
2008-03-02don't let you use left to go "up to parent" on menus which don't have any parentDana Jansens
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-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-18Fix button press behaviours. On LeaveNotify, make the button no longer ↵Dana Jansens
pressed. On MotionNotify, only make it hovered if no button is pressed down. On EnterNotify, make it hovered or pressed as appropriate. This fixes case where you left-click and hold on a button, then right click to open the menu - this used to leave the button in a pressed state.
2008-02-17Fix some typos in comments.Mikael Magnusson
2008-02-14prompt to kill windows when they are not respondingDana Jansens
2008-02-14key input works for ObPrompt windows nowDana Jansens
2008-02-14make the prompt buttons respond to button presses. keyboard input code is ↵Dana Jansens
there too but not working yet.
2008-02-14Make ObPrompt windows get managed as clients, and make them able to ↵Dana Jansens
reconfigure as well.
2008-02-14you can create dialog windows called "prompts" which have a message and some ↵Dana Jansens
buttons! they don't do anything interesting yet.
2008-02-14_net_active_window shouldn't change desktop, is the general policy concensus.Dana Jansens
2008-02-03ignore fake generated enters if they are in the serial-ignore-range tooDana Jansens
2008-02-02comment typoDana Jansens
2008-02-02make fullscreen windows more xinerama and multi-screen awareDana Jansens
instead of calling it every time a window loses focus, it is only called when a window gains focus. then, check fullscreen layered windows, if they should be moved to a lower layer. when moving a window between monitors, also check its layer and that of any fullscreen windows. let a window stay in the fullscreen layer even when it is not focused, if it is on a non-visible desktop, or if it is on a different monitor from the focused window, or if nothing else is focused
2008-01-27when ignoring enter events, only ignore up to the current serial ↵Dana Jansens
(NextRequest()-1). Don't ignore enters that come after this with the next serial.
2008-01-25Create fake enter events in fewer situations - avoiding times that you don't ↵Dana Jansens
actually want them. Ignore event serials without using XSync, so that we aren't doing an XSync 100 times per minute - slow!
2008-01-24strip non-modifier masks from the keyboard state for keyreleases when xkb is ↵Dana Jansens
present too
2008-01-16use hash tables in ping.[ch] instead of a list. we're pinging every window, ↵Dana Jansens
not just windows youre trying to close, so don't use datastructures that suck with lots of windows..
2008-01-16Various fixes for sparse warnings.Mikael Magnusson
Define void functions with (void), not (). Add missing includes. Some functions were declared static but defined non-static. Some variables that should be file static were file global but not used in any other file. prop.h defined a new prop_atoms in each file that included it instead of declaring it extern.
2008-01-15can tell when a window that was "closed" has stopped responding nowDana Jansens
2008-01-13sync when killing all keyboard grabs, so that we can be sure they are gone ↵Dana Jansens
before proceeding (fixes a race condition when running things that want to grab the keyboard very quickly. yes, arch is that fast somehow..)
2008-01-11since the internal windows are in window_map now, it's possible we'll get ↵Dana Jansens
them back when we check what window an event happened on. so don't abort if that happens anymore.
2008-01-11dont reparse the config file when the keyboard map changes. just rebind ↵Dana Jansens
everything. yay for mika as inspiration
2008-01-11don't take KeyRelease events for menus until they receive a KeyPress event ↵Dana Jansens
first. avoid using the key binding used to show the menu to execute something inside it.
2008-01-11continue commit 2b80e4e8ef56bb4fba614139601e750344418e5b - remove debug ↵Dana Jansens
code, and some unneeded stuff
2008-01-11fixes from commit 0ce14a727968736e57fb3fabba3794b46903875fDana Jansens
the xsync was needed to get the right serial for the end of the ignore range
2008-01-11ignore mouse clicks on override-redirect windows that aren't owned by openboxDana Jansens
2008-01-11fix a focus race condition in two ways:Dana Jansens
1. when focusing a window, ignore any enter events up until the serial of the X event causing the focus, not up until the last thing sent to the server. if we get 2 enters very quickly, then we don't want to ignore the second one just because we are focusing the first window. 2. there is a race if you check (focus_client != d->client) in the delay_focus_func, because the current focused window might change by the time this focus_client would take effect, so don't check that.
2008-01-11code clean upDana Jansens