app/internal/window: specify None as the X11 window background

Avoids flickering on my Fedora 31 Gnome setup.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-11-06 17:13:03 +01:00
parent 96072cec66
commit 9c84b95f7d
+2 -1
View File
@@ -530,10 +530,11 @@ func newX11Window(gioWin Callbacks, opts *Options) error {
xic C.XIC
)
swa.event_mask = C.ExposureMask | C.PointerMotionMask | C.KeyPressMask
swa.background_pixmap = C.None
win := C.XCreateWindow(dpy, root,
0, 0, C.uint(cfg.Px(opts.Width)), C.uint(cfg.Px(opts.Height)), 0,
C.CopyFromParent, C.InputOutput,
nil, C.CWEventMask|C.CWBackPixel,
nil, C.CWEventMask|C.CWBackPixmap,
&swa)
C.gio_x11_init_ime(dpy, win, &xim, &xic)
C.XSelectInput(dpy, win, 0|