mirror of
https://github.com/LizardByte/Sunshine.git
synced 2025-08-10 00:52:16 +00:00
Fix loss of connection when switching display resolution on windows
This commit is contained in:
@@ -164,12 +164,6 @@ struct x11_attr_t : public display_t {
|
||||
return capture_e::ok;
|
||||
}
|
||||
|
||||
int reinit() override {
|
||||
refresh();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
std::unique_ptr<img_t> alloc_img() override {
|
||||
return std::make_unique<x11_img_t>();
|
||||
}
|
||||
@@ -247,14 +241,6 @@ struct shm_attr_t : public x11_attr_t {
|
||||
return std::make_unique<shm_img_t>();
|
||||
}
|
||||
|
||||
int reinit() override {
|
||||
data.~shm_data_t();
|
||||
shm_id.~shm_id_t();
|
||||
xcb.reset(nullptr);
|
||||
|
||||
return init();
|
||||
}
|
||||
|
||||
int init() {
|
||||
shm_xdisplay.reset(XOpenDisplay(nullptr));
|
||||
xcb.reset(xcb_connect(nullptr, nullptr));
|
||||
|
||||
Reference in New Issue
Block a user