fix firefox spazms

This commit is contained in:
vaxerski 2021-12-17 21:03:53 +01:00
parent 6e5ab3ce35
commit 52d8b4fd91

View file

@ -1782,8 +1782,12 @@ void CWindowManager::handleClientMessage(xcb_client_message_event_t* E) {
// For now we only support FULLSCREEN
if (E->data.data32[1] == HYPRATOMS["_NET_WM_STATE_FULLSCREEN"]) {
if ((PWINDOW->getFullscreen() && (E->data.data32[0] == 0 || E->data.data32[0] == 2))
|| (!PWINDOW->getFullscreen() && (E->data.data32[0] == 1 || E->data.data32[0] == 2))) {
// Toggle fullscreen
toggleWindowFullscrenn(PWINDOW->getDrawable());
}
Debug::log(LOG, "Message recieved to toggle fullscreen for " + std::to_string(PWINDOW->getDrawable()));
}