mirror of https://github.com/hyprwm/Hypr.git
fix firefox spazms
This commit is contained in:
parent
6e5ab3ce35
commit
52d8b4fd91
|
@ -1782,8 +1782,12 @@ void CWindowManager::handleClientMessage(xcb_client_message_event_t* E) {
|
||||||
// For now we only support FULLSCREEN
|
// For now we only support FULLSCREEN
|
||||||
|
|
||||||
if (E->data.data32[1] == HYPRATOMS["_NET_WM_STATE_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
|
// Toggle fullscreen
|
||||||
toggleWindowFullscrenn(PWINDOW->getDrawable());
|
toggleWindowFullscrenn(PWINDOW->getDrawable());
|
||||||
|
}
|
||||||
|
|
||||||
Debug::log(LOG, "Message recieved to toggle fullscreen for " + std::to_string(PWINDOW->getDrawable()));
|
Debug::log(LOG, "Message recieved to toggle fullscreen for " + std::to_string(PWINDOW->getDrawable()));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue