mirror of
https://github.com/VARCem/PDCurses.git
synced 2026-07-15 05:24:48 +00:00
After Bill Gray: "Don't redraw the entire screen each time a mouse
button goes up."
This commit is contained in:
14
x11/x11.c
14
x11/x11.c
@@ -1016,8 +1016,7 @@ static void _refresh_screen(void)
|
||||
}
|
||||
}
|
||||
|
||||
if (mouse_selection)
|
||||
_selection_off();
|
||||
_selection_off();
|
||||
}
|
||||
|
||||
static void _handle_expose(Widget w, XtPointer client_data, XEvent *event,
|
||||
@@ -1596,12 +1595,15 @@ static void _selection_off(void)
|
||||
{
|
||||
XC_LOG(("_selection_off() - called\n"));
|
||||
|
||||
_display_screen();
|
||||
if (mouse_selection)
|
||||
{
|
||||
_display_screen();
|
||||
|
||||
selection_start_x = selection_start_y = selection_end_x =
|
||||
selection_end_y = 0;
|
||||
selection_start_x = selection_start_y = selection_end_x =
|
||||
selection_end_y = 0;
|
||||
|
||||
mouse_selection = FALSE;
|
||||
mouse_selection = FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
static void _selection_on(int x, int y)
|
||||
|
||||
Reference in New Issue
Block a user