summaryrefslogtreecommitdiff
path: root/openbox/client.c
AgeCommit message (Collapse)Author
2007-04-22use ignore enters instead of removing them from the queueDana Jansens
2007-04-22don't grab the pointer during interactive events. this allows you to alt-tab ↵Dana Jansens
during a dnd.
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-22engrishDana Jansens
2007-04-21ignore BadMatch errors that can't be avoidedDana Jansens
2007-04-21fixes for transientsDana Jansens
1) don't count non-normal windows as parents when placing/stacking transients 2) in stacking.c, when a window is transient for the group but has no parents, then don't loop forever looking for its parents
2007-04-20remove the client_time_heap thing. actually its better to just use the ↵Dana Jansens
user_time on the currently focused window I think. that will handle panels and things too.
2007-04-18get rid of global client_last_user_time variable.Dana Jansens
add ObClientTimeHeap. This is a max-heap of the clients based on their user times. this only includes the clients whose user time is not CurrentTime. the maximum from this heap replaces the client_last_user_time variable, so that you always have the latest time, not the last time that was changed. hoefully it works, so far it seems to.
2007-04-12saved session information overrides per-app settings, because that's how you ↵Dana Jansens
set it up in the session
2007-04-12set the desktop from per-app-settings properly, i think.Dana Jansens
also fix a compiler warning.
2007-04-12better synthetic configurenotify handling. in particular..Dana Jansens
http://bugzilla.gnome.org/show_bug.cgi?id=399552 on unmap, when we move the client window, we need to send a synthetic configurenotify.
2007-04-12don't fallback when a window is hidden right away, it's redundant, we'll get ↵Dana Jansens
a focusout for the window after the unmapnotify anyways. show new windows when switching desktops before hiding the old windows.
2007-04-05http://mail.gnome.org/archives/wm-spec-list/2006-May/msg00000.htmlDana Jansens
Send ConfigureNotify events when a window is mapped at the position it has specified. When we add decorations, the window gets moved in reference to the root window, so it needs to be told.
2007-03-30fully maximize windows all the time. size increments are preferred sizes not ↵Dana Jansens
required ones. -- http://tronche.com/gui/x/icccm/sec-4.html#s-4.1.2.3
2007-03-28can't use (unsigned)-1 for a max time, because timestamps wraparound and ↵Dana Jansens
stuff. user the last_user_time as a default for new windows instead.
2007-03-28drop some wasted client_validates.Dana Jansens
2007-03-28more handling time wraparoundsDana Jansens
2007-03-28handle time wrapping around.Dana Jansens
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-24(no commit message)Dana Jansens
2007-03-24clean up the title getting functionDana Jansens
2007-03-24kill window title numbering...Dana Jansens
probably it was a dumb idea all along. you're not picking the numbers yourself and you're probably not remembering which window they apply to and the focus indicator thinger is much more clever than numbers
2007-03-19not passing timestamps sometimes and not others. set event_curtime when ↵Dana Jansens
client messages provide a timestamp.
2007-03-17oops, logic errorDana Jansens
2007-03-16fix for bug introduced in revision 5643. logical size is supposed to be ↵Dana Jansens
updated only when the window is resized.
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-14move stuff around in client_unmanage to maybe make closing windows a bit nicerMikael Magnusson
2007-03-14refix for managing iconic windows, without having the frame map which caused ↵Dana Jansens
flashing. instead, keep track of if the frame has been mapped yet. if it hasn't and it is getting hidden, then make sure to unmap the child.
2007-03-14a) fix resizerelative moving windows when they reach their minimum size do ↵Dana Jansens
this by... b) adding a function to let you see what size/position a window will be given when you actually try move/resize it to some given values. (client_try_configure)
2007-03-14less wasted updates of wm_stateDana Jansens
2007-03-13comparing strings to random locations in memory is probably not what we ↵Mikael Magnusson
wanted to do
2007-03-13always unfocus the window when it disappears, no special cases.. (except ↵Dana Jansens
unmanage)
2007-03-13set IconicState on windows that are not visible always. this means windows ↵Dana Jansens
on other desktops too. as well, this turned out to be a nice cleanup of the wmstate code. regards to the random dude in #openbox complaining about the ICCCM to make me think to look this up and see if openbox was compliant.
2007-03-13save and restore pre-maximized/fullscreen sizes properlyDana Jansens
much cleanup on how per-app settings are applied to new mapping windows. maybe i broke it? but it'll be much quicker now, and it's consistant with the rest of the code, so hooray for that. pls let me know if i broke any of it :( hee..
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-12don't validate inside client_focus. instead, validate before you call it!Dana Jansens
2007-03-12validate clients before trying to focus them in fallbackDana Jansens
also validate before trying to set the focus on a window this should fix those crashes, and should just be better over all
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-12Rewrite the stacking code. It's a lot faster now, I should think. It's def a ↵Dana Jansens
more clever algorithm. It deals with group transients much better. On that note, utility and menu and toolbar window types are now treated as group transients in terms of stacking and focus and such.
2007-03-11We were grabbing SubstructureNotifyMask on the root window. I don't know ↵Dana Jansens
why.. It meant that we got unmap notifies for windows we weren't even managing and stuff. It ended up breaking VLC when it mapped-unmapped-mapped a window. We grab StructureNotify for all the clients, so I am not sure why this was ever there.
2007-03-11extra braces.. why does the world hate me so?Dana Jansens
2007-03-11.. i am pretending to be mika :D :D ok this time for realDana Jansens
2007-03-11oh.. wasted verbosity.. *strums guitar*Dana Jansens
2007-03-11rewrite the focus steal prevention code to clean it up hopefully a bit. also ↵Dana Jansens
don't steal focus from globally active focus model clients
2007-03-11Honor transient_for=Root, even thought this is crap and breaks some KDE ↵Dana Jansens
stuff. Also include a big comment as to why this is suck.
2007-03-11client_configure_full is trying to move a window, it shouldn't determine the ↵Dana Jansens
window's monitor from its current position, but from the new position instead. move client_monitor()'s logic into screen, more generically, and let client_configure_full use that
2007-03-11stacking has been made more reliable with groups and group transients.Dana Jansens
this was a pretty invasive change in client.c though, so it may break things? it did expose some bugginess in client_calc_layer, which is now better than ever, hopefully there isn't more to be found.
2007-03-11make _NET_ACTIVE_WINDOW requests look at the timestamp when the user didn'tDana Jansens
request it
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.