mirror of
https://github.com/hyprwm/hyprpicker.git
synced 2024-11-16 16:15:58 +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);
|
||||
}
|
||||
|
||||
wl_display_disconnect(m_pWLDisplay);
|
||||
m_pWLDisplay = nullptr;
|
||||
if (m_pWLDisplay) {
|
||||
wl_display_disconnect(m_pWLDisplay);
|
||||
m_pWLDisplay = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
void CHyprpicker::finish(int code) {
|
||||
|
@ -46,6 +48,11 @@ void CHyprpicker::finish(int code) {
|
|||
destroyBuffer(&ls->screenBuffer);
|
||||
}
|
||||
|
||||
if (m_pWLDisplay) {
|
||||
wl_display_disconnect(m_pWLDisplay);
|
||||
m_pWLDisplay = nullptr;
|
||||
}
|
||||
|
||||
exit(code);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue