aboutsummaryrefslogtreecommitdiff
path: root/src/WinButtonTheme.cc
diff options
context:
space:
mode:
authorMathias Gumz <akira at fluxbox dot org>2013-02-06 12:47:11 (GMT)
committerMathias Gumz <akira at fluxbox dot org>2013-02-06 12:47:17 (GMT)
commit34343bb20bdb3dc94fe426f69e5db16315353d57 (patch)
treecbf01e0b2af4ca14c093ada589f82558ec7d3a66 /src/WinButtonTheme.cc
parent94fddc09c064555721dc521e3e94ed6f610653b9 (diff)
downloadfluxbox_pavel-34343bb20bdb3dc94fe426f69e5db16315353d57.zip
fluxbox_pavel-34343bb20bdb3dc94fe426f69e5db16315353d57.tar.bz2
Feature #3602124: 'LHalf' and 'RHalf' buttons to the titlebar
First draft of feature request of #3602124: Having 2 buttons in the titlebar which allow quick positioning of a Window into the left or right half of the current monitor.
Diffstat (limited to 'src/WinButtonTheme.cc')
-rw-r--r--src/WinButtonTheme.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/WinButtonTheme.cc b/src/WinButtonTheme.cc
index c6e6ddf..aa043b1 100644
--- a/src/WinButtonTheme.cc
+++ b/src/WinButtonTheme.cc
@@ -52,6 +52,10 @@ WinButtonTheme::WinButtonTheme(int screen_num,
52 "Window.Stick" + altextra + ".Pixmap"), 52 "Window.Stick" + altextra + ".Pixmap"),
53 m_stuck_pm(*this, "window.stuck" + extra + ".pixmap", 53 m_stuck_pm(*this, "window.stuck" + extra + ".pixmap",
54 "Window.Stuck" + altextra + ".Pixmap"), 54 "Window.Stuck" + altextra + ".Pixmap"),
55 m_lefthalf_pm(*this, "window.lhalf" + extra + ".pixmap",
56 "Window.LHalf" + altextra + ".Pixmap"),
57 m_righthalf_pm(*this, "window.rhalf" + extra + ".pixmap",
58 "Window.RHalf" + altextra + ".Pixmap"),
55 m_frame_theme(frame_theme) { 59 m_frame_theme(frame_theme) {
56 60
57 FbTk::ThemeManager::instance().loadTheme(*this); 61 FbTk::ThemeManager::instance().loadTheme(*this);
@@ -82,5 +86,7 @@ void WinButtonTheme::reconfigTheme() {
82 m_title_pm->scale(size, size); 86 m_title_pm->scale(size, size);
83 m_stick_pm->scale(size, size); 87 m_stick_pm->scale(size, size);
84 m_stuck_pm->scale(size, size); 88 m_stuck_pm->scale(size, size);
89 m_lefthalf_pm->scale(size, size);
90 m_righthalf_pm->scale(size, size);
85} 91}
86 92