summaryrefslogtreecommitdiff
path: root/openbox/focus.c
AgeCommit message (Collapse)Author
2008-01-13don't skip windows that are skip_taskbar unless they are normal typed.. i.e. ↵Dana Jansens
if a dialog sets this don't skip it (gnome shutdown/logout dialogs don't get focused otherwise in arch linux)
2007-09-04ANSI function declarations, ie () -> (void)Mikael Magnusson
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-07-17remove trailing whitespaceMikael Magnusson
2007-07-06don't focus helper windows that map unless there are no other valid targets ↵Dana Jansens
in the group (don't move focus from a group window to a new helper window). this fixes gucharmap.
2007-07-04don't fallback to shaded windowsDana Jansens
2007-06-12use the same decision code to focus new windows as for focus cycling or ↵Dana Jansens
focus fallback. yay consistency.
2007-06-11instead of falling back to any normal window. fallback to the same windows ↵Dana Jansens
you can focus cycle to.
2007-06-04allow focus to fallback to omnipresent windows, except during desktop ↵Dana Jansens
switching which is when they are vile
2007-05-30make it possible to iconify a modal window when its parent is the only ↵Dana Jansens
window left on the desktop. when focus falls off of a window, don't allow focus to go back to that same target - when a window is iconified is the case. what focus_fallback_target, to check whe allow_refocus is false, check where focus will actually be sent
2007-05-28use new functions to cancel key grabsDana Jansens
2007-05-28when you focus a window, bring any modal children it has to that desktopDana Jansens
when falling back, return the window which actually was focused by client_focus let you focus cycle to windows when their modal window is on another desktop (it will be brought over)
2007-05-27make focuslast only apply to switching desktops, like 3.3.1Dana Jansens
2007-05-26only kill focus cycling when the window being destroyed was in the list of ↵Dana Jansens
targets
2007-05-26don't crash when a window adds itself to the focus order while cyclingDana Jansens
2007-05-25less negatives means less confusing.. but yeah. get rid of omnipresent check ↵Dana Jansens
in focus_fallback
2007-05-25prevent flicker in the follow actiosn again instead of in focus fallback. ↵Dana Jansens
focus fallback needs to be very reliable.
2007-05-25debug print in focus.cDana Jansens
when focus goes to something that isn't a client (window already unmapped) then set focus_client to NULL so we know nothing has focus right now
2007-05-25put the actions back so they don't have to be smart.Dana Jansens
make focus_fallback not send focus anywhere if the new target is the same as what is already focused
2007-05-25save the focus_client when falling backDana Jansens
2007-05-24some focus changes...Dana Jansens
1) listen for inferiornotify. that way when iconify animating reverts to parent, we see it. 2) set client to null when falling back and update the root window property 3) get rid of the "focus didnt move anywhere" business, and just process the envents in the right order.
2007-05-19move focus_cycle_indicator into its own fileDana Jansens
2007-05-19move focus cycling into its own fileDana Jansens
2007-05-18super correct enter event ignoring that will only ignore what it has to, yay?Dana Jansens
2007-05-15always ignore errors for client_focus like we used to.Dana Jansens
2007-05-15simplify focus handling a bit. no need to listen to focus going to the frame ↵Dana Jansens
because if it ever does that, the window is unmapping and the frame will just unmap and send it to root. make focus fallback a lil more robust, it checks for errors when it sets focus on the window, and if an error occured it will focus the next option.
2007-05-15don't do this stuff when it's already done. save bandwidth.Dana Jansens
2007-05-14yay for simplifying code. if we check for errors we dont need the ↵Dana Jansens
"focus_tried" stuff
2007-05-14some debug printsDana Jansens
2007-05-13missing a headerDana Jansens
2007-05-13dont set focus_client to NULL when sending focus to nothing, let that happen ↵Dana Jansens
from the FocusOut events
2007-05-13some focus fixes. always set the new focus when we fallback or else weird ↵Dana Jansens
states appear. better handling of focusin's on clients that don't exist?
2007-05-13kill grabs before xsetinputfocusDana Jansens
2007-05-13fix directional focusDana Jansens
2007-05-13use the right list in client_add_hide_notify, rename destructor to ↵Dana Jansens
destroy_notify which is really what it is, and is more consistant now that there are 2 notifies
2007-05-13when i said it handled both cases, i was mistaken, so use a callback for ↵Dana Jansens
each case.
2007-05-13likewise if a window is unmanaged and we were trying to give it focus, we ↵Dana Jansens
want to know about it - also if the window gets hidden for some other reason, we also want to know about it. add a notifier for windows being hidden, and use that instead - it handles both cases.
2007-05-13some changes to focus handling.Dana Jansens
most interesting is the change in focus_fallback, which means that it won't call xsetinput focus in some cases, potentially reducing flicker and stuff. also potentially producing bugs? heh. the screen.c focus fallback code doesn't seem to need special cases anymore, which is really good, if that is really the case. move the focus_tried stuff out of event.c into focus.c, where it seems to belong.
2007-05-13dont skip desktop windows that set skip_taskbarDana Jansens
2007-05-12add <desktop>yes</desktop> option for Next/Previous window and directional ↵Dana Jansens
focus actions
2007-05-12try catch weird racey corner case where we try fallback to a window but it ↵Dana Jansens
unmaps as we do so, so focus ends up going to nowhere
2007-05-11fix focus cycling. checking the wrong client.Dana Jansens
2007-05-08merge r6176-6182 from 3.4-workingDana Jansens
2007-05-08double space in debug outputMikael Magnusson
2007-05-08i dont like this "application window" concept. swap it with "helper" windows ↵Dana Jansens
instead which are the inverse. helper windows are utility/menu/toolbar windows.
2007-05-08!Dana Jansens
2007-05-07show the right iconDana Jansens
2007-05-07popups fixes. if the text for the popup is empty now, there wont be extra ↵Dana Jansens
padding for it. desktop name fixes.
2007-05-07a variable sized alt-tab box. is this nice or slower to read? we'll see.Dana Jansens
2007-05-06a bunch of thigns got squashed into this commit.. sorry..Dana Jansens
1. soem bug fixes for window stacking 2. clarify some functions behavior with their names 3. add (untested) support for legacy fullscreen apps. i have no idea what they do on a multihead xinerama setup though and if this would help there or need some changes.