mwm icon indicating copy to clipboard operation
mwm copied to clipboard

failed to run

Open klownie opened this issue 2 years ago • 3 comments

Im trying to understand how to make WM's in rust with ur project but it wont launch or work for some reason. here's my neofetch: image and here's the output when i execute your project : image

klownie avatar Aug 05 '23 22:08 klownie

it seems to panic when it's trying to get the cursor image ? but I dont understand why ?

klownie avatar Aug 08 '23 21:08 klownie

i managed to go around it by setting its status to hidden. I would still like to have a solution where I dont need to set my cursor status to this.

            // Update the pointer element with the clock to determine which xcursor image to show,
            // and the cursor status. The status can be set to a surface by a window to show a
            // custom cursor set by the window.
            pointer_element.set_current_delay(&state.clock);
            pointer_element.set_status(CursorImageStatus::Hidden);

klownie avatar Aug 08 '23 21:08 klownie

@klownie I think for some reason your cursor is not being set properly. Can you see if there are any cursor_images set from loading the default xcursor? I would check the cursor being loaded at the cursor_path.

https://github.com/monroeclinton/mwm/blob/3b957d0b2d0f7f6c5adc6da41314d064b3bd7c6a/src/element.rs#L64

monroeclinton avatar Aug 12 '23 19:08 monroeclinton