Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2021-12-16 | Add puglGetClassName() | David Robillard | 1 | -0/+6 | |
2021-12-16 | Add puglGetWindowTitle() | David Robillard | 1 | -0/+6 | |
2021-12-16 | Add puglGetParentWindow() | David Robillard | 1 | -0/+6 | |
2021-12-16 | Add puglGetTransientParent() | David Robillard | 1 | -0/+6 | |
2021-12-16 | Rename puglSetTransientFor to puglSetTransientParent | David Robillard | 3 | -3/+3 | |
2021-12-16 | X11: Fix potential crash in puglGrabFocus() | David Robillard | 1 | -1/+10 | |
This is really a mistake in user code, but things shouldn't crash in general. So, this commit fixes the crash and adds some documentation so that developers hopefully don't try to grab focus before it makes sense. The case that was previously a crash will now gracefully fail, that is, the focus will not be (and can not be) grabbed. | |||||
2021-10-09 | Use the correct macro for GLX_CONTEXT_PROFILE_MASK_ARB | falkTX | 1 | -1/+1 | |
GLX_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB is the correct counterpart to GLX_CONTEXT_CORE_PROFILE_BIT_ARB in this context. This has the same value as the GLX_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB it replaces though, so this change should not actually affect anything. | |||||
2021-10-09 | Only call SetProcessDPIAware in programs | falkTX | 1 | -10/+11 | |
This prevents plugins from changing global host state, which causes serious problems in hosts that are not DPI aware. | |||||
2021-08-28 | Suppress new clang-tidy warnings | David Robillard | 1 | -0/+2 | |
2021-08-28 | X11: Check for XRandR extension before usage | falkTX | 1 | -6/+9 | |
It happens in practice that XRandR is enabled in the build but is not available at runtime, particularly with X11 forwarding over SSH. This properly queries the extension first to avoid crashing in such situations. | |||||
2021-08-25 | Fix whitespace | David Robillard | 1 | -1/+2 | |
2021-08-25 | MacOS: Fix build on MacOS 10.9 and earlier | falkTX | 1 | -0/+1 | |
NSEventSubtype was introduced in 10.10. | |||||
2021-06-07 | MacOS: Reset GL context after initial window reshape | falkTX | 1 | -0/+1 | |
2021-06-07 | MacOS: Fix conversion warning | falkTX | 1 | -1/+1 | |
2021-05-28 | Fix questionable float equality comparison | David Robillard | 2 | -5/+5 | |
This avoids a warning, and makes more sense in this situation anyway because negatives are also a bad configuration. | |||||
2021-05-27 | Make code build cleanly as C++ | David Robillard | 2 | -4/+14 | |
2021-05-27 | Fix missing function sentinel | David Robillard | 1 | -1/+1 | |
2021-05-27 | Avoid confusing fallthrough structure | David Robillard | 1 | -6/+4 | |
2021-05-25 | Rename event structs in a more readable style | David Robillard | 14 | -43/+43 | |
Aside from reading more naturally, this avoids clashes with types that are not events, like PuglEventFlags. This is also more consistent with the C++ bindings, where "EventExpose" would be quite strange, for example. Apologies for the noise. Aliases to the old names will be preserved in the deprecated API like other things for a short while. | |||||
2021-05-25 | Fix some conversion warnings | David Robillard | 2 | -8/+8 | |
Avoids narrowing warnings when building as C++, and uses unsigned operands with bitwise operators in various places. | |||||
2021-05-25 | Windows: Make puglSetFrame() consistent with X11 | falkTX | 1 | -2/+1 | |
2021-05-25 | X11: Do not override _POSIX_C_SOURCE if already defined | falkTX | 1 | -1/+3 | |
2021-05-24 | Shrink code | David Robillard | 1 | -4/+1 | |
2021-05-24 | Separate stub backends from other backends | David Robillard | 11 | -183/+217 | |
Stub backends were a dependency of other backends to allow some code reuse. However, that can cause conflicting symbols if multiple backends are linked into the same binary, which should be possible. To avoid this, move the shared code into the platform implementation, and export those symbols so that backends can use them. This adds some semi-public platform-specific API that can only be used by backends included with pugl. They are undocumented, subject to change at any time without a corresponding version change, and may not be used by third parties (for example by custom backends in an application). | |||||
2021-05-24 | Fix the declaration of WGL function types | Jean Pierre Cimalando | 1 | -4/+10 | |
2021-05-14 | Remove redundant conditional | Richard Gill | 1 | -5/+1 | |
2021-05-08 | Send unmap/map events when the view is minimized/restored | David Robillard | 5 | -33/+139 | |
X11 Window managers set WM_STATE to notify about minimization, often without sending core X visibility events (which seems odd to me, but that's what Gnome does anyway). So, implement this protocol and send map/unmap events to the view, and adjust the Windows implementation to do the same for consistency across all platforms. | |||||
2021-05-08 | X11: Always send an initial configure before map | David Robillard | 1 | -1/+1 | |
I think the conditional here was because this is typical when the view is embedded, but window manager behaviour is all over the place and this is something we want to always guarantee. | |||||
2021-05-08 | X11: Factor out translateClientMessage() | David Robillard | 1 | -12/+21 | |
2021-05-06 | Strengthen clang-tidy warnings | David Robillard | 2 | -3/+1 | |
2021-05-06 | Clean up X11 implementation | David Robillard | 2 | -153/+113 | |
2021-05-06 | Add basic test for Vulkan support | David Robillard | 1 | -5/+2 | |
2021-05-06 | Add test for copy/paste | David Robillard | 1 | -5/+4 | |
2021-05-03 | Clean up includes and add mappings for old versions of IWYU | David Robillard | 1 | -0/+2 | |
2021-05-03 | MacOS: Make puglGetNativeWorld() return the NSApplication | David Robillard | 1 | -2/+2 | |
2021-05-03 | Shrink puglGetViewHint() implementation | David Robillard | 1 | -5/+1 | |
2021-05-03 | Fix crash when freeing a view that has not been configured | David Robillard | 2 | -4/+14 | |
2021-05-03 | Fix questionable event casts | David Robillard | 3 | -29/+66 | |
I don't think there is any UB actually happening here, but some of these were casting to a pointer of a larger type, which is problematic. Unfortunately, it makes for quite a bit of tedious verbosity, but I don't see a decent way around that in C99. | |||||
2021-04-21 | MacOS: Fix memory leaks in puglUpdate() | Bjarke Bech | 1 | -24/+26 | |
2021-01-28 | Fix size hints on X11 | David Robillard | 1 | -3/+6 | |
2021-01-28 | Fix puglSetMaxSize() on X11 | David Robillard | 1 | -2/+2 | |
2021-01-25 | Fix warnings when compiling for X11 as C++ | David Robillard | 1 | -2/+6 | |
2021-01-02 | Avoid "else" after "return" | David Robillard | 3 | -9/+18 | |
2021-01-02 | Use email address instead of website for attribution | David Robillard | 3 | -3/+3 | |
2021-01-02 | Clean up includes | David Robillard | 2 | -1/+2 | |
2021-01-02 | Simplify clang-format configuration and format all code | David Robillard | 21 | -4018/+4074 | |
2020-12-11 | Fix a conversion warning with MinGW | David Robillard | 1 | -1/+2 | |
2020-12-01 | Make puglShow() realize automatically on Windows and MacOS | David Robillard | 2 | -0/+14 | |
2020-11-26 | Remove file documentation | David Robillard | 20 | -97/+0 | |
These will not be used in the Sphinx documentation, and most were self-explanatory and only there to make the Doxygen index look nice anyway. Where there was actually useful information, it has been preserved as regular comments. | |||||
2020-11-25 | Rename puglShowWindow and puglHideWindow to puglShow an puglHide | David Robillard | 4 | -6/+18 | |
These names were confusing because a view is not necessarily a window. Since there's no room for ambiguity here, simply drop the superfluous word. |