docs: the comparison is size and position, not only size (Thanks Merovius)

This commit is contained in:
Michael Stapelberg 2010-02-22 07:09:17 +01:00
parent 4fcbb7980e
commit e209fd7d3a

View File

@ -51,8 +51,8 @@ bool screens_are_equal(i3Screen *screen1, i3Screen *screen2) {
if (screen1 == screen2) if (screen1 == screen2)
return true; return true;
/* Compare their size - other properties are not relevant to determine /* Compare their size and position - other properties are not relevant
* if a screen is equal to another one */ * to determine if a screen is equal to another one */
return (memcmp(&(screen1->rect), &(screen2->rect), sizeof(Rect)) == 0); return (memcmp(&(screen1->rect), &(screen2->rect), sizeof(Rect)) == 0);
} }