Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ea66139

Browse files
made some additions
1 parent fcf263d commit ea66139

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

‎Source.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ long black() {
3737

3838
int start(int x, int y, int width, int height, int border, long borderColor, long rgb, char[] windowTitle) {
3939
Window window;
40+
XEvent xev;
4041

4142
if((display = XOpenDisplay(NULL)) == NULL) {
4243
printf("%s\n", "Couldn't open display");
@@ -52,6 +53,10 @@ int start(int x, int y, int width, int height, int border, long borderColor, lon
5253
/* Map window to display server */
5354
XMapWindow(display, window);
5455

56+
while(True) {
57+
XNextEvent(display, &xev);
58+
}
59+
5560
/* Unmap window */
5661
XUnmapWindow(display, window);
5762
XDestroyWindow(display, window);

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /