mirror of
https://github.com/hyprwm/Hypr.git
synced 2024-12-24 18:39:47 +01:00
fix a rare segfault
This commit is contained in:
parent
ce85980675
commit
5ce8b37382
2 changed files with 7 additions and 0 deletions
|
@ -86,12 +86,16 @@ void removeAtom(const int& window, xcb_atom_t prop, xcb_atom_t atom) {
|
|||
if (!REPLY || xcb_get_property_value_length(REPLY) == 0) {
|
||||
free(REPLY);
|
||||
xcb_ungrab_server(DisplayConnection);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
xcb_atom_t* atomsList = (xcb_atom_t*)xcb_get_property_value(REPLY);
|
||||
if (!atomsList) {
|
||||
free(REPLY);
|
||||
xcb_ungrab_server(DisplayConnection);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
int valuesnum = 0;
|
||||
|
|
|
@ -1770,6 +1770,9 @@ void CWindowManager::moveWindowToMapped(int64_t id) {
|
|||
}
|
||||
|
||||
windows[windows.size() - 1].setUnderFullscreen(false);
|
||||
windows[windows.size() - 1].setDirty(true);
|
||||
windows[windows.size() - 1].setLastUpdatePosition(Vector2D(0,0));
|
||||
windows[windows.size() - 1].setLastUpdateSize(Vector2D(0,0));
|
||||
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue