aboutsummaryrefslogtreecommitdiffstats
path: root/examples/pugl_embed_demo.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2023-01-07 19:27:14 -0500
committerDavid Robillard <d@drobilla.net>2023-01-07 20:27:35 -0500
commit4ad8621ac1d94c8e9cf88f83c46a3a70cd91212b (patch)
tree63307cb14d43c7391b34f94ca0e532d8e9e01a09 /examples/pugl_embed_demo.c
parent677e13dcbb5b64ce85093b9ea5c14025964e35b9 (diff)
downloadpugl-4ad8621ac1d94c8e9cf88f83c46a3a70cd91212b.tar.gz
pugl-4ad8621ac1d94c8e9cf88f83c46a3a70cd91212b.tar.bz2
pugl-4ad8621ac1d94c8e9cf88f83c46a3a70cd91212b.zip
Add support for special view types and styles
Diffstat (limited to 'examples/pugl_embed_demo.c')
-rw-r--r--examples/pugl_embed_demo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/pugl_embed_demo.c b/examples/pugl_embed_demo.c
index 94310a5..59d8e2b 100644
--- a/examples/pugl_embed_demo.c
+++ b/examples/pugl_embed_demo.c
@@ -319,7 +319,8 @@ main(int argc, char** argv)
++framesDrawn;
if (!requestedAttention && thisTime > 5.0) {
- puglRequestAttention(app.parent);
+ puglSetViewStyle(
+ app.parent, puglGetViewStyle(app.parent) | PUGL_VIEW_STYLE_DEMANDING);
requestedAttention = true;
}