diff options
author | he <he@pkgsrc.org> | 2015-11-17 15:59:13 +0000 |
---|---|---|
committer | he <he@pkgsrc.org> | 2015-11-17 15:59:13 +0000 |
commit | 01f177a6393a6be9443072735e6d815db0c4ba70 (patch) | |
tree | 39c74980caf58f35f9e73040e4ad3478278a2097 /wm/bbkeys09/patches/patch-src_ScreenHandler.cpp | |
parent | 9bc44f9bc33d2c1a52c9907ac43d5270d0dcf120 (diff) | |
download | pkgsrc-01f177a6393a6be9443072735e6d815db0c4ba70.tar.gz |
Update bbkeys to version 0.9.1.
Pkgsrc changes:
* Add a bugfix patch for an LP64 problem in the X11 protocol handling, from
FreeBSD ports tree
* Add a patch to complete initialization of pointers, also from FreeBSD
* Add dependency on libXft, it appears to be required
Upstream changes:
* Add sendToPreviousWorkspace and sendToNextWorkspace functions
* Add new config option: followWindowOnSend, allows bbkeys to change
workspace to the space it just sent a window to
* Fix for underquoted definitions in configure.ac
* Fix annoying behaviour when cycling through windows on all workspaces,
no longer flip workspace when doing this
* Add config option includeIconifiedWindowsInCycle to include iconified
windows in window cycling list
Diffstat (limited to 'wm/bbkeys09/patches/patch-src_ScreenHandler.cpp')
-rw-r--r-- | wm/bbkeys09/patches/patch-src_ScreenHandler.cpp | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/wm/bbkeys09/patches/patch-src_ScreenHandler.cpp b/wm/bbkeys09/patches/patch-src_ScreenHandler.cpp new file mode 100644 index 00000000000..1d710ef903b --- /dev/null +++ b/wm/bbkeys09/patches/patch-src_ScreenHandler.cpp @@ -0,0 +1,61 @@ +$NetBSD: patch-src_ScreenHandler.cpp,v 1.1 2015/11/17 15:59:13 he Exp $ + +Debug output for missing active window. +Used while debugging what turned out to be an LP64 problem, +but may be useful later, so left here. + +--- src/ScreenHandler.cpp.orig 2008-12-22 02:48:59.000000000 +0000 ++++ src/ScreenHandler.cpp +@@ -467,6 +467,9 @@ void ScreenHandler::keyPressEvent (const + assert(false); // unhandled action type! + break; + } ++ } else { ++ if ( _debug ) ++ cout <<BBTOOL << ": " << "No active window" <<endl; + } + } + +@@ -564,18 +567,26 @@ void ScreenHandler::updateActiveWindow() + { + assert(_managed); + ++ if ( _debug ) ++ cout <<BBTOOL << ": " << "checking active window" <<endl; ++ + Window a = None; + _netclient->getValue(_root, _netclient->activeWindow(), XA_WINDOW, a); + + if ( None == a ) { ++ if ( _debug ) ++ cout <<BBTOOL << ": " << "no active window found" << endl; + return; + } + + WindowList::iterator it, end = _clients.end(); + for (it = _clients.begin(); it != end; ++it) { + if ( (*it)->window() == a) { +- if ( (*it)->getScreenNumber() != _screenNumber ) ++ if ( (*it)->getScreenNumber() != _screenNumber ) { ++ if ( _debug ) ++ cout <<BBTOOL << ": " << "wrong screen?" << endl; + return; ++ } + break; + } + } +@@ -597,8 +608,14 @@ void ScreenHandler::updateActiveWindow() + + if ( _debug ) + cout <<BBTOOL << ": " << "active window now: [" << bt::toLocale((*_active)->title()) <<"]" <<endl; ++ } else { ++ if ( _debug ) ++ cout <<BBTOOL << ": " << "cycling through window list" <<endl; + } + ++ } else { ++ if ( _debug ) ++ cout <<BBTOOL << ": " << "active window == end, ignored" <<endl; + } + + } |