diff options
author | Christian Beier <dontmind@freeshell.org> | 2009-10-06 17:49:05 +0200 |
---|---|---|
committer | Johannes Schindelin <johannes.schindelin@gmx.de> | 2009-10-06 23:49:51 +0200 |
commit | 21df602d183d37cc8d6e0a6fe43b8060ba821538 (patch) | |
tree | e81fe34fc1c2f3e719a0979756acf618f26310f0 | |
parent | a92f7f46a675a3533a0a89b6fe2d509e43a2aa8f (diff) | |
download | libvncserver-21df602d183d37cc8d6e0a6fe43b8060ba821538.zip libvncserver-21df602d183d37cc8d6e0a6fe43b8060ba821538.tar.gz |
x11vnc/screen.c: fix -sid mode by adjusting off_x and off_y.
if the window was shifted into view, these offsets also change.
Signed-off-by: Christian Beier <dontmind@freeshell.org>
-rw-r--r-- | x11vnc/screen.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/x11vnc/screen.c b/x11vnc/screen.c index 71f4462..cf29ae1 100644 --- a/x11vnc/screen.c +++ b/x11vnc/screen.c @@ -2379,19 +2379,19 @@ if (0) fprintf(stderr, "DefaultDepth: %d visial_id: %d\n", depth, (int) visual_ if (subwin_x + wdpy_x > disp_x) { shift = 1; - subwin_x = disp_x - wdpy_x - 3; + subwin_x = off_x = disp_x - wdpy_x - 3; } if (subwin_y + wdpy_y > disp_y) { shift = 1; - subwin_y = disp_y - wdpy_y - 3; + subwin_y = off_y = disp_y - wdpy_y - 3; } if (subwin_x < 0) { shift = 1; - subwin_x = 1; + subwin_x = off_x = 1; } if (subwin_y < 0) { shift = 1; - subwin_y = 1; + subwin_y = off_y = 1; } if (shift) { |