feat: make fullscreen windows movable

(idk why they weren't)
This commit is contained in:
Arthur Khachaturov 2024-07-20 01:50:40 +03:00
parent 765fb16e7d
commit 3af76b3c34
No known key found for this signature in database
GPG key ID: CAC2B7EB6DF45D55
3 changed files with 23 additions and 20 deletions

8
util.c
View file

@ -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);