summaryrefslogtreecommitdiff
path: root/libsn
AgeCommit message (Collapse)AuthorFilesLines
2014-02-18Add include of <sys/select.h> for previous patchColin Walters1-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>
2014-02-17Fix crash on 32bit architectures where time_t is 64 bitFederico G. Schwindt2-8/+8
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>
2011-05-16Revert prototype change for sn_launchee_context_setup_window()Julien Cristau2-3/+3
A window is 32bit on the wire, but Xlib's Window is an unsigned long, whereas xcb_window_t is uint32_t, so that change in 1f8260481453cd7632225a3a2ae9c4b090d25241 broke ABI. Revert back to using Window in the public API. Signed-off-by: Julien Cristau <jcristau@debian.org> Signed-off-by: Julien Danjou <julien@danjou.info>
2010-06-03Drop Xlib native code, use x11-xcbJulien Danjou10-396/+271
Signed-off-by: Julien Danjou <julien@danjou.info>
2010-05-24Fix sn-launcher not using screen numberJulien Danjou1-0/+1
Signed-off-by: Julien Danjou <julien@danjou.info>
2010-03-26Support APPLICATION_ID keyColin Walters4-5/+43
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>
2009-04-15improve documentation for sn_display_get_x_connection()Julien Danjou1-0/+4
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-15enhance sn_xcb_display_new documentationJulien Danjou1-6/+5
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-03do not include config.hJulien Danjou1-4/+0
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-03XCB is no more an optionJulien Danjou5-66/+1
This is the simplest way to have an ABI which does not depend on a compilation option, which is bad. Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-03Add XCB backendJulien Danjou5-100/+510
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-03Split sn_internal_xmessage_process_eventJulien Danjou1-23/+26
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-03Move message retrieval and creation to get_or_add_message()Julien Danjou1-13/+28
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-03Move message filling into message_set_message()Julien Danjou1-30/+33
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-03Move SnXmessage creation in a static functionJulien Danjou1-7/+12
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-03Only store Window in FindMessageDataJulien Danjou1-3/+3
This is enough, we do not need to store the full XEvent. Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-03Anonymize display type into an generic idJulien Danjou4-8/+24
This allows to handle identification of the connection without using any Xlib defined type. Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-03Remove useless xdisplay property from FindMessageDataJulien Danjou1-2/+0
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-03Add sn_internal_display_get_screen_number ()Julien Danjou3-1/+16
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-03add sn_internal_display_get_root_window()Julien Danjou3-2/+24
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-03simplify sn_internal_monitor_process_event protoJulien Danjou3-5/+3
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-03Remove unused function from sn-xutilsJulien Danjou2-466/+0
Signed-off-by: Julien Danjou <julien@danjou.info>
2007-03-17Patch from Laszlo Peter atElijah Newren1-2/+2
http://bugzilla.gnome.org/show_bug.cgi?id=392801, replacing __FUNCTION__ with __func__ to increase portability.
2005-03-07Based on fix from Aivars Kalvans <aivars.kalvans@inbox.lv>Mark McLoughlin1-0/+1
Unref the SnDisplay.
2005-02-28plug leak (append_string_to_list): don't strdup() @append.Mark McLoughlin1-4/+7
2004-10-27spaces before parensHavoc Pennington1-1/+1
2004-10-27//bugzilla.gnome.org/show_bug.cgi?id=151245 to support new focus stealingHavoc Pennington6-15/+138
prevention stuff.
2004-06-24Make a timestamp be part of the startup sequence (and not just part of theMark McLoughlin3-1/+28
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
2004-03-24Leak plugging action from Tommi Leino <tommi.leino@movial.fi>Mark McLoughlin1-0/+6
plug leaks.
2003-04-20use -no-undefined libtool flag on cygwin, from Masahiro SakaiHavoc Pennington1-0/+2
2003-01-20initialize message_type field in FindHandlerData, fix from Joe MarcusHavoc Pennington1-1/+2
Clarke
2003-01-19delete global variables for xmessage_funcs and pending_messages, useHavoc Pennington3-9/+47
per-display data. store the list of xmessage handlers and pending messages per-display, so things work halfway correctly
2002-12-15_NET_STARTUP_ID should be a UTF-8 string. #101237Havoc Pennington1-4/+4
2002-12-08handle zero-length string properly, avoids a crashHavoc Pennington3-4/+10
2002-12-01new function (sn_launcher_context_initiate): remove debug spew, and recordSTARTUP_NOTIFICATION_0_4Havoc Pennington3-7/+60
initiation time (sn_launcher_context_get_initiated_time): new function (sn_launcher_context_get_last_active_time): new function allow NULL return locations
2002-11-30new functionHavoc Pennington4-3/+116
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.
2002-11-01fill in SCREEN env variable, and call DESKTOP that instead of DESCRIPTIONHavoc Pennington2-2/+21
2002-10-27sshAnders Carlsson1-0/+7
2002-10-25fix -I flagHavoc Pennington7-22/+72
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"
2002-10-23implement type_atom_begin stuffHavoc Pennington5-26/+29
add the idea of "type_atom_begin" to distinguish the first client message in an X message.
2002-10-22add missing fileHavoc Pennington1-0/+36
2002-10-21Add "SCREEN" property, and note that there may be a max message size.Havoc Pennington4-25/+21
fix the escaping
2002-10-21fix the escapingHavoc Pennington1-137/+32
2002-10-21port to new setup, add multihead supportHavoc Pennington11-1603/+337
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.
2002-10-20new docs, new proposed specHavoc Pennington1-3/+13
2002-10-20now it compilesHavoc Pennington1-1/+1
2002-10-20Massively rename everything from liblf to libsn, and reimport to CVS.Havoc Pennington18-1111/+1111
2002-10-20initial copy of liblf with files renamed to libsnHavoc Pennington19-0/+5257