refactoring and cleanup of wave_callback() -2-
This commit is contained in:
parent
bbdfd3c61a
commit
d1e2328eb3
|
|
@ -729,10 +729,7 @@ static int waves_callback(int event, int mx, int my, KeySym key, int button, int
|
||||||
}
|
}
|
||||||
/* save mouse position when doing pan operations */
|
/* save mouse position when doing pan operations */
|
||||||
else if(
|
else if(
|
||||||
(
|
( event == ButtonPress && (button == Button1 || button == Button3)) &&
|
||||||
(event == ButtonPress && (button == Button1 || button == Button3)) ||
|
|
||||||
(event == MotionNotify && (state & (Button1Mask | Button3Mask)))
|
|
||||||
) &&
|
|
||||||
!(xctx->ui_state & GRAPHPAN) &&
|
!(xctx->ui_state & GRAPHPAN) &&
|
||||||
!xctx->graph_top /* && !xctx->graph_bottom */
|
!xctx->graph_top /* && !xctx->graph_bottom */
|
||||||
) {
|
) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue