main: Allow privileged protocols in debug builds
This commit is contained in:
parent
55df9bce09
commit
bbe5af64c9
1 changed files with 8 additions and 5 deletions
13
src/main.rs
13
src/main.rs
|
|
@ -100,11 +100,14 @@ fn init_wayland_display(
|
|||
event_loop
|
||||
.handle()
|
||||
.insert_source(source, |client_stream, _, data| {
|
||||
if let Err(err) = data
|
||||
.display
|
||||
.handle()
|
||||
.insert_client(client_stream, Arc::new(data.state.new_client_state()))
|
||||
{
|
||||
if let Err(err) = data.display.handle().insert_client(
|
||||
client_stream,
|
||||
Arc::new(if cfg!(debug_assertions) {
|
||||
data.state.new_privileged_client_state()
|
||||
} else {
|
||||
data.state.new_client_state()
|
||||
}),
|
||||
) {
|
||||
slog_scope::warn!("Error adding wayland client: {}", err);
|
||||
};
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue