imlib2_grab, imlib2_view: Unset context colormap

Should normally not be set when grabbing.
This commit is contained in:
Kim Woelders 2023-09-21 06:45:25 +02:00
parent be9ac449e7
commit 3fd4347cfa
2 changed files with 2 additions and 0 deletions

View File

@ -92,6 +92,7 @@ main(int argc, char **argv)
file = argv[0];
prog_x11_init();
imlib_context_set_colormap(None);
if (draw == None)
draw = DefaultRootWindow(disp);

View File

@ -658,6 +658,7 @@ main(int argc, char **argv)
}
prog_x11_init();
imlib_context_set_colormap(None);
win = prog_x11_create_window("imlib2_view", 10, 10);