Package: release.debian.org
Severity: normal
Tags: jessie
User: release.debian....@packages.debian.org
Usertags: pu

Hi,

The user report a bug[0] and pointed to a patch that
fixes it. The patch is already in sid (0.70.1-28).
QA upload.

As the user said: "The bug affects every day usage in
a most tangible way."

[0] - https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=784955

The patch:
Description: Fixes focus. Sometimes it is lost.
             Bug 784955.
Author: Brian Bidulock <bidul...@openss7.org>
Last-Update: 2015-05-16
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);


-- System Information:
Debian Release: 8.0
  APT prefers stable
  APT policy: (990, 'stable'), (50, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=pt_BR.UTF-8, LC_CTYPE=pt_BR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Description: Fixes focus. Sometimes it is lost.
             Bug 784955.
Author: Brian Bidulock <bidul...@openss7.org>
Last-Update: 2015-05-16
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);

Reply via email to