From 24a89098ffa13b33bc5bb712530e1e19ee948823 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Mon, 9 Dec 2024 16:19:19 +0100 Subject: Size edge scroll after window, not remote session This should scale with the rest of the visible interface, not the invisible stuff that might vary wildely. In the most extreme cases, there is no usable area left as everything on screen becomes "edge". --- vncviewer/DesktopWindow.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/vncviewer/DesktopWindow.cxx b/vncviewer/DesktopWindow.cxx index 584debd1..6dbd7d5f 100644 --- a/vncviewer/DesktopWindow.cxx +++ b/vncviewer/DesktopWindow.cxx @@ -58,8 +58,8 @@ #endif // width of each "edge" region where scrolling happens, -// as a ratio compared to the viewport size -// default: 1/16th of the viewport size +// as a ratio compared to the window size +// default: 1/16th of the window size #define EDGE_SCROLL_SIZE 16 // edge width is calculated at runtime; these values are just examples static int edge_scroll_size_x = 128; @@ -863,9 +863,9 @@ int DesktopWindow::handle(int event) } if (fullscreen_active()) { // calculate width of "edge" regions - edge_scroll_size_x = viewport->w() / EDGE_SCROLL_SIZE; - edge_scroll_size_y = viewport->h() / EDGE_SCROLL_SIZE; - // if cursor is near the edge of the viewport, scroll + edge_scroll_size_x = w() / EDGE_SCROLL_SIZE; + edge_scroll_size_y = h() / EDGE_SCROLL_SIZE; + // if cursor is near the edge of the window, scroll if (((viewport->x() < 0) && (Fl::event_x() < edge_scroll_size_x)) || ((viewport->x() + viewport->w() >= w()) && (Fl::event_x() >= w() - edge_scroll_size_x)) || ((viewport->y() < 0) && (Fl::event_y() < edge_scroll_size_y)) || -- cgit v1.2.3 value='OlliTietavainenVaadin-patch-1'>OlliTietavainenVaadin-patch-1 Vaadin 6, 7, 8 is a Java framework for modern Java web applications: https://github.com/vaadin/frameworkwww-data
aboutsummaryrefslogtreecommitdiffstats
path: root/test/servlet-containers/liberty-microprofile/pom.xml
blob: 66f7b00dd290993c4396c46ce09b9d54c21fadd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54