summaryrefslogtreecommitdiff
path: root/openbox/event.c
AgeCommit message (Collapse)Author
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.
2008-02-18Merge branch 'backport' into workDana Jansens
Conflicts: openbox/grab.c openbox/keyboard.c
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-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-14_net_active_window shouldn't change desktop, is the general policy concensus.Dana Jansens
2008-02-07Improve menu behaviour when clicking on grandparents.Mikael Magnusson
Some time ago the menus were changed to not trigger on mouseover on a grandparent or higher so that you wouldn't lose a carefully navigated menu structure. Clicking on an item opens it though. It used to be on ButtonRelease but now it is on ButtonPress. Additionally, a Press now causes grandchildren to be closed when clicking on already selected parts of the hierarchy.
2008-02-07prompt to kill windows when they are not respondingDana Jansens
2008-02-07key input works for ObPrompt windows nowDana Jansens
2008-02-07make the prompt buttons respond to button presses. keyboard input code is ↵Dana Jansens
there too but not working yet.
2008-02-07you can create dialog windows called "prompts" which have a message and some ↵Dana Jansens
buttons! they don't do anything interesting yet.
2008-02-07Merge branch 'backport' into workDana Jansens
Conflicts: openbox/config.c
2008-02-03ignore fake generated enters if they are in the serial-ignore-range tooDana Jansens
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-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-31generalize the window managing process into window_manage, which handles ↵Dana Jansens
dock apps and the like
2008-01-31make ob_debug use the g_log system, and make openbox log messages to..a log ↵Dana Jansens
file ! this will help everyone since most people do not run openbox in a terminal..
2008-01-31Merge branch 'backport' into workDana Jansens
Conflicts: openbox/client.c openbox/config.c openbox/event.c openbox/extensions.c openbox/focus_cycle_indicator.c openbox/focus_cycle_popup.c openbox/menuframe.c openbox/moveresize.c openbox/openbox.c openbox/screen.c openbox/stacking.c openbox/startupnotify.c
2008-01-31don't check for the root window in the window hash tables. waste of cpuDana Jansens
2008-01-31simplify window.h macros, and rename the window types to ObWindowClass for ↵Dana Jansens
consistent name style
2008-01-31make an obt_root() macroDana Jansens
2008-01-31make menu event handling work more like how other events are handled, less ↵Dana Jansens
special-casey
2008-01-31make the window.h interface more consistent with the rest of openbox, hide ↵Dana Jansens
the window_map behind some functions, and make obdockapps not obwindows anymore
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-20make the obt library branch compile again with all the changes merged in ↵Dana Jansens
from backport
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-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 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
2008-01-20Move the main loop out into the libobtDana Jansens
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