diff options
author | Calvin Lee <cyrus296@gmail.com> | 2017-06-13 12:42:11 -0700 |
---|---|---|
committer | Calvin Lee <cyrus296@gmail.com> | 2017-06-13 12:42:11 -0700 |
commit | 33fdae2001f489c40667797ce3bc50eedb352ee0 (patch) | |
tree | 03b220c43ada1864fc1e44082c614de3b073a6ca /swaybar/tray/tray.c | |
parent | 0a71aa6e97a96ffbd34fe18ec42b27d8fe5952e8 (diff) |
Remove Xembed Support
Xembed support is premature in sway and should be postponed. This commit
only removes swaybar starting xembedsniproxy, if users would like, they
can still start xembedsniproxy manually, however there will be no
official support.
Diffstat (limited to 'swaybar/tray/tray.c')
-rw-r--r-- | swaybar/tray/tray.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/swaybar/tray/tray.c b/swaybar/tray/tray.c index b2fa647e..00f1a44f 100644 --- a/swaybar/tray/tray.c +++ b/swaybar/tray/tray.c @@ -379,19 +379,6 @@ uint32_t tray_render(struct output *output, struct config *config) { return tray_width; } -void tray_upkeep(struct bar *bar) { - if (!bar->xembed_pid || - (bar->xembed_pid == waitpid(bar->xembed_pid, NULL, WNOHANG))) { - pid_t pid = fork(); - if (pid == 0) { - execlp("xembedsniproxy", "xembedsniproxy", NULL); - _exit(EXIT_FAILURE); - } else { - bar->xembed_pid = pid; - } - } -} - void init_tray(struct bar *bar) { if (!bar->config->tray_output || strcmp(bar->config->tray_output, "none") != 0) { /* Connect to the D-Bus */ @@ -402,8 +389,5 @@ void init_tray(struct bar *bar) { /* Start the SNI host */ init_host(); - - /* Start xembedsniproxy */ - tray_upkeep(bar); } } |