diff options
author | rathnor <rathnor> | 2003-04-25 09:07:14 (GMT) |
---|---|---|
committer | rathnor <rathnor> | 2003-04-25 09:07:14 (GMT) |
commit | 384603e962dcbd34bc05a220d8fbf3e88a980e80 (patch) | |
tree | d1b1a9018c48bde8efca64391ddd422f8efe19bb /src/fluxbox.cc | |
parent | 9014e53be3ad695776be2eed5d80cbaffaa18873 (diff) | |
download | fluxbox_pavel-384603e962dcbd34bc05a220d8fbf3e88a980e80.zip fluxbox_pavel-384603e962dcbd34bc05a220d8fbf3e88a980e80.tar.bz2 |
add UnderMousePlacement placement policy, plus a little fix for window
positioning (Simon)
Diffstat (limited to 'src/fluxbox.cc')
-rw-r--r-- | src/fluxbox.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/fluxbox.cc b/src/fluxbox.cc index d2dc234..0a29fb1 100644 --- a/src/fluxbox.cc +++ b/src/fluxbox.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: fluxbox.cc,v 1.115 2003/04/20 12:21:35 rathnor Exp $ | 25 | // $Id: fluxbox.cc,v 1.116 2003/04/25 09:07:14 rathnor Exp $ |
26 | 26 | ||
27 | #include "fluxbox.hh" | 27 | #include "fluxbox.hh" |
28 | 28 | ||
@@ -1776,6 +1776,10 @@ void Fluxbox::save_rc() { | |||
1776 | placement = "ColSmartPlacement"; | 1776 | placement = "ColSmartPlacement"; |
1777 | break; | 1777 | break; |
1778 | 1778 | ||
1779 | case BScreen::UNDERMOUSEPLACEMENT: | ||
1780 | placement = "UnderMousePlacement"; | ||
1781 | break; | ||
1782 | |||
1779 | default: | 1783 | default: |
1780 | case BScreen::ROWSMARTPLACEMENT: | 1784 | case BScreen::ROWSMARTPLACEMENT: |
1781 | placement = "RowSmartPlacement"; | 1785 | placement = "RowSmartPlacement"; |
@@ -2021,6 +2025,8 @@ void Fluxbox::load_rc(BScreen &screen) { | |||
2021 | screen.savePlacementPolicy(BScreen::ROWSMARTPLACEMENT); | 2025 | screen.savePlacementPolicy(BScreen::ROWSMARTPLACEMENT); |
2022 | else if (! strncasecmp(value.addr, "ColSmartPlacement", value.size)) | 2026 | else if (! strncasecmp(value.addr, "ColSmartPlacement", value.size)) |
2023 | screen.savePlacementPolicy(BScreen::COLSMARTPLACEMENT); | 2027 | screen.savePlacementPolicy(BScreen::COLSMARTPLACEMENT); |
2028 | else if (! strncasecmp(value.addr, "UnderMousePlacement", value.size)) | ||
2029 | screen.savePlacementPolicy(BScreen::UNDERMOUSEPLACEMENT); | ||
2024 | else | 2030 | else |
2025 | screen.savePlacementPolicy(BScreen::CASCADEPLACEMENT); | 2031 | screen.savePlacementPolicy(BScreen::CASCADEPLACEMENT); |
2026 | } else | 2032 | } else |