Hello everyone,
I know this thread is more than a year old but I have the same problem. I use the C++ libvlcpp bindings and also can not find any option to check if the window was closed. Maybe there is a method I am missing out?
When I close the window, the vlc library outputs:
Code: Select all
xcb_window window error: X server failure
But the program continues working in the background without any window. To restart the program, I have to kill it manually. This is not the expected behaviour for the user!
I have tried to create my own X window with XCB, but this is quite complicated, and seems overkill only for an additional check if a window was closed.
Also, libvlc already manages a window pretty well and even handles X events such as double-click to toggle fullscreen and it hides the cursor if it enters the window. (libvlc even handles handles the double-click event if I create my own X window, which is odd.)
Finally, if there would be just another function, which returns the state of the window (open, closed or killed), that would be all I need. If it returns a value which indicates window destruction I would exit my program.
I would appreciate a lot, if you would add such a function.