summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsabetts <sabetts>2003-03-18 04:09:00 +0000
committersabetts <sabetts>2003-03-18 04:09:00 +0000
commitf419b9d265c24f8deeffa348701e6deb085d204a (patch)
tree8c5d41e40d8c50421c15239f669644b00661b43d
parent6de1d7895d11250810988e7a7622cbaffbf9346f (diff)
downloadratpoison-f419b9d265c24f8deeffa348701e6deb085d204a.zip
* src/split.c (resize_frame_horizontally): only resize to the left
if the frame isn't against the left side of the screen. (resize_frame_vertically): only resize to the left if the frame isn't against the top of the screen. * src/split.c (create_initial_frame): call frame_new to allocate a frame. (split_frame): likewise
-rw-r--r--ChangeLog5
-rw-r--r--src/split.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index b9276e3..5057cc6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2003-03-17 Shawn Betts <sabetts@sfu.ca>
+ * src/split.c (resize_frame_horizontally): only resize to the left
+ if the frame isn't against the left side of the screen.
+ (resize_frame_vertically): only resize to the left
+ if the frame isn't against the top of the screen.
+
* src/actions.c (initialize_default_keybindings): add keybindings
for fselect and resize. Move keybinding for curframe.
diff --git a/src/split.c b/src/split.c
index b357f69..71ed61b 100644
--- a/src/split.c
+++ b/src/split.c
@@ -516,7 +516,7 @@ resize_frame_horizontally (rp_window_frame *frame, int diff)
{
resize_frame_right (frame, NULL, diff);
}
- else
+ else if (frame_left (frame) > defaults.padding_left)
{
resize_frame_left (frame, NULL, diff);
}
@@ -536,7 +536,7 @@ resize_frame_vertically (rp_window_frame *frame, int diff)
{
resize_frame_bottom (frame, NULL, diff);
}
- else
+ else if (frame_left (frame) > defaults.padding_top)
{
resize_frame_top (frame, NULL, diff);
}