add river-control-unstable-v1 support
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
|
||||
#include "river-layout-v3.h"
|
||||
#include "ext-idle-notify-v1.h"
|
||||
#include "river-control-unstable-v1.h"
|
||||
|
||||
#include "load-script.h"
|
||||
#include "call-exit-handler.h"
|
||||
@@ -35,6 +36,7 @@ struct Context context = {
|
||||
*/
|
||||
.layout_demand_handler = NULL,
|
||||
.user_command_handler = NULL,
|
||||
.exit_handler = NULL,
|
||||
|
||||
.loop = true,
|
||||
.ret = EXIT_SUCCESS,
|
||||
@@ -51,6 +53,12 @@ static void registry_handle_global (void *data, struct wl_registry *registry,
|
||||
registry, name, &river_layout_manager_v3_interface, 2
|
||||
);
|
||||
}
|
||||
else if ( strcmp(interface, zriver_control_v1_interface.name) == 0 )
|
||||
{
|
||||
context.river_control = wl_registry_bind(
|
||||
registry, name, &zriver_control_v1_interface, 1
|
||||
);
|
||||
}
|
||||
else if ( strcmp(interface, ext_idle_notifier_v1_interface.name) == 0 )
|
||||
{
|
||||
context.idle_notifier = wl_registry_bind(
|
||||
@@ -380,6 +388,8 @@ int main(int argc, char *argv[])
|
||||
ext_idle_notifier_v1_destroy(context.idle_notifier);
|
||||
if ( context.layout_manager != NULL )
|
||||
river_layout_manager_v3_destroy(context.layout_manager);
|
||||
if ( context.river_control != NULL )
|
||||
zriver_control_v1_destroy(context.river_control);
|
||||
if ( context.sync_callback != NULL )
|
||||
wl_callback_destroy(context.sync_callback);
|
||||
if ( context.wl_registry != NULL )
|
||||
|
||||
Reference in New Issue
Block a user