Remove packed attribute from Rect
Fixes #3785 -- the issue where the Travis build failed because of gcc's -Werror=address-of-packed-member. Adds an equality function to avoid relying on memcmp().
This commit is contained in:
@ -279,7 +279,7 @@ void scratchpad_fix_resolution(void) {
|
||||
|
||||
Rect new_rect = __i3_output->rect;
|
||||
|
||||
if (memcmp(&old_rect, &new_rect, sizeof(Rect)) == 0) {
|
||||
if (rect_equals(new_rect, old_rect)) {
|
||||
DLOG("Scratchpad size unchanged.\n");
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user