aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--src/Screen.cc71
-rw-r--r--src/Toolbar.cc3
3 files changed, 45 insertions, 35 deletions
diff --git a/ChangeLog b/ChangeLog
index 420260c..71ac769 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
1 (Format: Year/Month/Day) 1 (Format: Year/Month/Day)
2Changes for 1.0.0: 2Changes for 1.0.0:
3*07/07/02:
4 * Fixed some rendering problems when toolbar item borderwidth is too large
5 and toolbar bevelwidth is set (Mark)
6 Toolbar.cc
7 * Moved the `Transparency' submenu next to the rest of the submenus (Mark)
8 Screen.cc
3*07/07/01: 9*07/07/01:
4 * Added keycommands :AddWorkspace and :RemoveLastWorkspace (Mark) 10 * Added keycommands :AddWorkspace and :RemoveLastWorkspace (Mark)
5 WorkspaceCmd.cc/hh FbCommandFactory.cc 11 WorkspaceCmd.cc/hh FbCommandFactory.cc
diff --git a/src/Screen.cc b/src/Screen.cc
index 18da436..7648f78 100644
--- a/src/Screen.cc
+++ b/src/Screen.cc
@@ -1805,41 +1805,6 @@ void BScreen::setupConfigmenu(FbTk::Menu &menu) {
1805 1805
1806 menu.insert(tabmenu_label, tab_menu); 1806 menu.insert(tabmenu_label, tab_menu);
1807 1807
1808 Configmenus::iterator it = m_configmenu_list.begin();
1809 Configmenus::iterator it_end = m_configmenu_list.end();
1810 for (; it != it_end; ++it)
1811 menu.insert(it->first, it->second);
1812
1813 _BOOLITEM(menu, Configmenu, ImageDithering,
1814 "Image Dithering", "Image Dithering",
1815 *resource.image_dither, save_and_reconfigure);
1816 _BOOLITEM(menu, Configmenu, OpaqueMove,
1817 "Opaque Window Moving",
1818 "Window Moving with whole window visible (as opposed to outline moving)",
1819 *resource.opaque_move, saverc_cmd);
1820 _BOOLITEM(menu, Configmenu, FullMax,
1821 "Full Maximization", "Maximise over slit, toolbar, etc",
1822 *resource.full_max, saverc_cmd);
1823 try {
1824 _BOOLITEM(menu, Configmenu, FocusNew,
1825 "Focus New Windows", "Focus newly created windows",
1826 *m_resource_manager.getResource<bool>(name() + ".focusNewWindows"),
1827 saverc_cmd);
1828 } catch (FbTk::ResourceException e) {
1829 cerr<<e.what()<<endl;
1830 }
1831
1832 _BOOLITEM(menu, Configmenu, WorkspaceWarping,
1833 "Workspace Warping",
1834 "Workspace Warping - dragging windows to the edge and onto the next workspace",
1835 *resource.workspace_warping, saverc_cmd);
1836 _BOOLITEM(menu, Configmenu, DecorateTransient,
1837 "Decorate Transient Windows", "Decorate Transient Windows",
1838 *resource.decorate_transient, saverc_cmd);
1839 _BOOLITEM(menu, Configmenu, ClickRaises,
1840 "Click Raises", "Click Raises",
1841 *resource.click_raises, saverc_cmd);
1842
1843#ifdef HAVE_XRENDER 1808#ifdef HAVE_XRENDER
1844 if (FbTk::Transparent::haveRender() || 1809 if (FbTk::Transparent::haveRender() ||
1845 FbTk::Transparent::haveComposite()) { 1810 FbTk::Transparent::haveComposite()) {
@@ -1890,6 +1855,42 @@ void BScreen::setupConfigmenu(FbTk::Menu &menu) {
1890 menu.insert(alphamenu_label, alpha_menu); 1855 menu.insert(alphamenu_label, alpha_menu);
1891 } 1856 }
1892#endif // HAVE_XRENDER 1857#endif // HAVE_XRENDER
1858
1859 Configmenus::iterator it = m_configmenu_list.begin();
1860 Configmenus::iterator it_end = m_configmenu_list.end();
1861 for (; it != it_end; ++it)
1862 menu.insert(it->first, it->second);
1863
1864 _BOOLITEM(menu, Configmenu, ImageDithering,
1865 "Image Dithering", "Image Dithering",
1866 *resource.image_dither, save_and_reconfigure);
1867 _BOOLITEM(menu, Configmenu, OpaqueMove,
1868 "Opaque Window Moving",
1869 "Window Moving with whole window visible (as opposed to outline moving)",
1870 *resource.opaque_move, saverc_cmd);
1871 _BOOLITEM(menu, Configmenu, FullMax,
1872 "Full Maximization", "Maximise over slit, toolbar, etc",
1873 *resource.full_max, saverc_cmd);
1874 try {
1875 _BOOLITEM(menu, Configmenu, FocusNew,
1876 "Focus New Windows", "Focus newly created windows",
1877 *m_resource_manager.getResource<bool>(name() + ".focusNewWindows"),
1878 saverc_cmd);
1879 } catch (FbTk::ResourceException e) {
1880 cerr<<e.what()<<endl;
1881 }
1882
1883 _BOOLITEM(menu, Configmenu, WorkspaceWarping,
1884 "Workspace Warping",
1885 "Workspace Warping - dragging windows to the edge and onto the next workspace",
1886 *resource.workspace_warping, saverc_cmd);
1887 _BOOLITEM(menu, Configmenu, DecorateTransient,
1888 "Decorate Transient Windows", "Decorate Transient Windows",
1889 *resource.decorate_transient, saverc_cmd);
1890 _BOOLITEM(menu, Configmenu, ClickRaises,
1891 "Click Raises", "Click Raises",
1892 *resource.click_raises, saverc_cmd);
1893
1893#undef _BOOLITEM 1894#undef _BOOLITEM
1894 1895
1895 // finaly update menu 1896 // finaly update menu
diff --git a/src/Toolbar.cc b/src/Toolbar.cc
index 1305279..6552859 100644
--- a/src/Toolbar.cc
+++ b/src/Toolbar.cc
@@ -1044,6 +1044,7 @@ void Toolbar::rearrangeItems() {
1044 (*item_it)->hide(); 1044 (*item_it)->hide();
1045 // make sure it still gets told the toolbar height 1045 // make sure it still gets told the toolbar height
1046 tmpw = 1; tmph = height - 2*(bevel_width+borderW); 1046 tmpw = 1; tmph = height - 2*(bevel_width+borderW);
1047 if (tmph >= (1<<30)) tmph = 1;
1047 FbTk::translateSize(orient, tmpw, tmph); 1048 FbTk::translateSize(orient, tmpw, tmph);
1048 (*item_it)->resize(tmpw, tmph); // width of 0 changes to 1 anyway 1049 (*item_it)->resize(tmpw, tmph); // width of 0 changes to 1 anyway
1049 continue; 1050 continue;
@@ -1080,6 +1081,8 @@ void Toolbar::rearrangeItems() {
1080 tmpw = itemw; 1081 tmpw = itemw;
1081 tmph = height - size_offset; 1082 tmph = height - size_offset;
1082 } 1083 }
1084 if (tmpw >= (1<<30)) tmpw = 1;
1085 if (tmph >= (1<<30)) tmph = 1;
1083 next_x += tmpw + bevel_width; 1086 next_x += tmpw + bevel_width;
1084 if (bevel_width != 0) 1087 if (bevel_width != 0)
1085 next_x += 2*borderW; 1088 next_x += 2*borderW;