diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-06-07 00:24:02 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-06-07 00:24:02 +0000 |
| commit | e90fafd2fd907a81bdc60ad8b6de35fc1595cdff (patch) | |
| tree | 38e3e6394d5aab654ad283e2d7351000c57263af /src/blackbox.cc | |
| parent | aad50046de0b1971f869ee95a0f80267c74a1fd3 (diff) | |
fix off-by-ones in window-to-window snapping. move the property from the blackbox class to the screen class.
Diffstat (limited to 'src/blackbox.cc')
| -rw-r--r-- | src/blackbox.cc | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/blackbox.cc b/src/blackbox.cc index 118a17bc..56782248 100644 --- a/src/blackbox.cc +++ b/src/blackbox.cc @@ -895,18 +895,6 @@ void Blackbox::shutdown(void) { } -void Blackbox::saveWindowToWindowSnap(bool s) { - resource.window_to_window_snap = s; - config.setValue("session.windowToWindowSnap", resource.window_to_window_snap); -} - - -void Blackbox::saveWindowCornerSnap(bool s) { - resource.window_corner_snap = s; - config.setValue("session.windowCornerSnap", resource.window_corner_snap); -} - - /* * Save all values as they are so that the defaults will be written to the rc * file @@ -924,8 +912,6 @@ void Blackbox::save_rc(void) { config.setValue("session.cacheMax", resource.cache_max); config.setValue("session.styleFile", resource.style_file); config.setValue("session.titlebarLayout", resource.titlebar_layout); - saveWindowToWindowSnap(resource.window_to_window_snap); - saveWindowCornerSnap(resource.window_corner_snap); std::for_each(screenList.begin(), screenList.end(), std::mem_fun(&BScreen::save_rc)); @@ -973,14 +959,6 @@ void Blackbox::load_rc(void) { if (! config.getValue("session.titlebarLayout", resource.titlebar_layout)) resource.titlebar_layout = "ILMC"; - - if (! config.getValue("session.windowToWindowSnap", - resource.window_to_window_snap)) - resource.window_to_window_snap = true; - - if (! config.getValue("session.windowCornerSnap", - resource.window_corner_snap)) - resource.window_corner_snap = true; } |
