aboutsummaryrefslogtreecommitdiff
path: root/src/Screen.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/Screen.cc')
-rw-r--r--src/Screen.cc28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/Screen.cc b/src/Screen.cc
index 48a5c10..1ae5fbc 100644
--- a/src/Screen.cc
+++ b/src/Screen.cc
@@ -342,9 +342,9 @@ BScreen::BScreen(FbTk::ResourceManager &rm,
342 m_pressed_winbutton_theme(new WinButtonTheme(scrn, ".pressed", ".Pressed", *m_focused_windowtheme)), 342 m_pressed_winbutton_theme(new WinButtonTheme(scrn, ".pressed", ".Pressed", *m_focused_windowtheme)),
343 m_menutheme(new FbTk::MenuTheme(scrn)), 343 m_menutheme(new FbTk::MenuTheme(scrn)),
344 m_root_window(scrn), 344 m_root_window(scrn),
345 m_geom_window(m_root_window, *this, *m_focused_windowtheme), 345 m_geom_window(new OSDWindow(m_root_window, *this, *m_focused_windowtheme)),
346 m_pos_window(m_root_window, *this, *m_focused_windowtheme), 346 m_pos_window(new OSDWindow(m_root_window, *this, *m_focused_windowtheme)),
347 m_tooltip_window(m_root_window, *this, *m_focused_windowtheme), 347 m_tooltip_window(new TooltipWindow(m_root_window, *this, *m_focused_windowtheme)),
348 m_dummy_window(scrn, -1, -1, 1, 1, 0, true, false, CopyFromParent, 348 m_dummy_window(scrn, -1, -1, 1, 1, 0, true, false, CopyFromParent,
349 InputOnly), 349 InputOnly),
350 resource(rm, screenname, altscreenname), 350 resource(rm, screenname, altscreenname),
@@ -486,7 +486,7 @@ BScreen::BScreen(FbTk::ResourceManager &rm,
486 486
487 renderGeomWindow(); 487 renderGeomWindow();
488 renderPosWindow(); 488 renderPosWindow();
489 m_tooltip_window.setDelay(*resource.tooltip_delay); 489 m_tooltip_window->setDelay(*resource.tooltip_delay);
490 490
491 // setup workspaces and workspace menu 491 // setup workspaces and workspace menu
492 int nr_ws = *resource.workspaces; 492 int nr_ws = *resource.workspaces;
@@ -1827,12 +1827,12 @@ void BScreen::showPosition(int x, int y) {
1827 1827
1828 char label[256]; 1828 char label[256];
1829 sprintf(label, "X:%5d x Y:%5d", x, y); 1829 sprintf(label, "X:%5d x Y:%5d", x, y);
1830 m_pos_window.showText(label); 1830 m_pos_window->showText(label);
1831} 1831}
1832 1832
1833 1833
1834void BScreen::hidePosition() { 1834void BScreen::hidePosition() {
1835 m_pos_window.hide(); 1835 m_pos_window->hide();
1836} 1836}
1837 1837
1838// can be negative when base_width/height > min_width/height 1838// can be negative when base_width/height > min_width/height
@@ -1848,23 +1848,23 @@ void BScreen::showGeometry(int gx, int gy) {
1848 "W: %4d x H: %4d", 1848 "W: %4d x H: %4d",
1849 "Format for width and height window, %4d for width, and %4d for height").c_str(), 1849 "Format for width and height window, %4d for width, and %4d for height").c_str(),
1850 gx, gy); 1850 gx, gy);
1851 m_geom_window.showText(label); 1851 m_geom_window->showText(label);
1852} 1852}
1853 1853
1854 1854
1855void BScreen::showTooltip(const std::string &text) { 1855void BScreen::showTooltip(const std::string &text) {
1856 if (*resource.tooltip_delay >= 0) 1856 if (*resource.tooltip_delay >= 0)
1857 m_tooltip_window.showText(text); 1857 m_tooltip_window->showText(text);
1858} 1858}
1859 1859
1860void BScreen::hideTooltip() { 1860void BScreen::hideTooltip() {
1861 if (*resource.tooltip_delay >= 0) 1861 if (*resource.tooltip_delay >= 0)
1862 m_tooltip_window.hide(); 1862 m_tooltip_window->hide();
1863} 1863}
1864 1864
1865 1865
1866void BScreen::hideGeometry() { 1866void BScreen::hideGeometry() {
1867 m_geom_window.hide(); 1867 m_geom_window->hide();
1868} 1868}
1869 1869
1870void BScreen::setLayer(FbTk::XLayerItem &item, int layernum) { 1870void BScreen::setLayer(FbTk::XLayerItem &item, int layernum) {
@@ -1912,14 +1912,14 @@ void BScreen::renderGeomWindow() {
1912 _FB_XTEXT(Screen, GeometrySpacing, 1912 _FB_XTEXT(Screen, GeometrySpacing,
1913 "W: %04d x H: %04d", "Representative maximum sized text for width and height dialog").c_str(), 1913 "W: %04d x H: %04d", "Representative maximum sized text for width and height dialog").c_str(),
1914 0, 0); 1914 0, 0);
1915 m_geom_window.resize(label); 1915 m_geom_window->resize(label);
1916 m_geom_window.reconfigTheme(); 1916 m_geom_window->reconfigTheme();
1917} 1917}
1918 1918
1919 1919
1920void BScreen::renderPosWindow() { 1920void BScreen::renderPosWindow() {
1921 m_pos_window.resize("0:00000 x 0:00000"); 1921 m_pos_window->resize("0:00000 x 0:00000");
1922 m_pos_window.reconfigTheme(); 1922 m_pos_window->reconfigTheme();
1923} 1923}
1924 1924
1925void BScreen::updateSize() { 1925void BScreen::updateSize() {