aboutsummaryrefslogtreecommitdiff
path: root/src/Window.cc
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2002-05-19 17:56:55 (GMT)
committerfluxgen <fluxgen>2002-05-19 17:56:55 (GMT)
commit57cd3c5c7cdaf99ff27b8a83f20dc8fd556677ab (patch)
tree34d3086b9b9baf1617cb024d3a79a1c2f23f2f16 /src/Window.cc
parent75f83132ea906d3681298d018f428c587c207288 (diff)
downloadfluxbox-57cd3c5c7cdaf99ff27b8a83f20dc8fd556677ab.zip
fluxbox-57cd3c5c7cdaf99ff27b8a83f20dc8fd556677ab.tar.bz2
added configurable geometry
Diffstat (limited to 'src/Window.cc')
-rw-r--r--src/Window.cc21
1 files changed, 13 insertions, 8 deletions
diff --git a/src/Window.cc b/src/Window.cc
index 47dc808..2823fdd 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.52 2002/05/17 16:35:58 fluxgen Exp $ 25// $Id: Window.cc,v 1.53 2002/05/19 17:56:55 fluxgen Exp $
26 26
27#include "Window.hh" 27#include "Window.hh"
28 28
@@ -1805,7 +1805,8 @@ bool FluxboxWindow::setInputFocus(void) {
1805 Fluxbox *fluxbox = Fluxbox::instance(); 1805 Fluxbox *fluxbox = Fluxbox::instance();
1806 BaseDisplay::GrabGuard gg(*fluxbox); 1806 BaseDisplay::GrabGuard gg(*fluxbox);
1807 fluxbox->grab(); 1807 fluxbox->grab();
1808 if (! validateClient()) return false; 1808 if (! validateClient())
1809 return false;
1809 1810
1810 bool ret = false; 1811 bool ret = false;
1811 1812
@@ -2689,7 +2690,7 @@ void FluxboxWindow::restoreGravity(void) {
2689bool FluxboxWindow::isLowerTab(void) const { 2690bool FluxboxWindow::isLowerTab(void) const {
2690 Tab* chkTab = (tab ? tab->first() : 0); 2691 Tab* chkTab = (tab ? tab->first() : 0);
2691 while (chkTab) { 2692 while (chkTab) {
2692 FluxboxWindow* chkWin = chkTab->getWindow(); 2693 const FluxboxWindow* chkWin = chkTab->getWindow();
2693 if (chkWin && chkWin != this && 2694 if (chkWin && chkWin != this &&
2694 timercmp(&chkWin->lastFocusTime, &lastFocusTime, >)) 2695 timercmp(&chkWin->lastFocusTime, &lastFocusTime, >))
2695 return true; 2696 return true;
@@ -3338,7 +3339,8 @@ void FluxboxWindow::motionNotifyEvent(XMotionEvent *me) {
3338 configure(dx, dy, frame.width, frame.height); 3339 configure(dx, dy, frame.width, frame.height);
3339 } 3340 }
3340 3341
3341 screen->showPosition(dx, dy); 3342 if (screen->doShowWindowPos())
3343 screen->showPosition(dx, dy);
3342 } 3344 }
3343 } else if (functions.resize && 3345 } else if (functions.resize &&
3344 (((me->state & Button1Mask) && (me->window == frame.right_grip || 3346 (((me->state & Button1Mask) && (me->window == frame.right_grip ||
@@ -3377,7 +3379,8 @@ void FluxboxWindow::motionNotifyEvent(XMotionEvent *me) {
3377 frame.resize_x, frame.resize_y, 3379 frame.resize_x, frame.resize_y,
3378 frame.resize_w, frame.resize_h); 3380 frame.resize_w, frame.resize_h);
3379 3381
3380 screen->showGeometry(gx, gy); 3382 if (screen->doShowWindowPos())
3383 screen->showGeometry(gx, gy);
3381 } 3384 }
3382 } 3385 }
3383} 3386}
@@ -3515,7 +3518,8 @@ void FluxboxWindow::startMoving(Window win) {
3515 frame.resize_h = ((shaded) ? frame.title_h : frame.height) + 3518 frame.resize_h = ((shaded) ? frame.title_h : frame.height) +
3516 screen->getBorderWidth2x(); 3519 screen->getBorderWidth2x();
3517 3520
3518 screen->showPosition(frame.x, frame.y); 3521 if (screen->doShowWindowPos())
3522 screen->showPosition(frame.x, frame.y);
3519 3523
3520 XDrawRectangle(display, screen->getRootWindow(), screen->getOpGC(), 3524 XDrawRectangle(display, screen->getRootWindow(), screen->getOpGC(),
3521 frame.move_x, frame.move_y, 3525 frame.move_x, frame.move_y,
@@ -3565,8 +3569,9 @@ void FluxboxWindow::startResizing(XMotionEvent *me, bool left) {
3565 left_fixsize(&gx, &gy); 3569 left_fixsize(&gx, &gy);
3566 else 3570 else
3567 right_fixsize(&gx, &gy); 3571 right_fixsize(&gx, &gy);
3568 3572
3569 screen->showGeometry(gx, gy); 3573 if (screen->doShowWindowPos())
3574 screen->showGeometry(gx, gy);
3570 3575
3571 XDrawRectangle(display, screen->getRootWindow(), screen->getOpGC(), 3576 XDrawRectangle(display, screen->getRootWindow(), screen->getOpGC(),
3572 frame.resize_x, frame.resize_y, 3577 frame.resize_x, frame.resize_y,