aboutsummaryrefslogtreecommitdiff
path: root/src/Slit.cc
diff options
context:
space:
mode:
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}