aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/detail/x11.c
AgeCommit message (Collapse)AuthorFilesLines
2019-09-03Make almost everything return a statusDavid Robillard1-7/+15
Prepares the API for proper error handling, even though there isn't any for these functions yet.
2019-09-03Add puglSetWindowTitle()David Robillard1-4/+16
2019-09-03Add puglSetClassName()David Robillard1-0/+3
2019-09-03Replace puglInitTransientFor() with puglSetTransientFor()David Robillard1-0/+13
2019-09-03Replace size and aspect ratio init functions with dynamic onesDavid Robillard1-0/+38
2019-09-03X11: Factor out size hints calculationDavid Robillard1-21/+30
2019-09-03Use consistent naming conventionsDavid Robillard1-21/+21
2019-09-03X11: Improve puglPostRedisplay() performanceDavid Robillard1-7/+19
2019-09-03Add functions to get and set view size and positionDavid Robillard1-11/+35
2019-09-03Add puglDispatchEvents()David Robillard1-39/+67
2019-09-03Add puglPollEvents()David Robillard1-0/+26
This allows waiting for events for any view in the world. It also improves on puglWaitForEvent() by the addition of a time parameter that allows indefinite blocking, non-blocking polling, and blocking polling with a timeout.
2019-09-03Move puglGetTime() to PuglWorldDavid Robillard1-2/+2
2019-09-03X11: Move input method to worldDavid Robillard1-12/+14
2019-09-03X11: Move atoms to worldDavid Robillard1-19/+26
2019-09-03Add PuglWorldDavid Robillard1-6/+26
The old API was broken for programs that manage multiple views, since it was impossible to wait for events on any view. There are also several functions in the API which are not actually associated with views at all, so those can now be moved to the more appropriate PuglWorld to make this more clear. The old puglInit() and puglDestroy() functions are preserved for compatibility, but marked as deprecated.
2019-09-03Add puglHasFocus()David Robillard1-0/+9
2019-09-03Fix puglGrabFocus() to work between parent and childrenDavid Robillard1-1/+1
2019-09-03Simplify hints implementationDavid Robillard1-2/+2
2019-08-02Clean up includesDavid Robillard1-0/+1
2019-08-02Replace puglIgnoreKeyRepeat() with a hintDavid Robillard1-1/+1
2019-07-31X11: Support UTF8 in window titlesJP Cimalando1-0/+5
It's possible that this does bad things if a UTF8 string is used on a system that does not support it (because XStoreName is still called), but I have no idea how likely this scenario is. Leaving it this way because it means the ASCII case will still work everywhere, and it's easy enough to avoid if this is a problem.
2019-07-29Cleanup: Clean up includes and call IWYU in lint targetDavid Robillard1-1/+6
2019-07-29Fix various clang-tidy warningsDavid Robillard1-1/+1
2019-07-29Reorganize source to separate private implementation detailsDavid Robillard1-0/+577
Taking a page from C++ convention, where "detail" is for things that should not be included in user code.