added configurable geometry
@@ -22,7 +22,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Screen.cc,v 1.52 2002/05/17 16:30:24 fluxgen Exp $ +// $Id: Screen.cc,v 1.53 2002/05/19 17:56:55 fluxgen Exp $ //use GNU extensions #ifndef _GNU_SOURCE@@ -203,6 +203,7 @@ tab_rotate_vertical(rm, true, scrname+".tab.rotatevertical", altscrname+".Tab.RotateVertical"),
sloppy_window_grouping(rm, true, scrname+".sloppywindowgrouping", altscrname+".SloppyWindowGrouping"), workspace_warping(rm, true, scrname+".workspacewarping", altscrname+".WorkspaceWarping"), desktop_wheeling(rm, true, scrname+".desktopwheeling", altscrname+".DesktopWheeling"), +show_window_pos(rm, true, scrname+".showwindowposition", altscrname+".ShowWindowPosition"), focus_last(rm, true, scrname+".focusLastWindow", altscrname+".FocusLastWindow"), focus_new(rm, true, scrname+".focusNewWindows", altscrname+".FocusNewWindows"), rootcommand(rm, "", scrname+".rootCommand", altscrname+".RootCommand"),
@@ -22,7 +22,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Screen.hh,v 1.35 2002/05/17 11:55:02 fluxgen Exp $ +// $Id: Screen.hh,v 1.36 2002/05/19 17:56:55 fluxgen Exp $ #ifndef SCREEN_HH #define SCREEN_HH@@ -87,6 +87,7 @@ inline bool doOpaqueMove(void) { return *resource.opaque_move; }
inline bool doFullMax(void) { return *resource.full_max; } inline bool doFocusNew(void) { return *resource.focus_new; } inline bool doFocusLast(void) { return *resource.focus_last; } + inline bool doShowWindowPos(void) { return *resource.show_window_pos; } inline const GC &getOpGC() const { return theme->getOpGC(); }@@ -300,7 +301,8 @@ Resource<bool> toolbar_on_top, toolbar_auto_hide,
image_dither, opaque_move, full_max, max_over_slit, tab_rotate_vertical, sloppy_window_grouping, workspace_warping, - desktop_wheeling, focus_last, focus_new; + desktop_wheeling, show_window_pos, + focus_last, focus_new; Resource<std::string> rootcommand; bool auto_raise, sloppy_focus, semi_sloppy_focus, ordered_dither;
@@ -22,7 +22,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Window.cc,v 1.52 2002/05/17 16:35:58 fluxgen Exp $ +// $Id: Window.cc,v 1.53 2002/05/19 17:56:55 fluxgen Exp $ #include "Window.hh"@@ -1805,7 +1805,8 @@
Fluxbox *fluxbox = Fluxbox::instance(); BaseDisplay::GrabGuard gg(*fluxbox); fluxbox->grab(); - if (! validateClient()) return false; + if (! validateClient()) + return false; bool ret = false;@@ -2689,7 +2690,7 @@
bool FluxboxWindow::isLowerTab(void) const { Tab* chkTab = (tab ? tab->first() : 0); while (chkTab) { - FluxboxWindow* chkWin = chkTab->getWindow(); + const FluxboxWindow* chkWin = chkTab->getWindow(); if (chkWin && chkWin != this && timercmp(&chkWin->lastFocusTime, &lastFocusTime, >)) return true;@@ -3338,7 +3339,8 @@
configure(dx, dy, frame.width, frame.height); } - screen->showPosition(dx, dy); + if (screen->doShowWindowPos()) + screen->showPosition(dx, dy); } } else if (functions.resize && (((me->state & Button1Mask) && (me->window == frame.right_grip ||@@ -3377,7 +3379,8 @@ XDrawRectangle(display, screen->getRootWindow(), screen->getOpGC(),
frame.resize_x, frame.resize_y, frame.resize_w, frame.resize_h); - screen->showGeometry(gx, gy); + if (screen->doShowWindowPos()) + screen->showGeometry(gx, gy); } } }@@ -3515,7 +3518,8 @@ frame.resize_w = frame.width + screen->getBorderWidth2x();
frame.resize_h = ((shaded) ? frame.title_h : frame.height) + screen->getBorderWidth2x(); - screen->showPosition(frame.x, frame.y); + if (screen->doShowWindowPos()) + screen->showPosition(frame.x, frame.y); XDrawRectangle(display, screen->getRootWindow(), screen->getOpGC(), frame.move_x, frame.move_y,@@ -3565,8 +3569,9 @@ if (left)
left_fixsize(&gx, &gy); else right_fixsize(&gx, &gy); - - screen->showGeometry(gx, gy); + + if (screen->doShowWindowPos()) + screen->showGeometry(gx, gy); XDrawRectangle(display, screen->getRootWindow(), screen->getOpGC(), frame.resize_x, frame.resize_y,