aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_show_hide.c
AgeCommit message (Collapse)AuthorFilesLines
2023-01-14Add general string hint interfaceDavid Robillard1-2/+2
This replaces the window title and class name APIs with a more general one that can be easily extended to other things, like icon names, more detailed application hints, and so on.
2023-01-11Improve test coverageDavid Robillard1-3/+3
2023-01-11Spread tests around the screenDavid Robillard1-1/+2
This makes it unlikely for tests to be completely obscured, which should hopefully make things a bit more consistent and reliable, especially when running all of the tests in parallel. It also makes things a bit less visually confusing.
2023-01-09Raise test windows initiallyDavid Robillard1-1/+1
This seems to make thing a bit more reliable, and matches what was happening before the addition of more precise show commands.
2023-01-08Add support for raising windowsDavid Robillard1-1/+1
2023-01-07Replace map/unmap events with more expressive configure eventsDavid Robillard1-11/+4
2023-01-07Rename create/destroy events to realize/unrealizeDavid Robillard1-10/+10
As evidence that this was confusing, the documentation for these was an outright lie, and I've burned quite a bit of time in the past few days trying to rework things based around that flawed understanding. These names make it clear what these events actually are. If we need actual create/destroy events with a broader scope, they'll have to be added, but I suspect those aren't actually useful anyway.
2023-01-04Add puglUnrealize()David Robillard1-13/+30
2022-10-07Use uppercase integer literal suffixesDavid Robillard1-1/+1
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-01-02Simplify clang-format configuration and format all codeDavid Robillard1-93/+93
2020-11-25Rename puglShowWindow and puglHideWindow to puglShow an puglHideDavid Robillard1-2/+2
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-05-16Make show/hide test tolerant to multiple exposuresDavid Robillard1-1/+1
This happens on MacOS.
2020-04-01Replace puglShowWindow() with puglRealize()David Robillard1-1/+1
2020-03-15Unify event loop functions as puglUpdate()David Robillard1-4/+2
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).
2020-03-15Add type and flags to worldDavid Robillard1-1/+1
Unfortunately this is an API break, but there's no reasonable way to deprecate the old function and this is required for things to work correctly. The type will be used in following commits to tick the main loop and dispatch events correctly for either case.
2020-03-15Cleanup: Fix indentationDavid Robillard1-3/+3
2020-03-09Add test for basic view creation, exposure, and destructionDavid Robillard1-0/+149