diff --git a/src/scrot_selection.c b/src/scrot_selection.c index 6ea8950..2431406 100644 --- a/src/scrot_selection.c +++ b/src/scrot_selection.c @@ -160,8 +160,8 @@ static void scrotSelectionDestroy(void) { XUngrabPointer(disp, CurrentTime); freeCursors(); - XSync(disp, True); selection.destroy(); + XSync(disp, False); /* HACK: although we destroyed the selection, the frame still might not * have been updated. a compositor might also buffer frames adding * latency. so wait a bit for the screen to update and the selection diff --git a/src/selection_classic.c b/src/selection_classic.c index 0a90dd2..a668bb2 100644 --- a/src/selection_classic.c +++ b/src/selection_classic.c @@ -99,6 +99,4 @@ void selectionClassicDestroy(void) if (pc->gc) XFreeGC(disp, pc->gc); - - XFlush(disp); }