We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f701af commit 9894740Copy full SHA for 9894740
1 file changed
src/ruisapp/glue/linux/glue_xorg.cxx
@@ -484,7 +484,10 @@ struct window_wrapper : public utki::destructable {
484
visual_info->visual,
485
AllocNone
486
);
487
- // TODO: check for error?
+ if (this->color_map == None) {
488
+ // TODO: use XSetErrorHandler() to get error code
489
+ throw std::runtime_error("XCreateColormap(): failed");
490
+ }
491
utki::scope_exit scope_exit_color_map([this]() {
492
XFreeColormap(this->display.display, this->color_map);
493
});
0 commit comments