summaryrefslogtreecommitdiff
path: root/openbox/event.c
AgeCommit message (Collapse)Author
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
2008-01-11XKB modifiers are strange things, and i don't know how to read them properly ↵Dana Jansens
in modkeys.c and convert it all to the x core stuff. so we use this to get the state of the modifiers, otherwise we end up missing them sometimes (like on PPC)
2008-01-11reconfigure openbox when the input mapping changes, eg. keyboard layout or ↵Dana Jansens
modifier map
2007-11-12Add --exit.Mikael Magnusson
2007-09-04ANSI function declarations, ie () -> (void)Mikael Magnusson
2007-08-05When halting focus-follows-mouse, ignore any enter events that were ↵Dana Jansens
generated before the halting process too.
2007-08-04don't make omnipresent windows lose focus when changing desktops. this is ↵Dana Jansens
done by allowing focus_fallback to specify if focus has been lost or not. usually if you're call it, focus is lost, but not always.
2007-08-04only use user_time updates if they are on the focused windowDana Jansens
2007-08-03show a popup notification when switching desktops (also make all the config ↵Dana Jansens
options export time in milliseconds not half milli half micro)
2007-08-03don't make delayed focus-follows-mouse interupt menus and move/resizesDana Jansens
2007-08-03new least-intrusive focus stealing preventionDana Jansens
2007-08-01remove focus-stealing-prevention stuff, don't use user_time crap at all. it ↵Dana Jansens
is broken in every application that has ever used it. ever. ever. \^_^/;;;
2007-07-22remove unused variableDana Jansens
2007-07-21kill moveresize cleanly if focus is moving (it uses a keyboard grab)Dana Jansens
2007-07-21remove mysterious xkb code...Dana Jansens
2007-07-21be explicit about the eventDana Jansens
2007-07-21cleanupDana Jansens
2007-07-19use keypress for navigating the menu but use keyrelease for running thingsDana Jansens
2007-07-19use keyrelease to fire menu actions not key pressDana Jansens
when keypress is used, the keyrelease gets sent to whatever window is focused. if it's a stupid program - like most any program - it will update its user_time, preventing the new window from being focused
2007-07-18don't restack windows when they request it with an invalid siblingDana Jansens
2007-07-18take care when sibling is specified as an unmanaged windowDana Jansens
2007-07-17remove trailing whitespaceMikael Magnusson