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.
vor 1 Jahr
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.
vor 1 Jahr
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.
vor 1 Jahr
Pierre Ossman
03ca97526b
Remove old mingw compatibility code
This isn't needed with modern build environments, and can even conflict
with them.
vor 1 Jahr
Pierre Ossman
21c57423ae
Don't partially init monitor information
gcc will complain, and we will fill out all fields later anyway.
vor 1 Jahr
Pierre Ossman
1d1f16f4ac
Fix incorrect types
These types caused an incorrect signed/unsigned behaviour, so let's make
sure we use the appropriate type.
vor 1 Jahr
Pierre Ossman
11b535fcc8
Fix order of qualifiers
gcc can get upset if they aren't in this order.
vor 1 Jahr
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.
vor 1 Jahr
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.
vor 1 Jahr
Pierre Ossman
642a6b2445
Remove useless checks
These are all truisms because of the valid range of the types.
vor 1 Jahr
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.
vor 1 Jahr
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.
vor 1 Jahr
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.
vor 1 Jahr
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.
vor 1 Jahr
Pierre Ossman
225e1516f9
Respect given server name
No practical difference currently, but let's respect what this API was
supposed to do.
vor 1 Jahr
Pierre Ossman
3f98b29bd7
Don't include unused file path parameter
vor 1 Jahr
Pierre Ossman
a4fa1d7188
Don't include palette to full color methods
They have no need for it, so let's simplify things.
vor 1 Jahr
Pierre Ossman
01afd4a74d
Remove unused flags to decoder contexts
Everything in flags is already handled at a higher level.
vor 1 Jahr
Pierre Ossman
a18fd2942a
Stop supplying flags to clipboard peek handler
The flags should always be empty anyway.
vor 1 Jahr
Pierre Ossman
ca0955c3fe
Mark system include paths correctly
This makes sure the compiler doesn't complain about problems in those
files.
vor 1 Jahr
Pierre Ossman
ff25168a53
Always enable -Wvla
It's only the -Werror part we want to be conditional on being debug
builds.
vor 1 Jahr
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.
vor 1 Jahr
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.
vor 1 Jahr
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.
vor 1 Jahr
Pierre Ossman
81b80305a2
Merge branch 'add-ard-mslogonii' of https://github.com/pdlan/tigervnc
vor 1 Jahr
Dinglan Peng
40e24436e3
Add client-side support for the MSLogonII security type.
vor 1 Jahr
Dinglan Peng
6c4c7c8551
Add client-side support for the DH security type.
vor 1 Jahr
Luna Jernberg
dd40ebee73
Update Swedish translation
vor 1 Jahr
Brian Hinz
eae496f9e5
Merge pull request #1525 from pdlan/add-ra2-java
Add support for RSA-AES security types (Java version)
vor 1 Jahr
Göran Uddeborg
09a533ac50
Update Swedish translation
vor 1 Jahr
Lauri Nurmi
3018f30ad3
Update Finnish translation
vor 1 Jahr
Petr Pisar
52bfe6dae8
Update Czech translation
vor 1 Jahr
Pierre Ossman
1d82602177
Merge branch 'newoptions' of https://github.com/CendioOssman/tigervnc
vor 1 Jahr
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.
vor 1 Jahr
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.
vor 2 Jahren
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.
vor 2 Jahren
Pierre Ossman
4c0600d5c1
Wider margin around window edges
To conform with how e.g. GNOME sets its margins.
vor 2 Jahren
Pierre Ossman
4f8af1385c
Dynamically size Fl_Group:s
This makes the code much cleaner, and easier to update.
vor 2 Jahren
Pierre Ossman
6cc74213c1
Make UserDialog use standard layout constants.
Makes it easier to adjust the UI from a central place.
vor 2 Jahren
Pierre Ossman
547c761b2d
Make ServerDialog use standard layout constants
Makes it easier to adjust the UI from a central place.
vor 2 Jahren
Pierre Ossman
5b3c7608e0
Modern look for options sections
Outlines are no longer commonly used. Instead visually separated
headlines are the norm.
vor 2 Jahren
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.
vor 2 Jahren
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.
vor 1 Jahr
Yi-Jyun Pan
e9b322de82
Update Chinese (traditional) translation
vor 1 Jahr
Yuri Chornoivan
115cc12a5a
Update Ukranian translation
vor 1 Jahr
Remus-Gabriel Chelu
3a0e5cf124
Update Romanian translation
vor 1 Jahr
Andika Triwidada
9e109a2873
Update Indonesian translation
vor 1 Jahr
Yaron Shahrabani
7cf6ca3cb4
Update Hebrew translation
vor 1 Jahr
Cristian Othón Martínez Vera
e88f0634f2
Update Spanish translation
vor 1 Jahr
Mario Blättermann
b39c3d3f6a
Update German translation
vor 1 Jahr