aboutsummaryrefslogtreecommitdiff
path: root/src/Screen.cc
diff options
context:
space:
mode:
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