Skip to content

Commit

Permalink
fix(linux): segmentation fault on draw window with minimal size (#200) (
Browse files Browse the repository at this point in the history
#201)

Signed-off-by: Vasilyy Balyasnyy <[email protected]>

Co-authored-by: Vasilyy Balyasnyy <[email protected]>
  • Loading branch information
vbalyasnyy and Vasilyy Balyasnyy authored Mar 13, 2020
1 parent a10df88 commit fa23f89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platform/linux/linux_x11display.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ static void X11Surface_OnResize(LCUI_Surface s, int width, int height)
int depth;
XGCValues gcv;
Visual *visual;
if (width == s->width && height == s->height) {
if (width == s->width && height == s->height && s->ximage && s->gc) {
return;
}
if (s->ximage) {
Expand Down

0 comments on commit fa23f89

Please sign in to comment.