river: fix to work with latest zig-pixman
This commit is contained in:
parent
6d36846cdf
commit
df3e993013
2
deps/zig-pixman
vendored
2
deps/zig-pixman
vendored
@ -1 +1 @@
|
||||
Subproject commit 7847fd1bae7021cdb572e77eac93676c551fd1eb
|
||||
Subproject commit f8e682ac2f640368ebb414aa2e7db6a2be1b179e
|
@ -66,7 +66,7 @@ pub fn setAsActive(self: *Self) void {
|
||||
|
||||
self.cursor.constraint = self.constraint;
|
||||
|
||||
if (self.constraint.current.region.notEmpty() != 0) {
|
||||
if (self.constraint.current.region.notEmpty()) {
|
||||
_ = self.constraint.region.intersect(&self.constraint.surface.input_region, &self.constraint.current.region);
|
||||
} else {
|
||||
_ = self.constraint.region.copy(&self.constraint.surface.input_region);
|
||||
@ -84,7 +84,7 @@ fn constrainToRegion(self: *Self) void {
|
||||
|
||||
var box: pixman.Box32 = undefined;
|
||||
|
||||
if (self.constraint.region.containsPoint(cx, cy, &box) == 0) {
|
||||
if (!self.constraint.region.containsPoint(cx, cy, &box)) {
|
||||
var nRects: c_int = undefined;
|
||||
const rects = self.constraint.region.rectangles(&nRects);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user