added configurable geometry
This commit is contained in:
parent
75f83132ea
commit
57cd3c5c7c
3 changed files with 19 additions and 11 deletions
|
@ -22,7 +22,7 @@
|
||||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
// DEALINGS IN THE SOFTWARE.
|
// 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
|
//use GNU extensions
|
||||||
#ifndef _GNU_SOURCE
|
#ifndef _GNU_SOURCE
|
||||||
|
@ -203,6 +203,7 @@ tab_rotate_vertical(rm, true, scrname+".tab.rotatevertical", altscrname+".Tab.Ro
|
||||||
sloppy_window_grouping(rm, true, scrname+".sloppywindowgrouping", altscrname+".SloppyWindowGrouping"),
|
sloppy_window_grouping(rm, true, scrname+".sloppywindowgrouping", altscrname+".SloppyWindowGrouping"),
|
||||||
workspace_warping(rm, true, scrname+".workspacewarping", altscrname+".WorkspaceWarping"),
|
workspace_warping(rm, true, scrname+".workspacewarping", altscrname+".WorkspaceWarping"),
|
||||||
desktop_wheeling(rm, true, scrname+".desktopwheeling", altscrname+".DesktopWheeling"),
|
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_last(rm, true, scrname+".focusLastWindow", altscrname+".FocusLastWindow"),
|
||||||
focus_new(rm, true, scrname+".focusNewWindows", altscrname+".FocusNewWindows"),
|
focus_new(rm, true, scrname+".focusNewWindows", altscrname+".FocusNewWindows"),
|
||||||
rootcommand(rm, "", scrname+".rootCommand", altscrname+".RootCommand"),
|
rootcommand(rm, "", scrname+".rootCommand", altscrname+".RootCommand"),
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
// DEALINGS IN THE SOFTWARE.
|
// 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
|
#ifndef SCREEN_HH
|
||||||
#define SCREEN_HH
|
#define SCREEN_HH
|
||||||
|
@ -87,6 +87,7 @@ public:
|
||||||
inline bool doFullMax(void) { return *resource.full_max; }
|
inline bool doFullMax(void) { return *resource.full_max; }
|
||||||
inline bool doFocusNew(void) { return *resource.focus_new; }
|
inline bool doFocusNew(void) { return *resource.focus_new; }
|
||||||
inline bool doFocusLast(void) { return *resource.focus_last; }
|
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(); }
|
inline const GC &getOpGC() const { return theme->getOpGC(); }
|
||||||
|
|
||||||
|
@ -300,7 +301,8 @@ private:
|
||||||
image_dither, opaque_move, full_max,
|
image_dither, opaque_move, full_max,
|
||||||
max_over_slit, tab_rotate_vertical,
|
max_over_slit, tab_rotate_vertical,
|
||||||
sloppy_window_grouping, workspace_warping,
|
sloppy_window_grouping, workspace_warping,
|
||||||
desktop_wheeling, focus_last, focus_new;
|
desktop_wheeling, show_window_pos,
|
||||||
|
focus_last, focus_new;
|
||||||
Resource<std::string> rootcommand;
|
Resource<std::string> rootcommand;
|
||||||
bool auto_raise, sloppy_focus, semi_sloppy_focus,
|
bool auto_raise, sloppy_focus, semi_sloppy_focus,
|
||||||
ordered_dither;
|
ordered_dither;
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
// DEALINGS IN THE SOFTWARE.
|
// 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"
|
#include "Window.hh"
|
||||||
|
|
||||||
|
@ -1805,7 +1805,8 @@ bool FluxboxWindow::setInputFocus(void) {
|
||||||
Fluxbox *fluxbox = Fluxbox::instance();
|
Fluxbox *fluxbox = Fluxbox::instance();
|
||||||
BaseDisplay::GrabGuard gg(*fluxbox);
|
BaseDisplay::GrabGuard gg(*fluxbox);
|
||||||
fluxbox->grab();
|
fluxbox->grab();
|
||||||
if (! validateClient()) return false;
|
if (! validateClient())
|
||||||
|
return false;
|
||||||
|
|
||||||
bool ret = false;
|
bool ret = false;
|
||||||
|
|
||||||
|
@ -2689,7 +2690,7 @@ void FluxboxWindow::restoreGravity(void) {
|
||||||
bool FluxboxWindow::isLowerTab(void) const {
|
bool FluxboxWindow::isLowerTab(void) const {
|
||||||
Tab* chkTab = (tab ? tab->first() : 0);
|
Tab* chkTab = (tab ? tab->first() : 0);
|
||||||
while (chkTab) {
|
while (chkTab) {
|
||||||
FluxboxWindow* chkWin = chkTab->getWindow();
|
const FluxboxWindow* chkWin = chkTab->getWindow();
|
||||||
if (chkWin && chkWin != this &&
|
if (chkWin && chkWin != this &&
|
||||||
timercmp(&chkWin->lastFocusTime, &lastFocusTime, >))
|
timercmp(&chkWin->lastFocusTime, &lastFocusTime, >))
|
||||||
return true;
|
return true;
|
||||||
|
@ -3338,6 +3339,7 @@ void FluxboxWindow::motionNotifyEvent(XMotionEvent *me) {
|
||||||
configure(dx, dy, frame.width, frame.height);
|
configure(dx, dy, frame.width, frame.height);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (screen->doShowWindowPos())
|
||||||
screen->showPosition(dx, dy);
|
screen->showPosition(dx, dy);
|
||||||
}
|
}
|
||||||
} else if (functions.resize &&
|
} else if (functions.resize &&
|
||||||
|
@ -3377,6 +3379,7 @@ void FluxboxWindow::motionNotifyEvent(XMotionEvent *me) {
|
||||||
frame.resize_x, frame.resize_y,
|
frame.resize_x, frame.resize_y,
|
||||||
frame.resize_w, frame.resize_h);
|
frame.resize_w, frame.resize_h);
|
||||||
|
|
||||||
|
if (screen->doShowWindowPos())
|
||||||
screen->showGeometry(gx, gy);
|
screen->showGeometry(gx, gy);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3515,6 +3518,7 @@ void FluxboxWindow::startMoving(Window win) {
|
||||||
frame.resize_h = ((shaded) ? frame.title_h : frame.height) +
|
frame.resize_h = ((shaded) ? frame.title_h : frame.height) +
|
||||||
screen->getBorderWidth2x();
|
screen->getBorderWidth2x();
|
||||||
|
|
||||||
|
if (screen->doShowWindowPos())
|
||||||
screen->showPosition(frame.x, frame.y);
|
screen->showPosition(frame.x, frame.y);
|
||||||
|
|
||||||
XDrawRectangle(display, screen->getRootWindow(), screen->getOpGC(),
|
XDrawRectangle(display, screen->getRootWindow(), screen->getOpGC(),
|
||||||
|
@ -3566,6 +3570,7 @@ void FluxboxWindow::startResizing(XMotionEvent *me, bool left) {
|
||||||
else
|
else
|
||||||
right_fixsize(&gx, &gy);
|
right_fixsize(&gx, &gy);
|
||||||
|
|
||||||
|
if (screen->doShowWindowPos())
|
||||||
screen->showGeometry(gx, gy);
|
screen->showGeometry(gx, gy);
|
||||||
|
|
||||||
XDrawRectangle(display, screen->getRootWindow(), screen->getOpGC(),
|
XDrawRectangle(display, screen->getRootWindow(), screen->getOpGC(),
|
||||||
|
|
Loading…
Reference in a new issue