feat: make fullscreen windows movable
(idk why they weren't)
This commit is contained in:
parent
765fb16e7d
commit
3af76b3c34
3 changed files with 23 additions and 20 deletions
8
util.c
8
util.c
|
@ -36,12 +36,14 @@ ecalloc(size_t nmemb, size_t size)
|
|||
}
|
||||
|
||||
void
|
||||
notify(const char *fmt, ...) {
|
||||
notify(const char *fmt, ...)
|
||||
{
|
||||
va_list ap;
|
||||
char cmd[1024] = "notify-send ";
|
||||
char cmd[1024] = "nt() { notify-send \"$*\"; }; nt ";
|
||||
int cmd_size = strlen(cmd)-1;
|
||||
|
||||
va_start(ap, fmt);
|
||||
sprintf(cmd+12, fmt, ap);
|
||||
snprintf(cmd+cmd_size, 1024-cmd_size, fmt, ap);
|
||||
va_end(ap);
|
||||
|
||||
system(cmd);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue