You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Why would one want something like this?
According to clippy, some functions already have too many arguments:
https://github.com/psychon/x11rb/blob/1e6289fb7ef20041038b8fca440520bd731aedac/code_generator_helpers/module.py#L181
No idea what all of the 0 arguments are. Uhm.. there is border_width. I think that comes after width and height. Besides that, no idea. After having taken a look: Oh, I could have thought of x/y, but didn't. The last 0 is visual and 0 just happens to be the value for COPY_FROM_PARENT.
Anyway, the point is: This stuff is currently hard to understand.
The idea with this issue is not to replace the already existing API, but add a new alternative to it (perhaps behind some Cargo feature).
The text was updated successfully, but these errors were encountered:
Idea originally by @eduardosm. See #211 (comment).
Basically:
https://github.com/eduardosm/rust-xcbalt/blob/974b76a5e2e776f87a06fa0abc9fd0d3962696b3/examples/xi2_events.rs#L10-L36
Why would one want something like this?
According to clippy, some functions already have too many arguments: https://github.com/psychon/x11rb/blob/1e6289fb7ef20041038b8fca440520bd731aedac/code_generator_helpers/module.py#L181Let's also look at a random
create_window
call:x11rb/examples/simple_window.rs
Line 34 in 1e6289f
No idea what all of the
0
arguments are. Uhm.. there isborder_width
. I think that comes afterwidth
andheight
. Besides that, no idea. After having taken a look: Oh, I could have thought ofx
/y
, but didn't. The last0
isvisual
and0
just happens to be the value forCOPY_FROM_PARENT
.The idea with this issue is not to replace the already existing API, but add a new alternative to it (perhaps behind some Cargo feature).
The text was updated successfully, but these errors were encountered: