summaryrefslogtreecommitdiff
path: root/beos/beos_window.cpp
diff options
context:
space:
mode:
authorFran├žois Revel <mmu_man@netsurf-browser.org>2008-10-06 22:34:03 +0000
committerFran├žois Revel <mmu_man@netsurf-browser.org>2008-10-06 22:34:03 +0000
commit5e32d1ea122985cf6c8da5a159ba500a3e768e62 (patch)
tree4738ed249d4f9ba07ef51df34765bbb83ad72f3b /beos/beos_window.cpp
parentdfec4035ddaa10861d83a795848731d7a792f09b (diff)
downloadnetsurf-5e32d1ea122985cf6c8da5a159ba500a3e768e62.tar.gz
netsurf-5e32d1ea122985cf6c8da5a159ba500a3e768e62.tar.bz2
Uncomment the code to focus the view on mouse click, much better.
svn path=/trunk/netsurf/; revision=5500
Diffstat (limited to 'beos/beos_window.cpp')
-rw-r--r--beos/beos_window.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/beos/beos_window.cpp b/beos/beos_window.cpp
index 00493f617..a0eccad30 100644
--- a/beos/beos_window.cpp
+++ b/beos/beos_window.cpp
@@ -744,7 +744,6 @@ void nsbeos_dispatch_event(BMessage *message)
break;
}
- //browser_mouse_state button = BROWSER_MOUSE_CLICK_1;
gui->mouse.state = BROWSER_MOUSE_PRESS_1;
if (buttons & B_TERTIARY_MOUSE_BUTTON) /* 3 == middle button on BeOS */
@@ -758,12 +757,12 @@ void nsbeos_dispatch_event(BMessage *message)
gui->mouse.pressed_x = where.x / gui->bw->scale;
gui->mouse.pressed_y = where.y / gui->bw->scale;
- /*
+ // make sure the view is in focus
if (view && view->LockLooper()) {
- view->MakeFocus();
+ if (!view->IsFocus())
+ view->MakeFocus();
view->UnlockLooper();
}
- */
browser_window_mouse_click(gui->bw,
(browser_mouse_state)gui->mouse.state,