workaround for occasional linux window misdraw

This commit is contained in:
Drew Weymouth
2024-06-23 10:56:28 -07:00
parent 16fd76f0aa
commit 2736fe9955
6 changed files with 107 additions and 11 deletions
+15
View File
@@ -0,0 +1,15 @@
//go:build linux && !wayland
package main
/*
#cgo LDFLAGS: -lX11
#include "xresize.h"
*/
import (
"C"
)
func SendResizeToPID(pid, w, h int) {
C.send_resize_to_pid(C.int(pid), C.int(w), C.int(h))
}