mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-07 02:15:34 +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
|
xic C.XIC
|
||||||
)
|
)
|
||||||
swa.event_mask = C.ExposureMask | C.PointerMotionMask | C.KeyPressMask
|
swa.event_mask = C.ExposureMask | C.PointerMotionMask | C.KeyPressMask
|
||||||
|
swa.background_pixmap = C.None
|
||||||
win := C.XCreateWindow(dpy, root,
|
win := C.XCreateWindow(dpy, root,
|
||||||
0, 0, C.uint(cfg.Px(opts.Width)), C.uint(cfg.Px(opts.Height)), 0,
|
0, 0, C.uint(cfg.Px(opts.Width)), C.uint(cfg.Px(opts.Height)), 0,
|
||||||
C.CopyFromParent, C.InputOutput,
|
C.CopyFromParent, C.InputOutput,
|
||||||
nil, C.CWEventMask|C.CWBackPixel,
|
nil, C.CWEventMask|C.CWBackPixmap,
|
||||||
&swa)
|
&swa)
|
||||||
C.gio_x11_init_ime(dpy, win, &xim, &xic)
|
C.gio_x11_init_ime(dpy, win, &xim, &xic)
|
||||||
C.XSelectInput(dpy, win, 0|
|
C.XSelectInput(dpy, win, 0|
|
||||||
|
|||||||
Reference in New Issue
Block a user