diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2020-12-16 12:25:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-16 12:25:20 +0100 |
commit | a7f59525c51841f8c0e77689e92c72b69c03cafc (patch) | |
tree | 02b06699156959bbc0d2276ea67be825ac396995 /platform | |
parent | 92d4deedaa542e9458845fdf2b2a44fedd19fde8 (diff) | |
parent | f9b83e90b24b0d271e7680edcfc44b2fc306fdbd (diff) |
Merge pull request #44421 from madmiraal/fix-non-c-typedef-for-linkage
Fix named anonymous struct warning
Diffstat (limited to 'platform')
-rw-r--r-- | platform/linuxbsd/display_server_x11.cpp | 9 | ||||
-rw-r--r-- | platform/linuxbsd/display_server_x11.h | 9 |
2 files changed, 9 insertions, 9 deletions
diff --git a/platform/linuxbsd/display_server_x11.cpp b/platform/linuxbsd/display_server_x11.cpp index 136bee68e3..7e58272208 100644 --- a/platform/linuxbsd/display_server_x11.cpp +++ b/platform/linuxbsd/display_server_x11.cpp @@ -95,6 +95,15 @@ static const double abs_resolution_mult = 10000.0; static const double abs_resolution_range_mult = 10.0; +// Hints for X11 fullscreen +struct Hints { + unsigned long flags = 0; + unsigned long functions = 0; + unsigned long decorations = 0; + long inputMode = 0; + unsigned long status = 0; +}; + bool DisplayServerX11::has_feature(Feature p_feature) const { switch (p_feature) { case FEATURE_SUBWINDOWS: diff --git a/platform/linuxbsd/display_server_x11.h b/platform/linuxbsd/display_server_x11.h index 0507ef3fff..6f437f3be9 100644 --- a/platform/linuxbsd/display_server_x11.h +++ b/platform/linuxbsd/display_server_x11.h @@ -61,15 +61,6 @@ #include <X11/extensions/Xrandr.h> #include <X11/keysym.h> -// Hints for X11 fullscreen -typedef struct { - unsigned long flags = 0; - unsigned long functions = 0; - unsigned long decorations = 0; - long inputMode = 0; - unsigned long status = 0; -} Hints; - typedef struct _xrr_monitor_info { Atom name; Bool primary = false; |