Remove very old kde 3.5 ksplash call
authorMikael Magnusson <mikachu@gmail.com>
Thu, 29 Dec 2022 19:42:07 +0000 (20:42 +0100)
committerMikael Magnusson <mikachu@gmail.com>
Mon, 20 Mar 2023 06:28:01 +0000 (07:28 +0100)
If you somehow still need this, I think you can just add
dcop ksplash "upAndRunning(Qstring)" "wm started"
to your autostart file or otherwise.

openbox/screen.c

index 31cb8ded99fe73e9959632e0e6dfc4bf9b13c724..28fd16098a938468ea303109cb4925fcb5eae783 100644 (file)
@@ -54,7 +54,6 @@
 
 static gboolean screen_validate_layout(ObDesktopLayout *l);
 static gboolean replace_wm(void);
-static void     screen_tell_ksplash(void);
 static void     screen_fallback_focus(void);
 
 guint                  screen_num_desktops;
@@ -317,45 +316,9 @@ gboolean screen_annex(void)
     OBT_PROP_SETS(RootWindow(obt_display, ob_screen), OB_VERSION,
                   OPENBOX_VERSION);
 
-    screen_tell_ksplash();
-
     return TRUE;
 }
 
-static void screen_tell_ksplash(void)
-{
-    XEvent e;
-    char **argv;
-
-    argv = g_new(gchar*, 6);
-    argv[0] = g_strdup("dcop");
-    argv[1] = g_strdup("ksplash");
-    argv[2] = g_strdup("ksplash");
-    argv[3] = g_strdup("upAndRunning(QString)");
-    argv[4] = g_strdup("wm started");
-    argv[5] = NULL;
-
-    /* tell ksplash through the dcop server command line interface */
-    g_spawn_async(NULL, argv, NULL,
-                  G_SPAWN_SEARCH_PATH | G_SPAWN_DO_NOT_REAP_CHILD |
-                  G_SPAWN_STDERR_TO_DEV_NULL | G_SPAWN_STDOUT_TO_DEV_NULL,
-                  NULL, NULL, NULL, NULL);
-    g_strfreev(argv);
-
-    /* i'm not sure why we do this, kwin does it, but ksplash doesn't seem to
-       hear it anyways. perhaps it is for old ksplash. or new ksplash. or
-       something. oh well. */
-    e.xclient.type = ClientMessage;
-    e.xclient.display = obt_display;
-    e.xclient.window = obt_root(ob_screen);
-    e.xclient.message_type =
-        XInternAtom(obt_display, "_KDE_SPLASH_PROGRESS", False);
-    e.xclient.format = 8;
-    strcpy(e.xclient.data.b, "wm started");
-    XSendEvent(obt_display, obt_root(ob_screen),
-               False, SubstructureNotifyMask, &e);
-}
-
 void screen_startup(gboolean reconfig)
 {
     gchar **names = NULL;