aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk')
-rw-r--r--src/FbTk/FbWindow.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/FbTk/FbWindow.cc b/src/FbTk/FbWindow.cc
index e098e11..5b52a03 100644
--- a/src/FbTk/FbWindow.cc
+++ b/src/FbTk/FbWindow.cc
@@ -469,6 +469,8 @@ void FbWindow::reparent(const FbWindow &parent, int x, int y, bool continuing) {
469 if (continuing) // we will continue managing this window after reparent 469 if (continuing) // we will continue managing this window after reparent
470 updateGeometry(); 470 updateGeometry();
471} 471}
472
473namespace {
472struct TextPropPtr { 474struct TextPropPtr {
473 TextPropPtr(XTextProperty& prop):m_prop(prop) {} 475 TextPropPtr(XTextProperty& prop):m_prop(prop) {}
474 ~TextPropPtr() { 476 ~TextPropPtr() {
@@ -479,6 +481,8 @@ struct TextPropPtr {
479 } 481 }
480 XTextProperty& m_prop; 482 XTextProperty& m_prop;
481}; 483};
484}
485
482std::string FbWindow::textProperty(Atom property) const { 486std::string FbWindow::textProperty(Atom property) const {
483 XTextProperty text_prop; 487 XTextProperty text_prop;
484 TextPropPtr helper(text_prop); 488 TextPropPtr helper(text_prop);