summaryrefslogtreecommitdiff
path: root/openbox/event.c
AgeCommit message (Collapse)Author
2007-04-22fix segfaultsDana Jansens
2007-04-22properly handle clients disappearing during delayed focus on themDana Jansens
2007-04-22use the timestamp from the original enter when delay-focusing a windowDana Jansens
2007-04-22ignore crossing events while an interactive grab is going on.Dana Jansens
when a menu is open, use the crossing events for the menu only.
2007-04-22better event handling for menusDana Jansens
2007-04-22handle enter/leave events in the menuDana Jansens
2007-04-21hide focus debugging messagesDana Jansens
2007-04-18don't allow comparison with timestamps to CurrentTime. it just doesn't make ↵Dana Jansens
any sense. (also client interface changed, that is in the next commit)
2007-04-12set event_curtime if we're going to use it onlyDana Jansens
2007-03-28proper logic for event_time_after, and wraparounds and suchDana Jansens
2007-03-28drop some wasted client_validates.Dana Jansens
2007-03-28handle time wrapping around.Dana Jansens
2007-03-25don't menu menus jump around at all anymore. open them on screen in the ↵Dana Jansens
first place
2007-03-24watch for reverttoparent reverting to the root window, which will create a ↵Dana Jansens
DetailInferior focusin event on root. adding some debug messages also which I am using..
2007-03-21ignore focus events on root that we don't care aboutDana Jansens
2007-03-21allow focus to disappear to black holes. (that is, windows not managed by ↵Dana Jansens
openbox). the black hole may just be a window on another monitor. keyboard events aren't going to work in this scenario, though.
2007-03-19not passing timestamps sometimes and not others. set event_curtime when ↵Dana Jansens
client messages provide a timestamp.
2007-03-14oh, 2 things in this commit..Dana Jansens
1) THIS ONE IS IMPORTANT: don't set client->iconfied if the window is not actually going to be allowed to iconify. heh! 2) changes to focus fallback to avoid crashing and to avoid losing focus all at the same time.
2007-03-14focus fallbackMikael Magnusson
2007-03-12remove event_lastttime. use CurrentTime when handling events without a ↵Dana Jansens
timestamp in them
2007-03-12fallback is still getting x errors. instead, fallback when the client ↵Dana Jansens
iconifies, and don't fallback when nothing has focus, send it to where we can control things though.
2007-03-12focusins can occur on windows that aren't clients when there's latency ↵Dana Jansens
involved. wm_torture proved this point. fallback in that situation. also fallback when nothing is focused.
2007-03-12don't validate inside client_focus. instead, validate before you call it!Dana Jansens
2007-03-12update focus_hilite appropriately for when changing desktopsDana Jansens
2007-03-12i rewrote handling of focus events. this is pretty much based on blackbox's ↵Dana Jansens
current form, as well as reading the xlib programming manual at: http://tronche.com/gui/x/xlib/events/input-focus/normal-and-grabbed.html this may break for people. that'd be nice to hear about, so it can be fixed. but hopefully this is more robust. it sure is a lot more simple.
2007-03-12remove the group option for the restacking commands in rc.xml, cuz groups ↵Dana Jansens
are clever now
2007-03-11add _NET_WM_FULL_PLACEMENT, cuz openbox does do placement, even tho it can ↵Dana Jansens
be sucky right now, lol. but it's good for dialogs and stuff, which is what this is talking about. also add _NET_WM_MOVERESIZE_CANCEL.
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-11add the _NET_WM_USER_TIME property support. When focus_new is enabled, don't ↵Dana Jansens
focus new windows if the user is doing something in another window since it launched. If we can tell when it launched, either from the _NET_WM_USER_TIME or from startup notification.
2007-03-11remove the kde icon hint, they use the EWMH icon nowDana Jansens
2007-03-10let windows move themselves off the screen somewhat, but don't let them ↵Dana Jansens
resize themselves off the screen (unless they're moving too)
2007-03-05scary commit..but here goes.Dana Jansens
YOUR THEMES ARE NOW OFFICIALLY BROKEN. Openbox has just moved it's theme format to an XML based one. The details of this format can be found in data/themerc.xsd (and http://openbox.org/themerc.xsd ALSO! This is very good and important and stuff! In the tools directory you will find THEMETOXML ! This tool takes a themerc on stdin, and spits out the same theme in theme.xml format. So this is all you need to do to update your themes. PLEASE NOTE: This themetoxml does _not_ install itself anywhere. It simply builds and then lives out in its tools/themetoxml directory, and that's it. So if you want to use it, that is where to find it. In moving to the new XML format, a number of additions/changes to the theme engine have been made. Themetoxml takes these into account and will set all the new things appropriately to make your theme look the same as it always has. New additions include.. * padding now has an horizontal and vertical component, instead of being one number * menus can have different borders than windows (color and size) * menu offset can now be negative. it's a little weird, but someone will want it no doubt * fonts are no longer controled by the theme at all, however font shadowing is, and on that note.. * font shadows are now any color you want, not just black and white * you can now set the shadow anywhere you can set the text's color, so you have more control, i.e. you can set shadow on active menu items but not inactive, or disabled, etc. * every color now has an alpha channel. at the moment they don't do anything, besides the font shadow one, but it leaves room for future explorations. it is REALLY HIGHLY RECOMMENDED that you set the alpha to 255 all the time, until such time as it could be useful. otherwise one day your theme may turn awful for people. * font colors are in the range 0-255, in case you were wondering, and they have to be specified in decimal * if you'd like to change you font's you can do so in your configuration file. this is how it is going to stay. changing the font in the theme assumes too much about peoples eye sight and locality and stuff. it doesn't belong there, sorry. the system-wide default rc.xml includes the new font settings for your viewing pleasure, and ill drop an example of it below. * shadows can now be positioned in any direction, they have both an x and a y offset which can be negative and positive. and offset of 0,0 will disable the shadow This isn't a release or anything. If someone had some good ideas about the xml theme format, I'd like to hear them. But I don't think it will be changing much right now beyond where it is. I don't even know how the new functionality will play out for themers, so we'll see. Whew.. I guess that's it. I'm not sure if I mentioned every little change or not, but oh well. Mileage may vary.. Please send any feedback. Here's the font configuration example. Hopefully ObConf will let you set this real soon. <theme> ... <font place="ActiveWindow"> <name>arial,sans</name> <size>7</size> <weight>bold</weight> <slant>normal</slant> </font> <font place="InactiveWindow"> <name>arial,sans</name> <size>7</size> <weight>bold</weight> <slant>normal</slant> </font> <font place="MenuTitle"> <name>arial,sans</name> <size>8</size> <weight>bold</weight> <slant>normal</slant> </font> <font place="MenuItem"> <name>arial,sans</name> <size>8</size> <weight>bold</weight> <slant>normal</slant> </font> </theme>
2007-03-04use ob_reconfigure/restart directly instead of actions and save a variableMikael Magnusson
2007-03-04use integers instead of atoms for the actual control actionMikael Magnusson
2007-03-04use the X protocol to reconfigure instead of signals, works over the network tooMikael Magnusson
2007-03-04oops... I'm combining two different things in this commit... so I'll try be ↵Dana Jansens
clear 1. when another wm requests to replace openbox, openbox exits. but the SM will just restart openbox unless we tell it not to. so now ob_exit_replace() will change the session manager's view of openbox to not restart it. that way the new WM will be able to run. 2. allow windows to move themselves off of the screen 90% of the way, if they really want to. but only 90% to the left, right, and bottom of the screen. it won't let the app move off the top of the screen on its own at all now, since hiding the titlebar on you without you being a part of the process is pretty darn evil! this is really to address bug # 2982 - for the tilda application. but i guess if windows really want to move off the screen, who's to say no? also, every other window manager will let them - except metacity won't let them on the left/top side of the screen.
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-11-1580 colsMikael Magnusson
2006-08-22update copyright step 1Mikael Magnusson
2006-08-17add a means to tell the timer destroy function not to fire when for example ↵Mikael Magnusson
freeing its client frame
2006-08-17add a client destructor to frame.c so it doesn't try to keep flashing a ↵Mikael Magnusson
free'd frame
2006-06-11rip out the VIDMODE extension stuff. this was only used to size fullscreen ↵Mikael Magnusson
windows to the viewport, i doubt anyone is actually using it and it interacts very badly with xinerama.
2005-02-08<group> option for raise/lower related actions. hi floam.Mikael Magnusson
2005-01-06hopefully fix the 'sticky keys' issue, patch from debian maintainer tore who ↵Mikael Magnusson
got it from somewhere
2004-07-22dock: leftclick = raise, middleclick = lower. make this bindable later, but ↵Mikael Magnusson
better than all buttons (incl scroll) raising it for now
2004-03-21update copyright noticesMikael Magnusson
2004-03-21yay no tabs in the sourceMikael Magnusson
2004-03-20some nice options for the menus, warpPointer, xorStyle (better name wanted ↵Mikael Magnusson
for this :), hilightFirst and hideDelay (this was hardcoded to .25 secs earlier)
2004-03-20whitespace changesMikael Magnusson
2004-03-18the old event codeMikael Magnusson