aboutsummaryrefslogtreecommitdiff
path: root/src/Window.cc
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-04-16 00:38:06 (GMT)
committerfluxgen <fluxgen>2003-04-16 00:38:06 (GMT)
commit21bc356be2200f07cf5235714493f6dc79583713 (patch)
treeca93e575726f61fea08959db6bb92562bf5840dc /src/Window.cc
parent80c38380d1ef1394ab3b19ca51680a28fd27fa3a (diff)
downloadfluxbox-21bc356be2200f07cf5235714493f6dc79583713.zip
fluxbox-21bc356be2200f07cf5235714493f6dc79583713.tar.bz2
fixed click raise option, patch from Dale P. Smith
Diffstat (limited to 'src/Window.cc')
-rw-r--r--src/Window.cc15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/Window.cc b/src/Window.cc
index 35f5be9..5839c52 100644
--- a/src/Window.cc
+++ b/src/Window.cc
@@ -22,7 +22,7 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: Window.cc,v 1.138 2003/04/15 23:09:13 rathnor Exp $ 25// $Id: Window.cc,v 1.139 2003/04/16 00:38:06 fluxgen Exp $
26 26
27#include "Window.hh" 27#include "Window.hh"
28 28
@@ -320,13 +320,9 @@ void FluxboxWindow::init() {
320 m_frame.reconfigure(); 320 m_frame.reconfigure();
321 321
322 // redirect events from frame to us 322 // redirect events from frame to us
323#ifdef DEBUG 323
324 cerr<<"Setting up catch for events in frame"<<endl;
325#endif // DEBUG
326 m_frame.setEventHandler(*this); 324 m_frame.setEventHandler(*this);
327#ifdef DEBUG 325
328 cerr<<"setup for catching events....done"<<endl;
329#endif // DEBUG
330 lastFocusTime.tv_sec = lastFocusTime.tv_usec = 0; 326 lastFocusTime.tv_sec = lastFocusTime.tv_usec = 0;
331 327
332 // display connection 328 // display connection
@@ -2192,8 +2188,9 @@ void FluxboxWindow::buttonPressEvent(XButtonEvent &be) {
2192 setInputFocus(); 2188 setInputFocus();
2193 } 2189 }
2194 2190
2195 if (m_frame.clientArea() == be.window) { 2191 if (m_frame.clientArea() == be.window) {
2196 raise(); 2192 if (getScreen().clickRaises())
2193 raise();
2197 XAllowEvents(display, ReplayPointer, be.time); 2194 XAllowEvents(display, ReplayPointer, be.time);
2198 } else { 2195 } else {
2199 button_grab_x = be.x_root - m_frame.x() - screen.getBorderWidth(); 2196 button_grab_x = be.x_root - m_frame.x() - screen.getBorderWidth();