Skip to content

Commit

Permalink
[skip ci] enforce code format
Browse files Browse the repository at this point in the history
  • Loading branch information
taichi-gardener committed Jun 6, 2020
1 parent 476eea5 commit c378049
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion taichi/gui/x11.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ void GUI::create_window() {
wmDeleteMessage = std::vector<char>(sizeof(Atom));
*(Atom *)wmDeleteMessage.data() =
XInternAtom((Display *)display, "WM_DELETE_WINDOW", False);
XSetWMProtocols((Display *)display, window, (Atom *)wmDeleteMessage.data(), 1);
XSetWMProtocols((Display *)display, window, (Atom *)wmDeleteMessage.data(),
1);
XMapWindow((Display *)display, window);
img = new CXImage((Display *)display, (Visual *)visual, width, height);
}
Expand Down

0 comments on commit c378049

Please sign in to comment.