mirror of
https://github.com/hyprwm/hyprpicker.git
synced 2024-12-22 14:19:48 +01:00
disconnect from display on finish
This commit is contained in:
parent
7ae1d1dabd
commit
bec451ee84
1 changed files with 9 additions and 2 deletions
|
@ -35,9 +35,11 @@ void CHyprpicker::init() {
|
||||||
//renderSurface(m_pLastSurface);
|
//renderSurface(m_pLastSurface);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (m_pWLDisplay) {
|
||||||
wl_display_disconnect(m_pWLDisplay);
|
wl_display_disconnect(m_pWLDisplay);
|
||||||
m_pWLDisplay = nullptr;
|
m_pWLDisplay = nullptr;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void CHyprpicker::finish(int code) {
|
void CHyprpicker::finish(int code) {
|
||||||
for (auto& ls : m_vLayerSurfaces) {
|
for (auto& ls : m_vLayerSurfaces) {
|
||||||
|
@ -46,6 +48,11 @@ void CHyprpicker::finish(int code) {
|
||||||
destroyBuffer(&ls->screenBuffer);
|
destroyBuffer(&ls->screenBuffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (m_pWLDisplay) {
|
||||||
|
wl_display_disconnect(m_pWLDisplay);
|
||||||
|
m_pWLDisplay = nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
exit(code);
|
exit(code);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue