wlserver: fix pointer scroll in nested mode
This commit is contained in:
parent
5a9bf10c81
commit
212638e9d0
1 changed files with 2 additions and 2 deletions
|
@ -1012,11 +1012,11 @@ void wlserver_mousewheel( int x, int y, uint32_t time )
|
|||
{
|
||||
if ( x != 0 )
|
||||
{
|
||||
wlr_seat_pointer_notify_axis( wlserver.wlr.seat, time, WLR_AXIS_ORIENTATION_HORIZONTAL, x, x, WLR_AXIS_SOURCE_WHEEL );
|
||||
wlr_seat_pointer_notify_axis( wlserver.wlr.seat, time, WLR_AXIS_ORIENTATION_HORIZONTAL, x, x * WLR_POINTER_AXIS_DISCRETE_STEP, WLR_AXIS_SOURCE_WHEEL );
|
||||
}
|
||||
if ( y != 0 )
|
||||
{
|
||||
wlr_seat_pointer_notify_axis( wlserver.wlr.seat, time, WLR_AXIS_ORIENTATION_VERTICAL, y, y, WLR_AXIS_SOURCE_WHEEL );
|
||||
wlr_seat_pointer_notify_axis( wlserver.wlr.seat, time, WLR_AXIS_ORIENTATION_VERTICAL, y, y * WLR_POINTER_AXIS_DISCRETE_STEP, WLR_AXIS_SOURCE_WHEEL );
|
||||
}
|
||||
wlr_seat_pointer_notify_frame( wlserver.wlr.seat );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue