summaryrefslogtreecommitdiff
path: root/x11-wm/blackbox/files/patch-src_Screen.cc
diff options
context:
space:
mode:
authorTrond Endrestol <Trond.Endrestol@ximalas.info>2023-07-27 08:48:20 +0200
committerFernando ApesteguĂ­a <fernape@FreeBSD.org>2023-07-28 08:32:51 +0200
commit1bd91c34660f630db4d1414a2d64b47162a5baad (patch)
tree7a9da8de328244c42186c89769abbaf25ba8590f /x11-wm/blackbox/files/patch-src_Screen.cc
parentsecurity/rkhunter: Modernize and correct the periodic script (diff)
x11-wm/blackbox: switch from std::mem_fun to std::mem_fn
The former is deprecated. PR: 272660 Reported by: Trond.Endrestol@ximalas.info Approved by: A.J.Caines@halplant.com (maintainer)
Diffstat (limited to 'x11-wm/blackbox/files/patch-src_Screen.cc')
-rw-r--r--x11-wm/blackbox/files/patch-src_Screen.cc24
1 files changed, 24 insertions, 0 deletions
diff --git a/x11-wm/blackbox/files/patch-src_Screen.cc b/x11-wm/blackbox/files/patch-src_Screen.cc
index 4bb2df4678be..edab37f53e0b 100644
--- a/x11-wm/blackbox/files/patch-src_Screen.cc
+++ b/x11-wm/blackbox/files/patch-src_Screen.cc
@@ -17,3 +17,27 @@
removeLastWorkspace();
}
} else if (event->message_type == _blackbox->ewmh().desktopNames()) {
+@@ -1927,12 +1928,12 @@ void BScreen::toggleFocusModel(FocusModel model) {
+
+ void BScreen::toggleFocusModel(FocusModel model) {
+ std::for_each(windowList.begin(), windowList.end(),
+- std::mem_fun(&BlackboxWindow::ungrabButtons));
++ std::mem_fn(&BlackboxWindow::ungrabButtons));
+
+ _blackbox->resource().setFocusModel(model);
+
+ std::for_each(windowList.begin(), windowList.end(),
+- std::mem_fun(&BlackboxWindow::grabButtons));
++ std::mem_fn(&BlackboxWindow::grabButtons));
+ }
+
+
+@@ -1976,7 +1977,7 @@ void BScreen::updateClientListHint(void) const {
+ bt::EWMH::WindowList clientList(windowList.size());
+
+ std::transform(windowList.begin(), windowList.end(), clientList.begin(),
+- std::mem_fun(&BlackboxWindow::clientWindow));
++ std::mem_fn(&BlackboxWindow::clientWindow));
+
+ _blackbox->ewmh().setClientList(screen_info.rootWindow(), clientList);
+ }