summaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2022-07-17Use default member initializationDavid Robillard1-8/+4
2022-07-17Fix unused parameter warningDavid Robillard1-0/+1
2022-07-17Avoid snprintf when loading modulesDavid Robillard1-13/+19
Clang warned about out of bounds writes here on some platforms, though I think it's a false positive. In any case, it's hard to tell because this "calculate then snprintf and hope it fits" pattern is error-prone. Replace it with one that is more verbose, but also more explicit and regular with no room for misinterpretation.
2022-07-17Remove dead Qt4 support codeDavid Robillard1-25/+0
2022-07-17Remove unnecessary includesDavid Robillard2-2/+0
2022-05-30Fix MacOS buildDavid Robillard2-3/+3
I can't for the life of me figure out how to do this portably with C++ casts, since the native types are very different between platforms (pointer on MacOS, integer on X11). So, just give up and go back to C casts here.
2022-05-29Build Qt wrappers as C++11 which is now requiredDavid Robillard1-2/+2
2022-05-29Fix warnings on MacOSDavid Robillard2-7/+18
2021-01-11Suppress C++ warnings in C headerDavid Robillard1-0/+5
2021-01-11Use C++-style casts in C++ codeDavid Robillard3-31/+34
2021-01-11Suppress Gtk and Qt header warnings in codeDavid Robillard8-0/+102
2021-01-11Remote Qt4 supportDavid Robillard3-461/+0
2021-01-07Remove unused defineDavid Robillard1-3/+0
2021-01-02Use email address instead of website for attributionDavid Robillard17-17/+17
2021-01-01Remove the need for a generated configuration headerDavid Robillard4-4/+116
Since some of these values were not actually configurable anyway, the redundant code in the wscript has been removed since the values are equivalent to the fallbacks defined in C.
2021-01-01Reduce compile-time configurationDavid Robillard1-24/+15
This is not necessary since the appropriate module is always the same and is searched for at runtime. If it failes to load, an error message with the missing module's name in it will be logged, which is more informative than the previous situation.
2020-12-31Format all code with clang-formatDavid Robillard16-2208/+2243
2020-12-22Avoid "typedef" in C++David Robillard7-15/+15
2020-12-22Use "auto" to avoid redundancyDavid Robillard3-27/+28
2020-12-22Use "default"David Robillard1-3/+1
2020-12-22Use "nullptr" in more C++ codeDavid Robillard6-33/+33
2020-12-21Use "nullptr" in C++ codeDavid Robillard2-18/+18
2020-12-15Clean up special member functionsDavid Robillard1-0/+3
2020-12-15Avoid use of reserved identifiersDavid Robillard1-4/+4
2020-12-15Avoid checking for null before deletingDavid Robillard2-6/+2
2020-12-15Avoid use of default argumentsDavid Robillard3-8/+10
2020-12-15Clean up includesDavid Robillard4-11/+16
2020-09-27Add a less janky portability wrapper for dlopen() and friendsDavid Robillard6-34/+103
2020-09-27Don't use else after return or breakDavid Robillard1-27/+32
Normally I don't enable this once, since it's often silly, but here it does actually make things more readable.
2020-09-27Separate declarations and initialize all variablesDavid Robillard2-12/+16
2020-09-27Clean up includes and forward declarationsDavid Robillard15-93/+158
2020-07-17Fix Wunused-parameter warningsDavid Robillard6-18/+30
2020-07-17Fix Weffc++ warningDavid Robillard1-0/+3
2020-07-17Fix Wweak-vtables warningDavid Robillard1-0/+6
2020-07-17Fix implicit conversion warningsDavid Robillard4-11/+11
2020-07-17Remove useless castDavid Robillard1-1/+1
2020-04-26Implement resize for X11 in Qt5David Robillard1-0/+13
2020-04-26Implement size hints for X11 in Qt5David Robillard1-9/+67
2020-04-26Clean up includesDavid Robillard1-3/+2
2020-04-26Add missing override declarationsDavid Robillard1-3/+6
2020-04-26Use initial size as fallback base size for X11 in Gtk3David Robillard1-3/+17
2020-04-26Fix size issues for X11 in Gtk2David Robillard1-1/+46
2020-04-10Remove cruftRobin Gareus1-19/+0
Minimum size is already handled by suil_x11_on_size_request(), so object properties are irrelevant.
2020-04-10Ensure that XSizeHints are set and updatedRobin Gareus1-24/+42
This fixes the following regression introduced in db07a21d484: * The window may not have been realized when wrapper_wrap is called, in which case XSizeHints were not set. * Changes to XSizeHints were never queried, so the original mininum size was enforced even when the window called ui:resize().
2020-02-12Fix drag and drop for X11 in GtkRobin Gareus1-0/+39
"XDND drag-and-drop does not work with reparented external windows, since messages are exchanged with the toplevel window only" <https://specifications.freedesktop.org/xembed-spec/xembed-spec-latest.html#idm46049203496608> To address this, the XDND specification allows events to be proxied to child windows: https://www.freedesktop.org/wiki/Specifications/XDND/ This commit does so in suil so that drag and drop works with embedded plugin UIs.
2020-02-12Avoid passing NULL to XFree()Robin Gareus1-1/+3
Apparently this is not supported by some implementation or another, although my man page says it's fine.
2020-01-06Fix compilation on MacOS older than 10.12David Robillard1-0/+4
2019-10-17Fix Windows warningDavid Robillard1-1/+1
2019-06-06Add support for Qt5 in Gtk3David Robillard2-1/+13
2019-04-14Use modern LV2 includesDavid Robillard6-11/+11