1 Commits

Author SHA1 Message Date
d1575bb54d added demo gif 2017-08-31 04:53:18 +05:30
3 changed files with 0 additions and 36 deletions

View File

@ -4,8 +4,6 @@ My fork of xwinwrap.
Xwinwrap allows you to stick most of the apps to your desktop background. Xwinwrap allows you to stick most of the apps to your desktop background.
My use case - can use gif as a background My use case - can use gif as a background
![demo gif](https://github.com/ujjwal96/xwinwrap/blob/demo/demo.gif)
### Installing ### Installing
``` ```

BIN
demo.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 MiB

View File

@ -283,7 +283,6 @@ int main(int argc, char **argv)
bool above = false; bool above = false;
bool skip_taskbar = false; bool skip_taskbar = false;
bool skip_pager = false; bool skip_pager = false;
bool daemonize = false;
win_shape shape = SHAPE_RECT; win_shape shape = SHAPE_RECT;
Pixmap mask; Pixmap mask;
@ -367,10 +366,6 @@ int main(int argc, char **argv)
{ {
debug = true; debug = true;
} }
else if (strcmp (argv[i], "-d") == 0)
{
daemonize = true;
}
else if (strcmp (argv[i], "--") == 0) else if (strcmp (argv[i], "--") == 0)
{ {
break; break;
@ -382,35 +377,6 @@ int main(int argc, char **argv)
} }
} }
if (daemonize)
{
pid_t process_id = 0;
pid_t sid = 0;
process_id = fork();
if (process_id < 0)
{
fprintf(stderr, "fork failed!\n");
exit(1);
}
if (process_id > 0)
{
fprintf(stderr, "pid of child process %d \n", process_id);
exit(0);
}
umask(0);
sid = setsid();
if (sid < 0)
{
exit(1);
}
chdir("/");
close(STDIN_FILENO);
close(STDOUT_FILENO);
close(STDERR_FILENO);
}
for (i = i + 1; i < argc; i++) for (i = i + 1; i < argc; i++)
{ {
if (strcmp (argv[i], "WID") == 0) if (strcmp (argv[i], "WID") == 0)