Pierre Ossman
7a36fb8ca7
Use __attribute__:s directly
These are supported by gcc and clang, and I don't think MSVC works well
with our code anyway, so let's keep things simple and use these
directly.
1 year ago
Pierre Ossman
ebfd56106d
Enable more warnings by default
These are also useful warnings that tend to find real bugs, so let's
enable then.
The downside is they require us to mark certain things so the compiler
knows if they were on purpose or not.
1 year ago
Pierre Ossman
36f3690b09
Work around -Wcast-function-type
That warning doesn't play well with Windows' GetProcAddress(), so add
some extra casting to work around it.
1 year ago
Pierre Ossman
03ca97526b
Remove old mingw compatibility code
This isn't needed with modern build environments, and can even conflict
with them.
1 year ago
Pierre Ossman
21c57423ae
Don't partially init monitor information
gcc will complain, and we will fill out all fields later anyway.
1 year ago
Pierre Ossman
1d1f16f4ac
Fix incorrect types
These types caused an incorrect signed/unsigned behaviour, so let's make
sure we use the appropriate type.
1 year ago
Pierre Ossman
11b535fcc8
Fix order of qualifiers
gcc can get upset if they aren't in this order.
1 year ago
Pierre Ossman
cdec36858e
Protect key variables from setjmp()
If we don't mark these as volatile then they might get reset on
longjmp() and the code will misbehave.
1 year ago
Pierre Ossman
e75051a62a
Remove useless const specifiers
These are just values, so setting const on them has no effect as the
caller will get a copy.
1 year ago
Pierre Ossman
642a6b2445
Remove useless checks
These are all truisms because of the valid range of the types.
1 year ago
Pierre Ossman
23cabcaa9e
Explicitly mark switch case fall through
This allows us to separate accidental fall through from explicit ones,
which allows us to turn on such checks in the compiler.
1 year ago
Pierre Ossman
e866c7de65
Fix RSA-AES state machines
If there isn't enough data, then the client reading the hash will fall
down and try to read the subtype instead, which isn't correct.
Invert the logic so we get a more consistent way through where we only
break out when there is insufficient data.
Do the same for the server code, for consistency.
1 year ago
Pierre Ossman
eb684b9979
Add missing breaks to Windows key grab code
These were not meant to fall through. Likely didn't have any adverse
effects, but let's fix it anyway.
1 year ago
Pierre Ossman
3a1c46ff75
Explicitly mark unused parameters
This allows us to separate accidentally unused, from explicitly unused
parameters, which allows us to turn on such checks in the compiler.
1 year ago
Pierre Ossman
225e1516f9
Respect given server name
No practical difference currently, but let's respect what this API was
supposed to do.
1 year ago
Pierre Ossman
3f98b29bd7
Don't include unused file path parameter
1 year ago
Pierre Ossman
a4fa1d7188
Don't include palette to full color methods
They have no need for it, so let's simplify things.
1 year ago
Pierre Ossman
01afd4a74d
Remove unused flags to decoder contexts
Everything in flags is already handled at a higher level.
1 year ago
Pierre Ossman
a18fd2942a
Stop supplying flags to clipboard peek handler
The flags should always be empty anyway.
1 year ago
Pierre Ossman
ca0955c3fe
Mark system include paths correctly
This makes sure the compiler doesn't complain about problems in those
files.
1 year ago
Pierre Ossman
ff25168a53
Always enable -Wvla
It's only the -Werror part we want to be conditional on being debug
builds.
1 year ago
Pierre Ossman
e0d2843c60
Remove debugging strdup()
This was not meant to be included in the previous commit. The static
storage for the font string is more than enough.
1 year ago
Pierre Ossman
8793424b34
Keep font name in permanent memory
Fl::set_font() doesn't keep its own copy, so we need to make sure the
font string doesn't get freed or overwritten at a later point.
1 year ago
Pierre Ossman
eff7fdd81b
Use Rocky Linux for RHEL builds
CentOS Stream isn't fully compatible with RHEL, and there are no useful
RHEL images available, so that leaves us with one of the new RHEL forks.
1 year ago
Pierre Ossman
81b80305a2
Merge branch 'add-ard-mslogonii' of https://github.com/pdlan/tigervnc
1 year ago
Dinglan Peng
40e24436e3
Add client-side support for the MSLogonII security type.
1 year ago
Dinglan Peng
6c4c7c8551
Add client-side support for the DH security type.
1 year ago
Luna Jernberg
dd40ebee73
Update Swedish translation
1 year ago
Brian Hinz
eae496f9e5
Merge pull request #1525 from pdlan/add-ra2-java
Add support for RSA-AES security types (Java version)
1 year ago
Göran Uddeborg
09a533ac50
Update Swedish translation
1 year ago
Lauri Nurmi
3018f30ad3
Update Finnish translation
1 year ago
Petr Pisar
52bfe6dae8
Update Czech translation
1 year ago
Pierre Ossman
1d82602177
Merge branch 'newoptions' of https://github.com/CendioOssman/tigervnc
1 year ago
Pierre Ossman
9bc9e44232
Respect system UI font
Use the font specified by the system for UI elements. For Windows and
macOS this is straight forward, but Linux is more complex as there is no
single source for this information.
1 year ago
Pierre Ossman
d751b1837f
Fix up padding for radio/check buttons
Try to follow the actual padding that FLTK adds to these widgets.
The extra one pixel on each is because of a bug in FLTK's focus drawing
code, where the box is always one pixel too small in both dimensions.
1 year ago
Pierre Ossman
850acc728c
Reduce indent to same as a normal margin
This is how GNOME does things, so let's do the same so things look
similar.
1 year ago
Pierre Ossman
4c0600d5c1
Wider margin around window edges
To conform with how e.g. GNOME sets its margins.
1 year ago
Pierre Ossman
4f8af1385c
Dynamically size Fl_Group:s
This makes the code much cleaner, and easier to update.
1 year ago
Pierre Ossman
6cc74213c1
Make UserDialog use standard layout constants.
Makes it easier to adjust the UI from a central place.
1 year ago
Pierre Ossman
547c761b2d
Make ServerDialog use standard layout constants
Makes it easier to adjust the UI from a central place.
1 year ago
Pierre Ossman
5b3c7608e0
Modern look for options sections
Outlines are no longer commonly used. Instead visually separated
headlines are the norm.
2 years ago
Pierre Ossman
0a6bcade1c
Change to modern layout in options dialog
Classical tabs are very dated. They are also a practical problem as you
get very limited in the numbers of tabs we can have, and how long the
text can be on them.
Switch to one popular modern model with a list on the left instead where
pages can be selected.
2 years ago
Pierre Ossman
3810ff42fe
Rebuild .desktop and metainfo when needed
If the translations change then these files need to be regenerated as
they include data from those.
1 year ago
Yi-Jyun Pan
e9b322de82
Update Chinese (traditional) translation
1 year ago
Yuri Chornoivan
115cc12a5a
Update Ukranian translation
1 year ago
Remus-Gabriel Chelu
3a0e5cf124
Update Romanian translation
1 year ago
Andika Triwidada
9e109a2873
Update Indonesian translation
1 year ago
Yaron Shahrabani
7cf6ca3cb4
Update Hebrew translation
1 year ago
Cristian Othón Martínez Vera
e88f0634f2
Update Spanish translation
1 year ago
Mario Blättermann
b39c3d3f6a
Update German translation
1 year ago