summaryrefslogtreecommitdiff
path: root/src/river_protocols.rs
diff options
context:
space:
mode:
authorMaxVerevkin <maxxverrr@gmail.com>2022-08-08 23:12:23 +0300
committerMaxVerevkin <maxxverrr@gmail.com>2022-08-08 23:59:59 +0300
commit1851c56e407cac72ca104cc5e75692cd9c648986 (patch)
tree31473532e01ee6ee1571974a6abf59463e3265ed /src/river_protocols.rs
parent9ddde2d2ee9833412e39afbd1ed907cdea22f08f (diff)
downloadi3bar-mango-1851c56e407cac72ca104cc5e75692cd9c648986.tar.gz
rewrite using latest walayd libs & implement HiDPI
Diffstat (limited to 'src/river_protocols.rs')
-rw-r--r--src/river_protocols.rs38
1 files changed, 3 insertions, 35 deletions
diff --git a/src/river_protocols.rs b/src/river_protocols.rs
index c81a7f7..0a2cf91 100644
--- a/src/river_protocols.rs
+++ b/src/river_protocols.rs
@@ -1,36 +1,4 @@
-pub use generated::client1::*;
-pub use generated::client2::*;
+#![allow(clippy::enum_variant_names)]
-mod generated {
- // The generated code tends to trigger a lot of warnings
- // so we isolate it into a very permissive module
- #![allow(dead_code, non_camel_case_types, unused_unsafe, unused_variables)]
- #![allow(non_upper_case_globals, non_snake_case, unused_imports)]
- #![allow(clippy::all)]
-
- pub mod client1 {
- // These imports are used by the generated code
- use smithay_client_toolkit::reexports::client as wayland_client;
- use wayland_client::protocol::*;
- use wayland_client::sys;
- use wayland_client::{AnonymousObject, Attached, Main, Proxy, ProxyMap};
- use wayland_commons::map::{Object, ObjectMetadata};
- use wayland_commons::smallvec;
- use wayland_commons::wire::{Argument, ArgumentType, Message, MessageDesc};
- use wayland_commons::{Interface, MessageGroup};
- include!(concat!(env!("OUT_DIR"), "/river-status-unstable-v1.rs"));
- }
-
- pub mod client2 {
- // These imports are used by the generated code
- use smithay_client_toolkit::reexports::client as wayland_client;
- use wayland_client::protocol::*;
- use wayland_client::sys;
- use wayland_client::{AnonymousObject, Attached, Main, Proxy, ProxyMap};
- use wayland_commons::map::{Object, ObjectMetadata};
- use wayland_commons::smallvec;
- use wayland_commons::wire::{Argument, ArgumentType, Message, MessageDesc};
- use wayland_commons::{Interface, MessageGroup};
- include!(concat!(env!("OUT_DIR"), "/river-control-unstable-v1.rs"));
- }
-}
+pub mod control;
+pub mod status;