Open 71e6fd52 opened 6 years ago
I run https://github.com/Twinklebear/TwinklebearDev-Lessons/blob/master/Lesson1/src/main.cpp, and kwin crash:
QXcbConnection: XCB error: 3 (BadWindow), sequence: 49027, resource id: 115343374, major code: 18 (ChangeProperty), minor code: 0 QXcbConnection: XCB error: 3 (BadWindow), sequence: 49028, resource id: 115343374, major code: 18 (ChangeProperty), minor code: 0 QXcbConnection: XCB error: 3 (BadWindow), sequence: 49034, resource id: 115343374, major code: 18 (ChangeProperty), minor code: 0 QXcbConnection: XCB error: 3 (BadWindow), sequence: 49035, resource id: 115343374, major code: 20 (GetProperty), minor code: 0 QXcbConnection: XCB error: 3 (BadWindow), sequence: 49037, resource id: 115343374, major code: 18 (ChangeProperty), minor code: 0 QXcbConnection: XCB error: 3 (BadWindow), sequence: 49038, resource id: 115343374, major code: 42 (SetInputFocus), minor code: 0 QXcbConnection: XCB error: 3 (BadWindow), sequence: 49039, resource id: 115343374, major code: 25 (SendEvent), minor code: 0 QXcbConnection: XCB error: 3 (BadWindow), sequence: 49044, resource id: 115343374, major code: 12 (ConfigureWindow), minor code: 0 QXcbConnection: XCB error: 3 (BadWindow), sequence: 49045, resource id: 115343374, major code: 25 (SendEvent), minor code: 0 QXcbConnection: XCB error: 3 (BadWindow), sequence: 49051, resource id: 115343374, major code: 18 (ChangeProperty), minor code: 0 QXcbConnection: XCB error: 3 (BadWindow), sequence: 49052, resource id: 115343374, major code: 18 (ChangeProperty), minor code: 0 QXcbConnection: XCB error: 3 (BadWindow), sequence: 49053, resource id: 115343374, major code: 20 (GetProperty), minor code: 0 QXcbConnection: XCB error: 3 (BadWindow), sequence: 49113, resource id: 115343374, major code: 20 (GetProperty), minor code: 0 QXcbConnection: XCB error: 3 (BadWindow), sequence: 49114, resource id: 115343374, major code: 18 (ChangeProperty), minor code: 0 QXcbConnection: XCB error: 3 (BadWindow), sequence: 49119, resource id: 115343374, major code: 15 (QueryTree), minor code: 0 QXcbConnection: XCB error: 3 (BadWindow), sequence: 49182, resource id: 113249506, major code: 3 (GetWindowAttributes), minor code: 0 QXcbConnection: XCB error: 9 (BadDrawable), sequence: 49183, resource id: 113249506, major code: 14 (GetGeometry), minor code: 0 QXcbConnection: XCB error: 3 (BadWindow), sequence: 49209, resource id: 113249504, major code: 15 (QueryTree), minor code: 0 QXcbConnection: XCB error: 9 (BadDrawable), sequence: 49212, resource id: 113249504, major code: 55 (CreateGC), minor code: 0 QXcbConnection: XCB error: 13 (BadGC), sequence: 49213, resource id: 113249509, major code: 59 (SetClipRectangles), minor code: 0 QXcbConnection: XCB error: 9 (BadDrawable), sequence: 49214, resource id: 113249504, major code: 130 (Unknown), minor code: 3 QXcbConnection: XCB error: 13 (BadGC), sequence: 49215, resource id: 113249509, major code: 56 (ChangeGC), minor code: 0 QXcbConnection: XCB error: 13 (BadGC), sequence: 49216, resource id: 113249509, major code: 59 (SetClipRectangles), minor code: 0 QXcbConnection: XCB error: 9 (BadDrawable), sequence: 49217, resource id: 113249504, major code: 130 (Unknown), minor code: 3 QXcbConnection: XCB error: 13 (BadGC), sequence: 49218, resource id: 113249509, major code: 56 (ChangeGC), minor code: 0 kwin_x11: Couldn't find current GLX or EGL context.
If I create the window by SDL_CreateWindow("Hello", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, 640, 480, SDL_WINDOW_SHOWN), it work
SDL_CreateWindow("Hello", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, 640, 480, SDL_WINDOW_SHOWN)
I run https://github.com/Twinklebear/TwinklebearDev-Lessons/blob/master/Lesson1/src/main.cpp, and kwin crash: