diff options
Diffstat (limited to 'src/Screen.cc')
-rw-r--r-- | src/Screen.cc | 39 |
1 files changed, 11 insertions, 28 deletions
diff --git a/src/Screen.cc b/src/Screen.cc index f26a0e6..eab425b 100644 --- a/src/Screen.cc +++ b/src/Screen.cc | |||
@@ -773,21 +773,12 @@ void BScreen::update(FbTk::Subject *subj) { | |||
773 | renderPosWindow(); | 773 | renderPosWindow(); |
774 | 774 | ||
775 | Fluxbox *fluxbox = Fluxbox::instance(); | 775 | Fluxbox *fluxbox = Fluxbox::instance(); |
776 | 776 | const std::list<Focusable *> winlist = | |
777 | // and update frame extents on theme changes | 777 | focusControl().focusedOrderWinList().clientList(); |
778 | Workspaces::iterator w_it = getWorkspacesList().begin(); | 778 | std::list<Focusable *>::const_iterator it = winlist.begin(), |
779 | const Workspaces::iterator w_it_end = getWorkspacesList().end(); | 779 | it_end = winlist.end(); |
780 | for (; w_it != w_it_end; ++w_it) { | ||
781 | Workspace::Windows::iterator win_it = (*w_it)->windowList().begin(); | ||
782 | const Workspace::Windows::iterator win_it_end = (*w_it)->windowList().end(); | ||
783 | for (; win_it != win_it_end; ++win_it) | ||
784 | fluxbox->updateFrameExtents(**win_it); | ||
785 | } | ||
786 | |||
787 | Icons::iterator it = iconList().begin(); | ||
788 | const Icons::iterator it_end = iconList().end(); | ||
789 | for (; it != it_end; ++it) | 780 | for (; it != it_end; ++it) |
790 | fluxbox->updateFrameExtents(**it); | 781 | fluxbox->updateFrameExtents(*(*it)->fbwindow()); |
791 | 782 | ||
792 | } | 783 | } |
793 | 784 | ||
@@ -986,20 +977,12 @@ void BScreen::reconfigure() { | |||
986 | } | 977 | } |
987 | 978 | ||
988 | void BScreen::reconfigureTabs() { | 979 | void BScreen::reconfigureTabs() { |
989 | Workspaces::iterator w_it = getWorkspacesList().begin(); | 980 | const std::list<Focusable *> winlist = |
990 | const Workspaces::iterator w_it_end = getWorkspacesList().end(); | 981 | focusControl().focusedOrderWinList().clientList(); |
991 | for (; w_it != w_it_end; ++w_it) { | 982 | std::list<Focusable *>::const_iterator it = winlist.begin(), |
992 | if (!(*w_it)->windowList().empty()) { | 983 | it_end = winlist.end(); |
993 | Workspace::Windows::iterator win_it = (*w_it)->windowList().begin(); | 984 | for (; it != it_end; ++it) |
994 | const Workspace::Windows::iterator win_it_end = (*w_it)->windowList().end(); | 985 | (*it)->fbwindow()->applyDecorations(); |
995 | for (; win_it != win_it_end; ++win_it) | ||
996 | (*win_it)->applyDecorations(); | ||
997 | } | ||
998 | } | ||
999 | Icons::iterator icon_it = m_icon_list.begin(); | ||
1000 | Icons::iterator icon_it_end = m_icon_list.end(); | ||
1001 | for (; icon_it != icon_it_end; ++icon_it) | ||
1002 | (*icon_it)->applyDecorations(); | ||
1003 | } | 986 | } |
1004 | 987 | ||
1005 | 988 | ||