Age | Commit message (Collapse) | Author | Files | Lines |
|
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>
|
|
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>
|
|
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>
|
|
Signed-off-by: Julien Danjou <julien@danjou.info>
|
|
Signed-off-by: Julien Danjou <julien@danjou.info>
|
|
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>
|
|
Signed-off-by: Julien Danjou <julien@danjou.info>
|
|
Signed-off-by: Julien Danjou <julien@danjou.info>
|
|
Signed-off-by: Julien Danjou <julien@danjou.info>
|
|
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>
|
|
Signed-off-by: Julien Danjou <julien@danjou.info>
|
|
Signed-off-by: Julien Danjou <julien@danjou.info>
|
|
Signed-off-by: Julien Danjou <julien@danjou.info>
|
|
Signed-off-by: Julien Danjou <julien@danjou.info>
|
|
Signed-off-by: Julien Danjou <julien@danjou.info>
|
|
This is enough, we do not need to store the full XEvent.
Signed-off-by: Julien Danjou <julien@danjou.info>
|
|
This allows to handle identification of the connection without using any
Xlib defined type.
Signed-off-by: Julien Danjou <julien@danjou.info>
|
|
Signed-off-by: Julien Danjou <julien@danjou.info>
|
|
Signed-off-by: Julien Danjou <julien@danjou.info>
|
|
Signed-off-by: Julien Danjou <julien@danjou.info>
|
|
Signed-off-by: Julien Danjou <julien@danjou.info>
|
|
Signed-off-by: Julien Danjou <julien@danjou.info>
|
|
http://bugzilla.gnome.org/show_bug.cgi?id=392801, replacing
__FUNCTION__ with __func__ to increase portability.
|
|
Unref the SnDisplay.
|
|
|
|
|
|
prevention stuff.
|
|
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
|
|
plug leaks.
|
|
|
|
Clarke
|
|
per-display data.
store the list of xmessage handlers and pending messages per-display, so
things work halfway correctly
|
|
|
|
|
|
initiation time (sn_launcher_context_get_initiated_time): new function
(sn_launcher_context_get_last_active_time): new function
allow NULL return locations
|
|
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.
|
|
|
|
|
|
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"
|
|
add the idea of "type_atom_begin" to distinguish the first client message
in an X message.
|
|
|
|
fix the escaping
|
|
|
|
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.
|
|
|
|
|
|
|
|
|