Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
L
libvncserver
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rasky
libvncserver
Commits
f2d51686
Commit
f2d51686
authored
May 13, 2014
by
dextero
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x11vnc: adjust blackout region coordinates to the clipping region
parent
646f844f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
xinerama.c
x11vnc/xinerama.c
+7
-0
No files found.
x11vnc/xinerama.c
View file @
f2d51686
...
@@ -98,6 +98,13 @@ static void initialize_blackouts(char *list) {
...
@@ -98,6 +98,13 @@ static void initialize_blackouts(char *list) {
if
(
y
>
Y
)
{
if
(
y
>
Y
)
{
t
=
Y
;
Y
=
y
;
y
=
t
;
t
=
Y
;
Y
=
y
;
y
=
t
;
}
}
/* take clipping region into account */
x
=
nfix
(
x
-
coff_x
,
wdpy_x
);
X
=
nfix
(
X
-
coff_x
,
wdpy_x
);
y
=
nfix
(
y
-
coff_y
,
wdpy_y
);
Y
=
nfix
(
Y
-
coff_y
,
wdpy_y
);
if
(
x
<
0
||
x
>
dpy_x
||
y
<
0
||
y
>
dpy_y
||
if
(
x
<
0
||
x
>
dpy_x
||
y
<
0
||
y
>
dpy_y
||
X
<
0
||
X
>
dpy_x
||
Y
<
0
||
Y
>
dpy_y
||
X
<
0
||
X
>
dpy_x
||
Y
<
0
||
Y
>
dpy_y
||
x
==
X
||
y
==
Y
)
{
x
==
X
||
y
==
Y
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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