… | |
… | |
53 | # endif |
53 | # endif |
54 | #endif |
54 | #endif |
55 | |
55 | |
56 | #ifdef HAVE_NL_LANGINFO |
56 | #ifdef HAVE_NL_LANGINFO |
57 | # include <langinfo.h> |
57 | # include <langinfo.h> |
|
|
58 | #endif |
|
|
59 | |
|
|
60 | #ifdef HAVE_STARTUP_NOTIFICATION |
|
|
61 | # define SN_API_NOT_YET_FROZEN |
|
|
62 | # include <libsn/sn-launchee.h> |
58 | #endif |
63 | #endif |
59 | |
64 | |
60 | #ifdef DISPLAY_IS_IP |
65 | #ifdef DISPLAY_IS_IP |
61 | /* On Solaris link with -lsocket and -lnsl */ |
66 | /* On Solaris link with -lsocket and -lnsl */ |
62 | #include <sys/types.h> |
67 | #include <sys/types.h> |
… | |
… | |
870 | XChangeProperty (dpy, parent, xa[XA_XEMBED_INFO], xa[XA_XEMBED_INFO], |
875 | XChangeProperty (dpy, parent, xa[XA_XEMBED_INFO], xa[XA_XEMBED_INFO], |
871 | 32, PropModeReplace, (unsigned char *)&info, 2); |
876 | 32, PropModeReplace, (unsigned char *)&info, 2); |
872 | } |
877 | } |
873 | #endif |
878 | #endif |
874 | |
879 | |
|
|
880 | #if HAVE_STARTUP_NOTIFICATION |
|
|
881 | SnDisplay *snDisplay; |
|
|
882 | SnLauncheeContext *snContext; |
|
|
883 | |
|
|
884 | snDisplay = sn_display_new (dpy, NULL, NULL); |
|
|
885 | snContext = sn_launchee_context_new_from_environment (snDisplay, DefaultScreen (dpy)); |
|
|
886 | |
|
|
887 | /* Tell the window manager that this window is part of the startup context */ |
|
|
888 | if (snContext) |
|
|
889 | sn_launchee_context_setup_window (snContext, parent); |
|
|
890 | #endif |
|
|
891 | |
875 | XMapWindow (dpy, vt); |
892 | XMapWindow (dpy, vt); |
876 | XMapWindow (dpy, parent); |
893 | XMapWindow (dpy, parent); |
|
|
894 | |
|
|
895 | #if HAVE_STARTUP_NOTIFICATION |
|
|
896 | if (snContext) |
|
|
897 | { |
|
|
898 | /* Mark the startup process as complete */ |
|
|
899 | sn_launchee_context_complete (snContext); |
|
|
900 | |
|
|
901 | sn_launchee_context_unref (snContext); |
|
|
902 | } |
|
|
903 | |
|
|
904 | sn_display_unref (snDisplay); |
|
|
905 | #endif |
877 | |
906 | |
878 | refresh_check (); |
907 | refresh_check (); |
879 | } |
908 | } |
880 | |
909 | |
881 | /*----------------------------------------------------------------------*/ |
910 | /*----------------------------------------------------------------------*/ |