aboutsummaryrefslogtreecommitdiff
path: root/src/Window.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/Window.cc')
-rw-r--r--src/Window.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Window.cc b/src/Window.cc
index 342e488..5a1659e 100644
--- a/src/Window.cc
+++ b/src/Window.cc
@@ -73,14 +73,14 @@
73using std::endl; 73using std::endl;
74using std::string; 74using std::string;
75using std::vector; 75using std::vector;
76using std::bind2nd; 76using std::mem_fn;
77using std::mem_fun;
78using std::equal_to; 77using std::equal_to;
79using std::max; 78using std::max;
80using std::swap; 79using std::swap;
81using std::dec; 80using std::dec;
82using std::hex; 81using std::hex;
83 82
83using namespace std::placeholders;
84using namespace FbTk; 84using namespace FbTk;
85 85
86namespace { 86namespace {
@@ -815,8 +815,8 @@ bool FluxboxWindow::removeClient(WinClient &client) {
815WinClient *FluxboxWindow::findClient(Window win) { 815WinClient *FluxboxWindow::findClient(Window win) {
816 ClientList::iterator it = find_if(clientList().begin(), 816 ClientList::iterator it = find_if(clientList().begin(),
817 clientList().end(), 817 clientList().end(),
818 Compose(bind2nd(equal_to<Window>(), win), 818 Compose(std::bind(equal_to<Window>(), _1, win),
819 mem_fun(&WinClient::window))); 819 mem_fn(&WinClient::window)));
820 return (it == clientList().end() ? 0 : *it); 820 return (it == clientList().end() ? 0 : *it);
821} 821}
822 822
@@ -3379,8 +3379,8 @@ WinClient* FluxboxWindow::winClientOfLabelButtonWindow(Window window) {
3379 Client2ButtonMap::iterator it = 3379 Client2ButtonMap::iterator it =
3380 find_if(m_labelbuttons.begin(), 3380 find_if(m_labelbuttons.begin(),
3381 m_labelbuttons.end(), 3381 m_labelbuttons.end(),
3382 Compose(bind2nd(equal_to<Window>(), window), 3382 Compose(std::bind(equal_to<Window>(), _1, window),
3383 Compose(mem_fun(&FbTk::Button::window), 3383 Compose(mem_fn(&FbTk::Button::window),
3384 Select2nd<Client2ButtonMap::value_type>()))); 3384 Select2nd<Client2ButtonMap::value_type>())));
3385 if (it != m_labelbuttons.end()) 3385 if (it != m_labelbuttons.end())
3386 result = it->first; 3386 result = it->first;