Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2022-04-23 | Windows: Avoid else after return | David Robillard | 2 | -5/+15 | |
2022-04-23 | Strengthen MSVC warnings | David Robillard | 2 | -3/+3 | |
2022-04-21 | Improve error handling | David Robillard | 8 | -79/+139 | |
2022-04-21 | Remove unused return type from backend destroy methods | David Robillard | 11 | -35/+24 | |
Since this is essentially a destructor, I don't think there's anything really useful to do with errors here, and in practice no backends actually used it anyway. | |||||
2022-04-21 | Move attribute definitions to a separate header | David Robillard | 4 | -12/+21 | |
2022-04-21 | Fix private include guards | David Robillard | 5 | -15/+15 | |
2021-12-17 | Reduce variable scope | David Robillard | 1 | -2/+2 | |
2021-12-17 | Adopt REUSE machine-readable licensing standard | David Robillard | 22 | -334/+48 | |
See https://reuse.software/ for details. | |||||
2021-12-17 | Suppress new warnings in clang-tidy 13 | David Robillard | 1 | -1/+2 | |
2021-12-17 | Windows: Support extended mouse buttons | David Robillard | 1 | -0/+14 | |
2021-12-17 | Make button numbers consistent across platforms | David Robillard | 3 | -7/+14 | |
There's no universal consensus on how buttons are numbered. Left, right, middle as 0, 1, 2 seems to be the most common convention on modern vaguely similar libraries, so I've gone with that. The switch to zero-based indices will obviously break all current client code. Particularly since now is the time to finish any breaking changes before a stable release, I think that is better than only changing the middle and right numbers, which would likely go unnoticed. | |||||
2021-12-17 | Call glXQueryDrawable() from within the GLX context | David Robillard | 1 | -5/+8 | |
This fixes getting the PUGL_SWAP_INTERVAL hint on some NVidia drivers. | |||||
2021-12-17 | Explicitly check for supported GLX extensions | David Robillard | 1 | -11/+24 | |
2021-12-16 | Add puglGetBackend() | David Robillard | 1 | -0/+6 | |
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 | |