mirror of
https://github.com/hyprwm/Hypr.git
synced 2024-11-22 13:35:57 +01:00
fix firefox spazms
This commit is contained in:
parent
6e5ab3ce35
commit
52d8b4fd91
1 changed files with 6 additions and 2 deletions
|
@ -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"]) {
|
||||
// Toggle fullscreen
|
||||
toggleWindowFullscrenn(PWINDOW->getDrawable());
|
||||
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()));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue