aboutsummaryrefslogtreecommitdiffstats
path: root/swaybar/tray
diff options
context:
space:
mode:
authorLibravatar Calvin Lee <cyrus296@gmail.com>2017-06-13 12:42:11 -0700
committerLibravatar Calvin Lee <cyrus296@gmail.com>2017-06-13 12:42:11 -0700
commit33fdae2001f489c40667797ce3bc50eedb352ee0 (patch)
tree03b220c43ada1864fc1e44082c614de3b073a6ca /swaybar/tray
parentFix Catching NewIcon Signal (diff)
downloadsway-33fdae2001f489c40667797ce3bc50eedb352ee0.tar.gz
sway-33fdae2001f489c40667797ce3bc50eedb352ee0.tar.zst
sway-33fdae2001f489c40667797ce3bc50eedb352ee0.zip
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')
-rw-r--r--swaybar/tray/tray.c16
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) {
379 return tray_width; 379 return tray_width;
380} 380}
381 381
382void tray_upkeep(struct bar *bar) {
383 if (!bar->xembed_pid ||
384 (bar->xembed_pid == waitpid(bar->xembed_pid, NULL, WNOHANG))) {
385 pid_t pid = fork();
386 if (pid == 0) {
387 execlp("xembedsniproxy", "xembedsniproxy", NULL);
388 _exit(EXIT_FAILURE);
389 } else {
390 bar->xembed_pid = pid;
391 }
392 }
393}
394
395void init_tray(struct bar *bar) { 382void init_tray(struct bar *bar) {
396 if (!bar->config->tray_output || strcmp(bar->config->tray_output, "none") != 0) { 383 if (!bar->config->tray_output || strcmp(bar->config->tray_output, "none") != 0) {
397 /* Connect to the D-Bus */ 384 /* Connect to the D-Bus */
@@ -402,8 +389,5 @@ void init_tray(struct bar *bar) {
402 389
403 /* Start the SNI host */ 390 /* Start the SNI host */
404 init_host(); 391 init_host();
405
406 /* Start xembedsniproxy */
407 tray_upkeep(bar);
408 } 392 }
409} 393}