aboutsummaryrefslogtreecommitdiff
path: root/src/Screen.cc
diff options
context:
space:
mode:
authormathias <mathias>2004-12-21 16:09:36 (GMT)
committermathias <mathias>2004-12-21 16:09:36 (GMT)
commit6dffafc39e4b11542705e2d4cd8477545967f5fc (patch)
tree0585d524794e3df62a34edef44aaf01a2830ca1f /src/Screen.cc
parentf3dfb80c405182573804e764357d1e615dd20792 (diff)
downloadfluxbox_pavel-6dffafc39e4b11542705e2d4cd8477545967f5fc.zip
fluxbox_pavel-6dffafc39e4b11542705e2d4cd8477545967f5fc.tar.bz2
* added new command:
sethead <int> which sets the current window to head<int> * added remembering of the head to apps-file: [Head] {<int>}
Diffstat (limited to 'src/Screen.cc')
-rw-r--r--src/Screen.cc13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/Screen.cc b/src/Screen.cc
index 9c0493b..2cf3292 100644
--- a/src/Screen.cc
+++ b/src/Screen.cc
@@ -2372,7 +2372,7 @@ pair<int,int> BScreen::clampToHead(int head, int x, int y, int w, int h) const {
2372// this can be gone and a consistent interface for the two used 2372// this can be gone and a consistent interface for the two used
2373// on the actual objects 2373// on the actual objects
2374 2374
2375 2375/* FIXME: dead code?
2376#ifdef SLIT 2376#ifdef SLIT
2377template <> 2377template <>
2378int BScreen::getOnHead<Slit>(Slit &slit) { 2378int BScreen::getOnHead<Slit>(Slit &slit) {
@@ -2385,3 +2385,14 @@ void BScreen::setOnHead<Slit>(Slit &slit, int head) {
2385 slit.reconfigure(); 2385 slit.reconfigure();
2386} 2386}
2387#endif // SLIT 2387#endif // SLIT
2388*/
2389
2390template<>
2391void BScreen::setOnHead<FluxboxWindow>(FluxboxWindow& win, int head) {
2392 if (head > 0 && head <= numHeads()) {
2393 int current_head = getHead(win.fbWindow());
2394 win.move(getHeadX(head) + win.frame().x() - getHeadX(current_head),
2395 getHeadY(head) + win.frame().y() - getHeadY(current_head));
2396 }
2397}
2398