summaryrefslogtreecommitdiff
path: root/libsn/sn-monitor.h
Commit message (Collapse)AuthorAgeFilesLines
* Add include of <sys/select.h> for previous patchColin Walters2014-02-181-0/+1
| | | | | | | | | | | | | Unfortunately while the standard says that <sys/types.h> is the correct header to get suseconds_t, at least with glibc, that requires -DXOPEN_SOURCE. Which is problematic for a public header, because then all *users* of startup-notification will be required to define that. Poking around a bit, it looks like at least with glibc, <sys/select.h> will give us an unconditional define. Signed-off-by: Julien Danjou <julien@danjou.info>
* Fix crash on 32bit architectures where time_t is 64 bitFederico G. Schwindt2014-02-171-4/+4
| | | | | | | | | | | | | | | This is an ABI change on platforms where sizeof(time_t) doesn't equal sizeof(long). For most platforms this change shouldn't make a difference at present. OpenBSD recently switched to 64bit time_t on all architectures to avoid time_t overflow in 2038 on 32bit machines. This fix extends to consumers of startup-notification, for instance the window manager of XFCE, which is how I got involved in this. See http://mail.xfce.org/pipermail/xfce4-dev/2014-February/030611.html and follow-ups. The XFCE devs pointed out that my patch to fix a crash in XFCE's window manager depends on this startup-notification patch. Signed-off-by: Julien Danjou <julien@danjou.info>
* Support APPLICATION_ID keyColin Walters2010-03-261-0/+1
| | | | | | | | | For moving GNOME to an application-based system, it's useful if launcher systems say which .desktop file they're launching, so that we can show it as the current focus even while a launch is in progress. Signed-off-by: Julien Danjou <julien@danjou.info>
* Make a timestamp be part of the startup sequence (and not just part of theMark McLoughlin2004-06-241-0/+1
| | | | | | | | | | | | | | | startup_id for the startup sequence). Add timestamp field to the SnLauncherContext struct, (sn_launcher_context_new): initialize timestamp to 0, (sn_launcher_context_initiate): Make timestamp part of the startup sequence message, Add timestamp field to the SnStartupSequence struct, (sn_startup_sequence_get_timestamp): new function, (sn_startup_sequence_new): set timestamp from startup sequence message, if found, new function, new function (main): Make the test-launcher example provide a valid timestamp, obtained from new slowly_obtain_timestamp function
* new functionHavoc Pennington2002-11-301-0/+3
| | | | | | | bump version to 0.4 (not releasing yet though) new function so the WM or tasklist can time out a sequence. (xmessage_func): add support for SCREEN field, kill the startup sequence immediately if SCREEN isn't provided.
* fix -I flagHavoc Pennington2002-10-251-0/+7
| | | | | | | new function (sn_startup_sequence_get_last_active_time): new function -DSN_API_NOT_YET_FROZEN=1 put in the little API-not-frozen warning. rename to "libstartup-notification" instead of "libsn"
* port to new setup, add multihead supportHavoc Pennington2002-10-211-39/+20
| | | | | | | | | port to new setup, and blow away all monitoring stuff, just use sn-monitor.h make it all multihead-safe port to new setup and strip the other stuff out s/DESKTOP_LAUNCH_ID/DESKTOP_STARTUP_ID/ for env variable, add _NET_STARTUP_ID window manager hint.
* Massively rename everything from liblf to libsn, and reimport to CVS.Havoc Pennington2002-10-201-50/+50
|
* initial copy of liblf with files renamed to libsnHavoc Pennington2002-10-201-0/+97