Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dorota Czaplejewicz
gtk
Commits
ac4609ec
Commit
ac4609ec
authored
Nov 23, 2010
by
Benjamin Otte
Browse files
x11: Fix in_rectangle computation
A point is not in a rectangle when it's at the x + width coordinate.
parent
1bb6f48b
Changes
1
Hide whitespace changes
Inline
Side-by-side
gdk/x11/gdkdevice-core.c
View file @
ac4609ec
...
...
@@ -106,11 +106,11 @@ impl_coord_in_window (GdkWindow *window,
int
impl_y
)
{
if
(
impl_x
<
window
->
abs_x
||
impl_x
>
window
->
abs_x
+
window
->
width
)
impl_x
>
=
window
->
abs_x
+
window
->
width
)
return
FALSE
;
if
(
impl_y
<
window
->
abs_y
||
impl_y
>
window
->
abs_y
+
window
->
height
)
impl_y
>
=
window
->
abs_y
+
window
->
height
)
return
FALSE
;
return
TRUE
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment