Added default background as a PNG
This commit is contained in:
parent
5046c02cce
commit
3753f83f69
8 changed files with 66 additions and 2 deletions
|
|
@ -25,7 +25,6 @@ void CHyprWLListener::removeCallback() {
|
|||
if (m_bIsConnected) {
|
||||
Debug::log(LOG, "Callback %x -> %x, %s removed.", m_pCallback, m_pOwner, m_szAuthor.c_str());
|
||||
wl_list_remove(&m_sListener.link);
|
||||
wl_list_init(&m_sListener.link);
|
||||
}
|
||||
|
||||
m_bIsConnected = false;
|
||||
|
|
@ -36,6 +35,9 @@ bool CHyprWLListener::isConnected() {
|
|||
}
|
||||
|
||||
void CHyprWLListener::initCallback(wl_signal* pSignal, std::function<void(void*, void*)> callback, void* pOwner, std::string author) {
|
||||
if (m_bIsConnected)
|
||||
removeCallback();
|
||||
|
||||
m_pOwner = pOwner;
|
||||
m_pCallback = callback;
|
||||
m_szAuthor = author;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue