mirror of
https://github.com/hyprwm/hyprpicker.git
synced 2024-12-22 06:09: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,8 +35,10 @@ void CHyprpicker::init() {
|
||||||
//renderSurface(m_pLastSurface);
|
//renderSurface(m_pLastSurface);
|
||||||
}
|
}
|
||||||
|
|
||||||
wl_display_disconnect(m_pWLDisplay);
|
if (m_pWLDisplay) {
|
||||||
m_pWLDisplay = nullptr;
|
wl_display_disconnect(m_pWLDisplay);
|
||||||
|
m_pWLDisplay = nullptr;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void CHyprpicker::finish(int code) {
|
void CHyprpicker::finish(int code) {
|
||||||
|
@ -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