Skip to content
This repository was archived by the owner on Aug 3, 2023. It is now read-only.
This repository was archived by the owner on Aug 3, 2023. It is now read-only.

Match on events & XSelectInput mask #33

Description

@Peekmo

Hello !

First of all, thank you for those bindings, great work !
This is more some questions than issues :

  • How do you check for the received event with that lib ??

I tried this :

loop {
         let ev: *mut xlib::XEvent;
         unsafe {
             xlib::XNextEvent(dpy, ev);
         }

         match ev {
             xlib::XExposeEvent => println!("Ok"),
             _ => println!("Nothing"),
         }
     };

But it does not compile ( unresolved enum variant, struct or const XExposeEvent ) I'm new to rust, and I'm doing this little project with xlib & rust to learn both ^^ So my question should be stupid...

  • Secondly, is there anything to applying masks (like ExposeMask) to XSelectInput ? Or not for the moment ?

Thank you
Regards,
Peekmo

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions