summaryrefslogtreecommitdiff
path: root/src/preload
diff options
context:
space:
mode:
authorsebastid <sebastid>2005-06-03 06:43:23 +0000
committersebastid <sebastid@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>2005-06-03 06:43:23 +0000
commita1d592e0735b6e5fe7848ae1a692f8c8bd14a4a8 (patch)
treef417df6349a0a24d99206aa7de22d8734ae4313c /src/preload
parent030eaa7d302d768d11eea902f0f8b0b592eda8f5 (diff)
_NET_WM_ICON, isn't finished.
SVN revision: 15079
Diffstat (limited to 'src/preload')
-rw-r--r--src/preload/e_hack.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/preload/e_hack.c b/src/preload/e_hack.c
index a21ed19c8..357df1410 100644
--- a/src/preload/e_hack.c
+++ b/src/preload/e_hack.c
@@ -35,7 +35,7 @@ __e_hack_set_properties(Display *display, Window window)
35 if (!a_manager) a_manager = XInternAtom(display, "_E_HACK_MANAGER", False); 35 if (!a_manager) a_manager = XInternAtom(display, "_E_HACK_MANAGER", False);
36 36
37 if ((env = getenv("E_LAUNCH_ID"))) 37 if ((env = getenv("E_LAUNCH_ID")))
38 XChangeProperty(display, window, a_launch_id, XA_STRING, 8, PropModeReplace, env, strlen(env)); 38 XChangeProperty(display, window, a_launch_id, XA_STRING, 8, PropModeReplace, (unsigned char *)env, strlen(env));
39 { 39 {
40 uid_t uid; 40 uid_t uid;
41 pid_t pid, ppid; 41 pid_t pid, ppid;
@@ -47,29 +47,29 @@ __e_hack_set_properties(Display *display, Window window)
47 ppid = getppid(); 47 ppid = getppid();
48 48
49 snprintf(buf, sizeof(buf), "%i", uid); 49 snprintf(buf, sizeof(buf), "%i", uid);
50 XChangeProperty(display, window, a_user_id, XA_STRING, 8, PropModeReplace, buf, strlen(buf)); 50 XChangeProperty(display, window, a_user_id, XA_STRING, 8, PropModeReplace, (unsigned char *)buf, strlen(buf));
51 snprintf(buf, sizeof(buf), "%i", pid); 51 snprintf(buf, sizeof(buf), "%i", pid);
52 XChangeProperty(display, window, a_process_id, XA_STRING, 8, PropModeReplace, buf, strlen(buf)); 52 XChangeProperty(display, window, a_process_id, XA_STRING, 8, PropModeReplace, (unsigned char *)buf, strlen(buf));
53 snprintf(buf, sizeof(buf), "%i", ppid); 53 snprintf(buf, sizeof(buf), "%i", ppid);
54 XChangeProperty(display, window, a_p_process_id, XA_STRING, 8, PropModeReplace, buf, strlen(buf)); 54 XChangeProperty(display, window, a_p_process_id, XA_STRING, 8, PropModeReplace, (unsigned char *)buf, strlen(buf));
55 if (!uname(&ubuf)) 55 if (!uname(&ubuf))
56 { 56 {
57 snprintf(buf, sizeof(buf), "%s", ubuf.nodename); 57 snprintf(buf, sizeof(buf), "%s", ubuf.nodename);
58 XChangeProperty(display, window, a_machine_name, XA_STRING, 8, PropModeReplace, buf, strlen(buf)); 58 XChangeProperty(display, window, a_machine_name, XA_STRING, 8, PropModeReplace, (unsigned char *)buf, strlen(buf));
59 } 59 }
60 else 60 else
61 XChangeProperty(display, window, a_machine_name, XA_STRING, 8, PropModeReplace, " ", 1); 61 XChangeProperty(display, window, a_machine_name, XA_STRING, 8, PropModeReplace, (unsigned char *)" ", 1);
62 } 62 }
63 if ((env = getenv("USER"))) 63 if ((env = getenv("USER")))
64 XChangeProperty(display, window, a_user_name, XA_STRING, 8, PropModeReplace, env, strlen(env)); 64 XChangeProperty(display, window, a_user_name, XA_STRING, 8, PropModeReplace, (unsigned char *)env, strlen(env));
65 if ((env = getenv("E_DESK"))) 65 if ((env = getenv("E_DESK")))
66 XChangeProperty(display, window, a_desk, XA_STRING, 8, PropModeReplace, env, strlen(env)); 66 XChangeProperty(display, window, a_desk, XA_STRING, 8, PropModeReplace, (unsigned char *)env, strlen(env));
67 if ((env = getenv("E_ZONE"))) 67 if ((env = getenv("E_ZONE")))
68 XChangeProperty(display, window, a_zone, XA_STRING, 8, PropModeReplace, env, strlen(env)); 68 XChangeProperty(display, window, a_zone, XA_STRING, 8, PropModeReplace, (unsigned char *)env, strlen(env));
69 if ((env = getenv("E_CONTAINER"))) 69 if ((env = getenv("E_CONTAINER")))
70 XChangeProperty(display, window, a_container, XA_STRING, 8, PropModeReplace, env, strlen(env)); 70 XChangeProperty(display, window, a_container, XA_STRING, 8, PropModeReplace, (unsigned char *)env, strlen(env));
71 if ((env = getenv("E_MANAGER"))) 71 if ((env = getenv("E_MANAGER")))
72 XChangeProperty(display, window, a_manager, XA_STRING, 8, PropModeReplace, env, strlen(env)); 72 XChangeProperty(display, window, a_manager, XA_STRING, 8, PropModeReplace, (unsigned char *)env, strlen(env));
73} 73}
74 74
75/* XCreateWindow intercept hack */ 75/* XCreateWindow intercept hack */