summaryrefslogtreecommitdiff
path: root/openbox/event.c
AgeCommit message (Collapse)Author
2007-04-22add a debug messageDana Jansens
2007-04-22focusin to the root window happens on both monitors when a focused window ↵Dana Jansens
unmaps... boo...
2007-04-22ignore some focus events that shouldnt be reacted toDana Jansens
2007-04-22(no commit message)Dana Jansens
2007-04-22a) set the focus client before calculating its layerDana Jansens
b) cleanup in focus.c
2007-04-22FocusOut events come after UnmapNotify, so we don't need to worry about ↵Dana Jansens
focusing an invalid window
2007-04-22a) remove focus_hilite, it is not needed and complicated thingsDana Jansens
b) set focus_client to null when nothing is actually focused, but still allow focus to go to black holes c) allow the focus action to be performed without a client, this will focus the openbox instance (i.e. the screen in multihead setups) big thanks to syscrash for the ideas on how to go about this
2007-04-22don't compare client pointers with random numbersMikael Magnusson
2007-04-22dont need to ignore mouse events during a keyboard grab, they go to the ↵Dana Jansens
grab-window anyways use our built in grab_keyboard
2007-04-22don't grab the pointer during interactive events. this allows you to alt-tab ↵Dana Jansens
during a dnd.
2007-04-22only pass thru events when the menu is open, don't for other stuffDana Jansens
2007-04-22eat enter events after unmanaging a windowDana Jansens
change how focus falls back for windows being unmanaged, don't fall back immediately, instead wait for the focus out event and use it (break stuff maybe! yay)
2007-04-22add a comparitor to timers. use this in event.c to let you remove timers ↵Dana Jansens
from the queue selectively for delayed focus
2007-04-22highlight for motion events in the menu too, this is useful when the enter ↵Dana Jansens
gets ignored cuz the mouse was already inside it
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.