aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_update.c
AgeCommit message (Collapse)AuthorFilesLines
2022-05-21Add a uniform API for setting size hintsDavid Robillard1-1/+1
This collapses many functions into one, which makes the API more easily extensible and reduces code size.
2022-05-20Use consistent class names and titles in tests and examplesDavid Robillard1-1/+1
2021-12-17Adopt REUSE machine-readable licensing standardDavid Robillard1-15/+2
See https://reuse.software/ for details.
2021-05-08Send unmap/map events when the view is minimized/restoredDavid Robillard1-1/+1
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-06Set distinct window titles for testsDavid Robillard1-0/+1
This makes things a little more clear when something goes wrong, for example if a test hangs.
2021-05-06Use consistent name for test structureDavid Robillard1-19/+19
2021-01-02Simplify clang-format configuration and format all codeDavid Robillard1-72/+72
2020-11-25Rename puglShowWindow and puglHideWindow to puglShow an puglHideDavid Robillard1-1/+1
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.
2020-10-30Simplify header namesDavid Robillard1-1/+1
2020-07-05Improve struct packingDavid Robillard1-3/+3
Unfortunately there is no warning like Wpadded but only for internal padding, so that can't be turned on, but if there was, after this commit the build would be clean with it. Maybe some day...
2020-05-16Add default and maximum sizeDavid Robillard1-0/+1
2020-05-16Use email address in copyright headersDavid Robillard1-1/+1
Not really sure why I used a web link here (maybe because it's more stable), but this is more conventional.
2020-04-01Replace puglShowWindow() with puglRealize()David Robillard1-1/+1
2020-03-16Make update test more tolerantDavid Robillard1-1/+1
2020-03-15Cleanup: Fix stale commentDavid Robillard1-2/+2
2020-03-15Unify event loop functions as puglUpdate()David Robillard1-0/+124
The previous separation between polling and dispatching was a lie, especially on MacOS where it is impossible to only poll for events without dispatching anything. Providing such an API is misleading, and problematic in various other ways. So, merge them into a single puglUpdate() function which can do the right thing on all platforms. This also adds the behaviour of actually processing all events in the given time interval, which is almost always what clients actually want to do when using a positive timeout (naively doing this before caused terrible input lag).