summaryrefslogtreecommitdiff
path: root/openbox/startupnotify.c
AgeCommit message (Collapse)Author
2011-01-24setenv and unsetenv dont exist in Solaris 9. (Fixes bug #4663)Philip Brown
Seeing as how you already use glib, I just substituted g_setenv and g_unsetenv as appropriate, and it now works for me.
2010-09-16Revert "add XFlush to g_timeout callbacks"Dana Jansens
This reverts commit aa3685d16af4a565eecdc39047ee8d140ef5cd99. Mika's commit using a GSource to handle X Events fixes this problem, so this commit is not needed
2010-06-14add XFlush to g_timeout callbacksDana Jansens
GMainLoop doesn't cause an flush to occur after handling a timeout.
2010-06-14Use GMainLoop instead of ObtMainLoopDana Jansens
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.
2009-09-19Merge branch 'backport' into workMikael Magnusson
Conflicts: openbox/actions/desktop.c openbox/client.c openbox/event.c openbox/extensions.c openbox/popup.c openbox/screen.c parser/parse.c
2009-07-05Remove newline from startupnotify descriptionKrzysztof Kotlenga
It doesn't look good in some places, e.g. WnckTasklist (gnome-panel) [ Also update translations -- Mikael ]
2008-01-31Merge branch 'backport' into workDana Jansens
Conflicts: openbox/client.c openbox/config.c openbox/event.c openbox/extensions.c openbox/focus_cycle_indicator.c openbox/focus_cycle_popup.c openbox/menuframe.c openbox/moveresize.c openbox/openbox.c openbox/screen.c openbox/stacking.c openbox/startupnotify.c
2008-01-27use setenv/unsetenv instead of putenv, cuz they are not ugly and confusing ↵Dana Jansens
wrt memory leaks
2008-01-21use the <wmclass> for startup notfication in the execute action. when ↵Dana Jansens
present don't use the check against the binary.
2008-01-20only unset the startup_desktop_id once, and dont free the string we pass to ↵Dana Jansens
putenv
2008-01-20check them startupnotify-provided wmclass against both parts of a window's ↵Dana Jansens
wm_class hint, as the spec doth say so.
2008-01-20s/ob_display/obt_display/ and remove ob_displayDana Jansens
2008-01-20Move the main loop out into the libobtDana Jansens
2008-01-20putenv wants a char*, not a constDana Jansens
2007-10-18Change setenv and unsetenv to putenv for portability.Mikael Magnusson
Solaris apparently does not have setenv and unsetenv.
2007-09-04ANSI function declarations, ie () -> (void)Mikael Magnusson
2007-07-1480 cols everywhereMikael Magnusson
2007-07-12fix building without startup notificationDana Jansens
Signed-off-by: Dana Jansens <danakj@orodu.net>
2007-06-22add the cyclewindows actionDana Jansens
2007-05-26drop the startup notify timeout from 30 to 20 secondsDana Jansens
2007-05-13when using openbox-gnome/kde-session, use a separate config file ↵Dana Jansens
(rc-gnome/kde.xml)
2007-04-231) translate all of openbox's outputDana Jansens
2) update copyrights. 3) make release. ok that part not quite yet.
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-03-30unset DESKTOP_STARTUP_ID at startup so we don't pass it on unknowingly.Dana Jansens
2007-03-28fix compile without startup notification after r5711Mikael Magnusson
2007-03-28use setenv to set up the DESKTOP_STARTUP_ID when launching programs.Dana Jansens
before, if DESKTOP_STARTUP_ID was set in openbox, it would mess up adding it to the child's environment because it would appear twice. so now it will only appear once for the child always.
2007-03-21launch things on the desktop where you ran it.Dana Jansens
also: kde apps move themselves to the current desktop when they open. what the heck?
2007-03-11allow setting startupnotify per execute action, default to disabled. use ↵Mikael Magnusson
like this: <action name="execute"><execute>program</execute><startupnotify><enabled>true</enabled><name>something descriptive</name><icon>name of an icon in the icon theme to show</icon></startupnotify</action>
2007-03-11look for more things to cancel startup notification on, from the wmclass. if ↵Dana Jansens
the wmclass is related to the name or the binary name, then it will cancel it also. this is so that oldschool stuff doesn't thing its opening forever.
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-10make startup notification a little more robust. obconf is just broken, betweenDana Jansens
the application and it's .desktop.
2006-11-1580 colsMikael Magnusson
2006-08-22update copyright step 2Mikael Magnusson
2006-08-17add a means to tell the timer destroy function not to fire when for example ↵Mikael Magnusson
freeing its client frame
2004-03-18the old event codeMikael Magnusson
2003-09-29dont use the X done callbackDana Jansens
2003-09-17no tabsDana Jansens
2003-09-17add copyright headers, adjust --version output to include copyright, and ↵Dana Jansens
--help output to not include version output.
2003-09-15revert my commit of d3th, it fucked up focus badlyDana Jansens
2003-09-15break focus. or maybe make it better.Dana Jansens
these changes make it work when you alt-tab off a fullscreen window, that it doesnt iconify, and that it is immediately restacked instead of waiting for a FocusIn event to arrive. The code now assumes that if the window says it can focus, that if we focus it, it is focused. add the XDone handler to ObMainLoop, which is fired upon the occurance of there being no more X events to read.
2003-09-15remove debug printDana Jansens
2003-09-14remove the x event handlerDana Jansens
2003-09-03fix for not using startup notificationDana Jansens
2003-09-03add startup notification in its own .c/.h filesDana Jansens