diff options
author | fluxgen <fluxgen> | 2003-04-16 00:38:06 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2003-04-16 00:38:06 (GMT) |
commit | 21bc356be2200f07cf5235714493f6dc79583713 (patch) | |
tree | ca93e575726f61fea08959db6bb92562bf5840dc /src/Screen.cc | |
parent | 80c38380d1ef1394ab3b19ca51680a28fd27fa3a (diff) | |
download | fluxbox_pavel-21bc356be2200f07cf5235714493f6dc79583713.zip fluxbox_pavel-21bc356be2200f07cf5235714493f6dc79583713.tar.bz2 |
fixed click raise option, patch from Dale P. Smith
Diffstat (limited to 'src/Screen.cc')
-rw-r--r-- | src/Screen.cc | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/src/Screen.cc b/src/Screen.cc index bac97e9..7f3efd3 100644 --- a/src/Screen.cc +++ b/src/Screen.cc | |||
@@ -22,7 +22,7 @@ | |||
22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
23 | // DEALINGS IN THE SOFTWARE. | 23 | // DEALINGS IN THE SOFTWARE. |
24 | 24 | ||
25 | // $Id: Screen.cc,v 1.123 2003/04/15 23:09:12 rathnor Exp $ | 25 | // $Id: Screen.cc,v 1.124 2003/04/16 00:37:19 fluxgen Exp $ |
26 | 26 | ||
27 | 27 | ||
28 | #include "Screen.hh" | 28 | #include "Screen.hh" |
@@ -386,6 +386,7 @@ BScreen::ScreenResource::ScreenResource(ResourceManager &rm, | |||
386 | focus_new(rm, true, scrname+".focusNewWindows", altscrname+".FocusNewWindows"), | 386 | focus_new(rm, true, scrname+".focusNewWindows", altscrname+".FocusNewWindows"), |
387 | antialias(rm, false, scrname+".antialias", altscrname+".Antialias"), | 387 | antialias(rm, false, scrname+".antialias", altscrname+".Antialias"), |
388 | auto_raise(rm, false, scrname+".autoRaise", altscrname+".AutoRaise"), | 388 | auto_raise(rm, false, scrname+".autoRaise", altscrname+".AutoRaise"), |
389 | click_raises(rm, true, scrname+".clickRaises", altscrname+".ClickRaises"), | ||
389 | rootcommand(rm, "", scrname+".rootCommand", altscrname+".RootCommand"), | 390 | rootcommand(rm, "", scrname+".rootCommand", altscrname+".RootCommand"), |
390 | focus_model(rm, Fluxbox::CLICKTOFOCUS, scrname+".focusModel", altscrname+".FocusModel"), | 391 | focus_model(rm, Fluxbox::CLICKTOFOCUS, scrname+".focusModel", altscrname+".FocusModel"), |
391 | workspaces(rm, 1, scrname+".workspaces", altscrname+".Workspaces"), | 392 | workspaces(rm, 1, scrname+".workspaces", altscrname+".Workspaces"), |
@@ -1864,23 +1865,23 @@ void BScreen::setupConfigmenu(FbTk::Menu &menu) { | |||
1864 | FbTk::Menu *focus_menu = createMenuFromScreen(*this); | 1865 | FbTk::Menu *focus_menu = createMenuFromScreen(*this); |
1865 | 1866 | ||
1866 | focus_menu->insert(new FocusModelMenuItem(i18n->getMessage( | 1867 | focus_menu->insert(new FocusModelMenuItem(i18n->getMessage( |
1867 | ConfigmenuSet, | 1868 | ConfigmenuSet, |
1868 | ConfigmenuClickToFocus, | 1869 | ConfigmenuClickToFocus, |
1869 | "Click To Focus"), | 1870 | "Click To Focus"), |
1870 | *this, | 1871 | *this, |
1871 | Fluxbox::CLICKTOFOCUS, | 1872 | Fluxbox::CLICKTOFOCUS, |
1872 | save_and_reconfigure)); | 1873 | save_and_reconfigure)); |
1873 | focus_menu->insert(new FocusModelMenuItem(i18n->getMessage( | 1874 | focus_menu->insert(new FocusModelMenuItem(i18n->getMessage( |
1874 | ConfigmenuSet, | 1875 | ConfigmenuSet, |
1875 | ConfigmenuSloppyFocus, | 1876 | ConfigmenuSloppyFocus, |
1876 | "Sloppy Focus"), | 1877 | "Sloppy Focus"), |
1877 | *this, | 1878 | *this, |
1878 | Fluxbox::SLOPPYFOCUS, | 1879 | Fluxbox::SLOPPYFOCUS, |
1879 | save_and_reconfigure)); | 1880 | save_and_reconfigure)); |
1880 | focus_menu->insert(new FocusModelMenuItem(i18n->getMessage( | 1881 | focus_menu->insert(new FocusModelMenuItem(i18n->getMessage( |
1881 | ConfigmenuSet, | 1882 | ConfigmenuSet, |
1882 | ConfigmenuSemiSloppyFocus, | 1883 | ConfigmenuSemiSloppyFocus, |
1883 | "Semi Sloppy Focus"), | 1884 | "Semi Sloppy Focus"), |
1884 | *this, | 1885 | *this, |
1885 | Fluxbox::SEMISLOPPYFOCUS, | 1886 | Fluxbox::SEMISLOPPYFOCUS, |
1886 | save_and_reconfigure)); | 1887 | save_and_reconfigure)); |
@@ -1894,6 +1895,7 @@ void BScreen::setupConfigmenu(FbTk::Menu &menu) { | |||
1894 | focus_menu->update(); | 1895 | focus_menu->update(); |
1895 | rootmenuList.push_back(focus_menu); | 1896 | rootmenuList.push_back(focus_menu); |
1896 | 1897 | ||
1898 | |||
1897 | menu.insert(i18n->getMessage( | 1899 | menu.insert(i18n->getMessage( |
1898 | ConfigmenuSet, ConfigmenuFocusModel, | 1900 | ConfigmenuSet, ConfigmenuFocusModel, |
1899 | "Focus Model"), | 1901 | "Focus Model"), |
@@ -1903,8 +1905,8 @@ void BScreen::setupConfigmenu(FbTk::Menu &menu) { | |||
1903 | menu.insert("Slit", &getSlit()->menu()); | 1905 | menu.insert("Slit", &getSlit()->menu()); |
1904 | #endif // SLIT | 1906 | #endif // SLIT |
1905 | menu.insert(i18n->getMessage( | 1907 | menu.insert(i18n->getMessage( |
1906 | ToolbarSet, ToolbarToolbarTitle, | 1908 | ToolbarSet, ToolbarToolbarTitle, |
1907 | "Toolbar"), &m_toolbarhandler->getToolbarMenu()); | 1909 | "Toolbar"), &m_toolbarhandler->getToolbarMenu()); |
1908 | menu.insert(new | 1910 | menu.insert(new |
1909 | BoolMenuItem(i18n->getMessage( | 1911 | BoolMenuItem(i18n->getMessage( |
1910 | ConfigmenuSet, ConfigmenuImageDithering, | 1912 | ConfigmenuSet, ConfigmenuImageDithering, |
@@ -1947,6 +1949,9 @@ void BScreen::setupConfigmenu(FbTk::Menu &menu) { | |||
1947 | "Desktop MouseWheel Switching"), | 1949 | "Desktop MouseWheel Switching"), |
1948 | *resource.desktop_wheeling, save_and_reconfigure)); | 1950 | *resource.desktop_wheeling, save_and_reconfigure)); |
1949 | 1951 | ||
1952 | menu.insert(new BoolMenuItem("Click Raises", | ||
1953 | *resource.click_raises, | ||
1954 | save_and_reconfigure)); | ||
1950 | // setup antialias cmd to reload style and save resource on toggle | 1955 | // setup antialias cmd to reload style and save resource on toggle |
1951 | menu.insert(new BoolMenuItem("antialias", *resource.antialias, | 1956 | menu.insert(new BoolMenuItem("antialias", *resource.antialias, |
1952 | save_and_reconfigure)); | 1957 | save_and_reconfigure)); |