summaryrefslogtreecommitdiff
path: root/openbox/focus.c
AgeCommit message (Collapse)Author
2011-01-24if no launch time is provided for an application, make one up.Dana Jansens
if the window is related to other existing windows and one of those windows was the last used then we will give it a launch time equal to the last user time, which will end up giving the window focus probably. else the window is related to other windows, but you are not working in them? seems suspicious, so we will give it a launch time of NOW - STEAL_INTERVAL, so it will be given focus only if we didn't use something else during the steal interval. else the window is all on its own, so we can't judge it. give it a launch time equal to the last user time, so it will probably take focus. this way running things from a terminal will give them focus, but popups without a launch time shouldn't steal focus so easily.
2010-04-16event_curtime is replaced (publicly) by event_time()Dana Jansens
This function never returns CurrentTime, which is nice, cuz using CurrentTime for XSetFocus always sucks. If the current XEvent did not have a timestamp, then event_time() will find one. It finds the first timestamp available in the X event queue, meaning the earliest timestamp >= the current (nontimestamped) event. All future events should have a timestamp >= event_time(), so using this in XSetFocus() should not mess up any future calls we make to it. This change seems to work well, as it appears to fix bug #3648.
2010-04-16add an option to next/previous window to only include ↵Dana Jansens
hilited/flashing/urgent windows (feature req/bug #4341)
2010-01-28Don't alt-tab to skip_taskbar iconic windows if they have parentsMikael Magnusson
2010-01-18adjust who shows up in the alt-tab list using SKIP_TASKBAR (Fixes bug #4503)Dana Jansens
allow window types != NORMAL to not show up in the alt-tab list but don't allow DIALOG types to hide from the list also any window which is DEMANDS_ATTENTION should appear in the list regardless of its SKIP_TASKBAR status
2010-01-11Merge branch 'backport' into workDana Jansens
Conflicts: configure.ac data/rc.xml openbox/client.c openbox/event.c openbox/focus_cycle.c openbox/focus_cycle_popup.c openbox/openbox.c openbox/prop.c openbox/prop.h openbox/screen.c parser/parse.c version.h.in
2010-01-11More work on refreshing the focus cycle dialog when windows are ↵Dana Jansens
added/removed from the valid focus order
2010-01-11Redraw the focus cycle popup when the list of focusable windows changes, ↵Dana Jansens
rather than closing it
2010-01-08Make focus_valid_target() take a desktop argument.Dana Jansens
So you can find valid targets on desktops other than the currently visible one
2010-01-08allow alt-tab etc to move focus to skip_taskbar windows when they are iconicDana Jansens
2009-12-11Merge branch 'backport' into workDana Jansens
Conflicts: openbox/config.c openbox/event.c openbox/prop.c openbox/prop.h openbox/screen.c openbox/screen.h
2009-12-09The colormap is being set twice when moving focus to the root windowDana Jansens
2009-12-09Allow skip_taskbar windows to be focused on map when the user requests it in ↵Dana Jansens
rc.xml. Fixes bug #4350
2009-12-08Merge branch 'backport' into workDana Jansens
Conflicts: openbox/actions/all.h openbox/actions/session.c openbox/client.c openbox/event.c openbox/grab.c
2009-12-08Don't kill keygrabs when focus moves.Dana Jansens
Applications should be better behaved by now, and GTK based apps seem to be at least. We can file bug reports with them if we need to still.
2009-11-21Revert all commits for the Hooks feature to move it to a topic branch.Dana Jansens
This reverts commit fd2f617be7ff57fcb187daa737f66d243544c8cd. This reverts commit a47d0a53652a96ca1df96fc9268757df1431ae55. This reverts commit a1908e076736e1a618bd305c5963dbfecaa30497. This reverts commit dc2e6f6bf7143a56de360a393b33906735e63625. This reverts commit 985e7dadf9a3ebf4bd265d955c3198e96405e5d2. This reverts commit db781556d63d1a50bd1b1b4b6b5423ef703bf2c7. This reverts commit feec8f663f0a11546c2da87575fecc8a88d97ca1.
2008-03-08Merge branch 'backport' into workMikael Magnusson
Conflicts: obt/keyboard.c openbox/actions/cyclewindows.c openbox/actions/directionalwindows.c openbox/frame.c openbox/openbox.c
2008-03-08Remove double newlines.Mikael Magnusson
2008-03-01queue hooks so that they don't run as each thing happens, instead run them ↵Dana Jansens
at the end. keep the openbox code paths fast.
2008-02-29change some of the hooks, and add all the hooks to the code so that they runDana Jansens
2008-02-27Merge branch 'backport' into workMikael Magnusson
Conflicts: openbox/client.c openbox/event.c openbox/event.h
2008-02-27Fix some typos and style in client.c, and add a comment.Mikael Magnusson
Also moves a comment from many places into one place.
2008-02-07Merge branch 'backport' into workDana Jansens
Conflicts: openbox/config.c
2008-02-02when focusing or raising a window which is modal child for a direct parent, ↵Dana Jansens
raise its parent and move it to the top of the stacking order too, ie. treat them like one window (this is already done elsewhere, like when moving between desktops for example)
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-31make an obt_root() macroDana Jansens
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-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