diff -Nru blackbox-0.70.1/debian/changelog blackbox-0.70.1/debian/changelog --- blackbox-0.70.1/debian/changelog 2014-06-13 07:19:08.000000000 -0300 +++ blackbox-0.70.1/debian/changelog 2015-05-19 15:27:16.000000000 -0300 @@ -1,3 +1,11 @@ +blackbox (0.70.1-23+deb8u1) stable; urgency=medium + + * QA upload. + * debian/patches: Added focus.patch. Fixes bug #784955. + * debian/clean: Added compile file. + + -- Herbert Parentes Fortes Neto Tue, 19 May 2015 15:13:42 -0300 + blackbox (0.70.1-23) unstable; urgency=medium * QA upload. diff -Nru blackbox-0.70.1/debian/clean blackbox-0.70.1/debian/clean --- blackbox-0.70.1/debian/clean 2012-04-22 08:57:12.000000000 -0300 +++ blackbox-0.70.1/debian/clean 2015-05-19 15:26:46.000000000 -0300 @@ -1,3 +1,4 @@ doc/??_??/Makefile build-stamp config.log +compile diff -Nru blackbox-0.70.1/debian/patches/focus.patch blackbox-0.70.1/debian/patches/focus.patch --- blackbox-0.70.1/debian/patches/focus.patch 1969-12-31 21:00:00.000000000 -0300 +++ blackbox-0.70.1/debian/patches/focus.patch 2015-05-19 15:20:07.000000000 -0300 @@ -0,0 +1,17 @@ +Description: Fixes focus. Sometimes it is lost. + Bug 784955. +Author: Brian Bidulock +Last-Update: 2015-05-19 + +Index: blackbox-0.70.1/src/blackbox.cc +=================================================================== +--- blackbox-0.70.1.orig/src/blackbox.cc ++++ blackbox-0.70.1/src/blackbox.cc +@@ -281,6 +281,7 @@ void Blackbox::process_event(XEvent *e) + bool lost_focus = true; // did the window really lose focus? + bool no_focus = true; // did another window get focus? + ++ XSync(XDisplay(), False); + XEvent event; + if (XCheckIfEvent(XDisplay(), &event, scanForFocusIn, NULL)) { + process_event(&event); diff -Nru blackbox-0.70.1/debian/patches/series blackbox-0.70.1/debian/patches/series --- blackbox-0.70.1/debian/patches/series 2014-01-23 08:20:40.000000000 -0200 +++ blackbox-0.70.1/debian/patches/series 2015-05-19 15:17:47.000000000 -0300 @@ -5,3 +5,4 @@ manpage-tidy-up.diff fix-spelling-errors.diff fix-ftbfs-x32.diff +focus.patch