-
Notifications
You must be signed in to change notification settings - Fork 175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Figure out how to deal with wl_pointer::frame
for relative pointer and the like
#1126
Comments
Depends on Smithay/smithay#872. For some reason, pointer confinment isn't working correctly here at the moment, even though the code matches Anvil... May need solution to Smithay/smithay#1126 for behavior to be correct.
One solution to this for (relative) motion events is to combine the two events into one with 2 /// Pointer motion event
#[derive(Debug, Clone)]
pub struct AbsoluteMotion {
/// Location of the pointer in compositor space
pub location: Point<f64, Logical>,
/// Serial of the event
pub serial: Serial,
}
/// Relative pointer motion event
#[derive(Debug, Clone)]
pub struct RelativeMotion {
/// Motional vector
pub delta: Point<f64, Logical>,
/// Unaccelerated motion vector
pub delta_unaccel: Point<f64, Logical>,
}
/// Pointer motion event
struct MotionEvent {
pub absolute: Option<AbsoluteMotion>,
pub relative: Option<RelativeMotion>,
/// Timestamp in microseconds
pub utime: u64,
}
|
Given we had some issues in the past with grouping axis-events, uncertainty where pointer gestures fit here and now the relative-pointer protocol, we might want to consider making |
Input handling in compositors will have to emit this appropriatly. But then other methods don't have to map perfectly to frames. Meant to address Smithay#1126.
Input handling in compositors will have to emit this appropriatly. But then other methods don't have to map perfectly to frames. Meant to address Smithay#1126.
Input handling in compositors will have to emit this appropriatly. But then other methods don't have to map perfectly to frames. Meant to address Smithay#1126.
Input handling in compositors will have to emit this appropriatly. But then other methods don't have to map perfectly to frames. Meant to address Smithay#1126.
Input handling in compositors will have to emit this appropriatly. But then other methods don't have to map perfectly to frames. Meant to address Smithay#1126.
It seems the expected behavior is for
relative_motion
to be followed byframe
, probably in the same frame as themotion
. In cosmic-comp I made this work by callingrelative_motion
beforemotion
(pop-os/cosmic-comp#167), but that's going to be a problem with pointer constraints where onlyrelative_motion
events may occur.The text was updated successfully, but these errors were encountered: