aboutsummaryrefslogtreecommitdiff
path: root/examples/idle-inhibit.c
AgeCommit message (Collapse)Author
2020-08-24Remove unnecessary wl_display_dispatch callsSimon Ser
wl_display_roundtrip already takes care of dispatching the display.
2019-01-07Simplify evdev includes on FreeBSD by relying on up-to-date packageJan Beich
As evdev-proto is installed by CI some files have been missed: ../examples/pointer-constraints.c:2:10: fatal error: 'linux/input-event-codes.h' file not found #include <linux/input-event-codes.h> ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ../examples/relative-pointer-unstable-v1.c:5:10: fatal error: 'linux/input-event-codes.h' file not found #include <linux/input-event-codes.h> ^~~~~~~~~~~~~~~~~~~~~~~~~~~
2018-08-16Fix build on FreeBSDemersion
2018-04-03Add input-inhibitor example clientDrew DeVault
2018-03-19render: split render.h into wlr_renderer.h and wlr_texture.hemersion
2018-02-23idle-inhibit: style adjustments and motivationMarkus Ongyerth
2018-02-21idle-inhibit: second feedback passMarkus Ongyerth
2018-02-20idle-inhibit: feedback passMarkus Ongyerth
2018-02-17handle xdg close event in idle-inhibit exampleMarkus Ongyerth
Fixes a crash when the idle-inhibit example application is closed by the compositor, instead of Ctr+C on the spawning terminal, by actualy handling the close request.
2018-02-17adds the client example for idle-inhibitMarkus Ongyerth
Adds a client example for the idle-inhibit-unsable-v1 protocol. The client creates a surface and requests an idle inhibitor. On pointer BTN_LEFT the inhibitor is destroyed if it exists, or recreated if it was destroyed before. The surfaces colour is based on the idle-inhibit state. Green if an inhibitor exists, yellow if it does not.