aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/detail/x11.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-04-01 19:36:01 +0200
committerDavid Robillard <d@drobilla.net>2020-04-01 19:41:37 +0200
commit00e0a5f2ce568f56cbfebed1a7eef4ced5ef09eb (patch)
treebc0b4601e79da7fe97635e76d1ccaab0f7154a85 /pugl/detail/x11.c
parent5988b8bc72bfe3fc93f5fb434354ee122c7d941b (diff)
downloadpugl-00e0a5f2ce568f56cbfebed1a7eef4ced5ef09eb.tar.gz
pugl-00e0a5f2ce568f56cbfebed1a7eef4ced5ef09eb.tar.bz2
pugl-00e0a5f2ce568f56cbfebed1a7eef4ced5ef09eb.zip
Consistently use "view" terminology in API
The sloppy use of "window" caused quite a bit of confusion, since views only correspond to top-level windows in some cases, and on MacOS, a non-top-level view is not a "window" at all.
Diffstat (limited to 'pugl/detail/x11.c')
-rw-r--r--pugl/detail/x11.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pugl/detail/x11.c b/pugl/detail/x11.c
index 59850c5..d959dbf 100644
--- a/pugl/detail/x11.c
+++ b/pugl/detail/x11.c
@@ -1061,10 +1061,10 @@ puglPostRedisplayRect(PuglView* view, PuglRect rect)
return PUGL_SUCCESS;
}
-PuglNativeWindow
+PuglNativeView
puglGetNativeWindow(PuglView* view)
{
- return (PuglNativeWindow)view->impl->win;
+ return (PuglNativeView)view->impl->win;
}
PuglStatus
@@ -1139,7 +1139,7 @@ puglSetAspectRatio(PuglView* const view,
}
PuglStatus
-puglSetTransientFor(PuglView* view, PuglNativeWindow parent)
+puglSetTransientFor(PuglView* view, PuglNativeView parent)
{
Display* display = view->world->impl->display;