aboutsummaryrefslogtreecommitdiff
path: root/src/Slit.cc
diff options
context:
space:
mode:
authorHenrik Kinnunen <fluxgen@fluxbox.org>2008-09-28 16:13:30 (GMT)
committerHenrik Kinnunen <fluxgen@fluxbox.org>2008-09-28 16:13:30 (GMT)
commit9aee5b80cb32119a633151a489a2bd85b63e3b28 (patch)
treeaaf370b73f2c9802eb804312ac64ade1a141b382 /src/Slit.cc
parent2fcc0fd9e7b92dbb440fd67e34fdbab05be7d98d (diff)
downloadfluxbox_pavel-9aee5b80cb32119a633151a489a2bd85b63e3b28.zip
fluxbox_pavel-9aee5b80cb32119a633151a489a2bd85b63e3b28.tar.bz2
Changed resize signal in BScreen to use the new signal system
Diffstat (limited to 'src/Slit.cc')
-rw-r--r--src/Slit.cc20
1 files changed, 13 insertions, 7 deletions
diff --git a/src/Slit.cc b/src/Slit.cc
index 6824bde..5bb96c4 100644
--- a/src/Slit.cc
+++ b/src/Slit.cc
@@ -265,7 +265,9 @@ Slit::Slit(BScreen &scr, FbTk::XLayer &layer, const char *filename)
265 265
266 // attach to theme and root window change signal 266 // attach to theme and root window change signal
267 theme().reconfigSig().attach(this); 267 theme().reconfigSig().attach(this);
268 scr.resizeSig().attach(this); 268
269 join(scr.resizeSig(),
270 FbTk::MemFun(*this, &Slit::screenSizeChanged));
269 271
270 join(scr.bgChangeSig(), 272 join(scr.bgChangeSig(),
271 FbTk::MemFun(*this, &Slit::updateForScreen)); 273 FbTk::MemFun(*this, &Slit::updateForScreen));
@@ -1053,18 +1055,22 @@ void Slit::exposeEvent(XExposeEvent &ev) {
1053 frame.window.clearArea(ev.x, ev.y, ev.width, ev.height); 1055 frame.window.clearArea(ev.x, ev.y, ev.width, ev.height);
1054} 1056}
1055 1057
1056void Slit::updateForScreen(BScreen &screen) { 1058void Slit::screenSizeChanged(BScreen &screen) {
1057 reconfigure();
1058}
1059
1060void Slit::update(FbTk::Subject *subj) {
1061 reconfigure(); 1059 reconfigure();
1062#ifdef XINERAMA 1060#ifdef XINERAMA
1063 if (subj == &m_screen.resizeSig() && m_xineramaheadmenu) 1061 if (m_xineramaheadmenu)
1064 m_xineramaheadmenu->reloadHeads(); 1062 m_xineramaheadmenu->reloadHeads();
1065#endif // XINERAMA 1063#endif // XINERAMA
1066} 1064}
1067 1065
1066void Slit::updateForScreen(BScreen &screen) {
1067 reconfigure();
1068}
1069
1070void Slit::update(FbTk::Subject*) {
1071 updateForScreen(screen());
1072}
1073
1068void Slit::clearWindow() { 1074void Slit::clearWindow() {
1069 frame.window.clear(); 1075 frame.window.clear();
1070} 1076}