mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
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:
@@ -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|
|
||||
|
||||
Reference in New Issue
Block a user