fix the hang some more, hopefully final

This commit is contained in:
rathnor 2004-04-14 15:40:57 +00:00
parent 0b8592b203
commit cf2b24b645
2 changed files with 8 additions and 1 deletions

View file

@ -1,6 +1,9 @@
(Format: Year/Month/Day)
Changes for 0.9.9:
*04/04/14:
* Half revert a bit of the below, since it broke click-to-focus (Simon)
-> adds back the grab, but as an async one
Window.cc
* Hopefully fix the "stange" hang on restart (Simon)
- remove big sync-ed grab on all Button1 events
- Also tidy and fix tab moving

View file

@ -22,7 +22,7 @@
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
// $Id: Window.cc,v 1.278 2004/04/14 15:17:20 rathnor Exp $
// $Id: Window.cc,v 1.279 2004/04/14 15:40:57 rathnor Exp $
#include "Window.hh"
@ -974,6 +974,10 @@ void FluxboxWindow::associateClientWindow(bool use_attrs, int x, int y, unsigned
void FluxboxWindow::grabButtons() {
// needed for click to focus
XGrabButton(display, Button1, AnyModifier,
frame().window().window(), True, ButtonPressMask,
GrabModeAsync, GrabModeAsync, None, None);
XUngrabButton(display, Button1, Mod1Mask|Mod2Mask|Mod3Mask, frame().window().window());
if (Fluxbox::instance()->useMod1()) {