Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2024-07-13 | MacOS: Fix mouse wheel scroll speed | David Robillard | 1 | -5/+11 | |
This just happens to be the factor that results in one tick of a conventional mouse wheel being a change of 1.0 "lines" as on other platforms (at least for me, hopefully everywhere). Moving a wheel quickly does result in quite a lot of acceleration on MacOS though, so more refinement might be needed here for consistent event handling across platforms. | |||||
2024-07-13 | MacOS: Fix expose event coordinates | David Robillard | 1 | -1/+4 | |
2024-07-13 | X11: Avoid setting PBaseSize hints for top-level windows | David Robillard | 1 | -1/+2 | |
By my reading of the spec, pugl's use of this hint was correct. However, many window managers break when it's set and use that size as the minimum (even when an actual minimum is set). This seems to be a bug based on a misreading of the spec which has been copy-pasted across many small window manager projects over the years. Not exposing the default size is unfortunate, but apparently nobody misses features based on it and there's nothing we can do about it here, so just deny the window manager the information entirely. The hint is still set for embedded views because (for example) plugin hosts need this information. | |||||
2024-07-12 | Windows: Support building with UNICODE | David Robillard | 3 | -20/+37 | |
2024-06-10 | Fix build and tests with optional X11 features disabled | David Robillard | 1 | -1/+1 | |
2023-11-11 | MacOS: Fix Cairo rendering on some systems | David Robillard | 1 | -3/+1 | |
CGContextConvertSizeToUserSpace returns a negative height on some systems and a positive height on others. I have no idea why, but only basic scaling is required here, so just avoid this function entirely. | |||||
2023-11-11 | Add support for Num, Scroll, and Caps Lock | David Robillard | 4 | -20/+37 | |
2023-11-11 | MacOS: Support left/right shift, control, and option keys | David Robillard | 1 | -4/+6 | |
2023-10-22 | X11: Only call XSetTransientForHint for valid windows | falkTX | 1 | -1/+1 | |
Signed-off-by: falkTX <falktx@falktx.com> | |||||
2023-10-21 | Fix potential memory leaks due to realloc() failure | David Robillard | 2 | -31/+55 | |
2023-10-21 | Fix whitespace | David Robillard | 1 | -1/+2 | |
2023-10-21 | MacOS: Fix horizontal scroll direction | David Robillard | 1 | -1/+1 | |
2023-10-21 | X11: Use PUGL_INIT_STRUCT to initialize char arrays | falkTX | 1 | -3/+3 | |
2023-10-21 | X11: Fix key press event key when control is pressed | falkTX | 1 | -2/+2 | |
2023-10-21 | Remove spurious semicolon | David Robillard | 1 | -1/+1 | |
2023-10-21 | Filter out corresponding modifiers from key events | David Robillard | 5 | -8/+38 | |
Platforms differ here, but it's meaningless to ask about the state of a modifier that's currently being pressed or released, so simply mask this out in general so it's easy for platform implementations to clean events up before dispatching them. | |||||
2023-10-21 | Windows: Fix left and right key distinction | David Robillard | 1 | -6/+6 | |
2023-10-21 | Clean up includes | David Robillard | 1 | -1/+0 | |
2023-10-07 | Fix puglGetTime() on Apple Silicon | David Robillard | 1 | -3/+5 | |
The floating point precision of these chips is... strange. | |||||
2023-05-29 | Add support for numeric keypad and simplify keyboard handling | David Robillard | 3 | -97/+131 | |
2023-05-29 | Deprecate redundant key symbols | David Robillard | 2 | -9/+9 | |
2023-05-27 | X11: Fix cursors on systems where XcursorGetTheme() doesn't work | David Robillard | 1 | -2/+3 | |
2023-05-22 | X11: Fix puglStopTimer() with multiple timers | Thomas Brand | 1 | -5/+3 | |
2023-05-12 | Factor out return code to status conversion | David Robillard | 2 | -62/+65 | |
2023-05-12 | Make puglSetSizeHint() tolerate unknown hints on all platforms | David Robillard | 1 | -0/+4 | |
2023-05-12 | Factor out puglIsValidSize() and use consistent rules everywhere | David Robillard | 5 | -22/+24 | |
2023-05-12 | MacOS: Fix inverted puglPostRedisplay() coordinates | David Robillard | 1 | -1/+5 | |
2023-05-12 | X11: Use the root provided by XGetWindowAttributes() | David Robillard | 1 | -5/+4 | |
2023-05-12 | X11: Avoid deferring empty exposures | David Robillard | 3 | -25/+15 | |
2023-05-12 | X11: Use available X extensions by default | David Robillard | 1 | -12/+36 | |
2023-05-12 | Windows: Share common drawing context code | David Robillard | 2 | -12/+5 | |
2023-05-12 | Windows: Pass the struct from BeginPaint() to EndPaint() | David Robillard | 4 | -12/+7 | |
The documentation explains that the PAINTSTRUCT returned by BeginPaint() should be passed to the corresponding call to EndPaint(). I'm not sure what real-world effects not doing this had, but this commit fixes things to use the API as intended. | |||||
2023-05-12 | Remove redundant casts | David Robillard | 1 | -3/+3 | |
2023-05-03 | Fix internal function linkage | David Robillard | 1 | -1/+1 | |
2023-05-03 | Fix ambiguous function prototypes | David Robillard | 2 | -2/+2 | |
2023-05-03 | Add missing field initializer | David Robillard | 1 | -1/+1 | |
2023-05-03 | Avoid double equality comparison | David Robillard | 1 | -2/+2 | |
2023-05-03 | Fix mismatched types in ternary expressions | David Robillard | 2 | -16/+18 | |
2023-05-03 | Fix implicit sign conversions | David Robillard | 3 | -7/+7 | |
2023-05-03 | Fix tautological unsigned comparisons | David Robillard | 1 | -6/+6 | |
2023-05-03 | Remove dead code | David Robillard | 1 | -13/+0 | |
2023-02-18 | Use XSetWMNormalHints instead of XSetNormalHints | sjaehn | 1 | -1/+1 | |
2023-02-15 | Fix crash on views with no title set | David Robillard | 1 | -9/+11 | |
2023-02-10 | Fix partial exposure in X11 Cairo backend | David Robillard | 1 | -10/+35 | |
2023-02-10 | Factor out macros | David Robillard | 2 | -8/+16 | |
2023-01-20 | Inline flags | David Robillard | 1 | -2/+2 | |
Maybe CodeFactor can figure this out, or maybe this really can load from the CWD despite what the documentation seems to say. | |||||
2023-01-14 | MacOS: Fix Vulkan backend build | David Robillard | 1 | -1/+2 | |
2023-01-14 | Allow applications to specify the Vulkan library path | David Robillard | 3 | -7/+13 | |
I don't know if vendoring the Vulkan library is appropriate, but regardless, this allows applications to set the name to whatever they want, or specify an absolute path, just in case the standard value baked into Pugl isn't the right one in some situation. | |||||
2023-01-14 | Windows: Fix potentially insecure library loading | David Robillard | 2 | -3/+6 | |
2023-01-14 | Windows: Add PUGL_DARK_FRAME hint | David Robillard | 1 | -0/+20 | |
This allows dark applications to visually integrate more nicely in Windows 10. A little thing, but it really goes a long way to make programs not look out of place and half-baked. |