constraints: Clean up logical operations
The logical version of the bitwise XOR operator ^ is !=. I don't know why XOR was even used in the first place.
This commit is contained in:
parent
b0b8f37240
commit
25d7e48077
@ -588,7 +588,7 @@ update_onscreen_requirements (MetaWindow *window,
|
|||||||
window->require_fully_onscreen =
|
window->require_fully_onscreen =
|
||||||
meta_rectangle_contained_in_region (info->usable_screen_region,
|
meta_rectangle_contained_in_region (info->usable_screen_region,
|
||||||
&info->current);
|
&info->current);
|
||||||
if (old ^ window->require_fully_onscreen)
|
if (old != window->require_fully_onscreen)
|
||||||
meta_topic (META_DEBUG_GEOMETRY,
|
meta_topic (META_DEBUG_GEOMETRY,
|
||||||
"require_fully_onscreen for %s toggled to %s\n",
|
"require_fully_onscreen for %s toggled to %s\n",
|
||||||
window->desc,
|
window->desc,
|
||||||
@ -601,7 +601,7 @@ update_onscreen_requirements (MetaWindow *window,
|
|||||||
window->require_on_single_monitor =
|
window->require_on_single_monitor =
|
||||||
meta_rectangle_contained_in_region (info->usable_monitor_region,
|
meta_rectangle_contained_in_region (info->usable_monitor_region,
|
||||||
&info->current);
|
&info->current);
|
||||||
if (old ^ window->require_on_single_monitor)
|
if (old != window->require_on_single_monitor)
|
||||||
meta_topic (META_DEBUG_GEOMETRY,
|
meta_topic (META_DEBUG_GEOMETRY,
|
||||||
"require_on_single_monitor for %s toggled to %s\n",
|
"require_on_single_monitor for %s toggled to %s\n",
|
||||||
window->desc,
|
window->desc,
|
||||||
@ -620,7 +620,7 @@ update_onscreen_requirements (MetaWindow *window,
|
|||||||
window->require_titlebar_visible =
|
window->require_titlebar_visible =
|
||||||
meta_rectangle_overlaps_with_region (info->usable_screen_region,
|
meta_rectangle_overlaps_with_region (info->usable_screen_region,
|
||||||
&titlebar_rect);
|
&titlebar_rect);
|
||||||
if (old ^ window->require_titlebar_visible)
|
if (old != window->require_titlebar_visible)
|
||||||
meta_topic (META_DEBUG_GEOMETRY,
|
meta_topic (META_DEBUG_GEOMETRY,
|
||||||
"require_titlebar_visible for %s toggled to %s\n",
|
"require_titlebar_visible for %s toggled to %s\n",
|
||||||
window->desc,
|
window->desc,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user