* [patch] Correct resizing of the command window in TUI mode
@ 2010-07-21 20:54 Balazs Kezes
2010-07-28 12:09 ` Pedro Alves
0 siblings, 1 reply; 2+ messages in thread
From: Balazs Kezes @ 2010-07-21 20:54 UTC (permalink / raw)
To: gdb-patches
Currently the command window is not resized via wresize/wmvwin ncurses
functions so it always remain the same size at the same position.
This patch fixes this.
--
Balazs
Index: tui-win.c
===================================================================
RCS file: /cvs/src/src/gdb/tui/tui-win.c,v
retrieving revision 1.47
diff -c -p -r1.47 tui-win.c
*** tui-win.c 17 May 2010 22:21:43 -0000 1.47
--- tui-win.c 21 Jul 2010 20:43:22 -0000
*************** make_visible_with_new_height (struct tui
*** 1403,1408 ****
--- 1402,1413 ----
case CMD_WIN:
win_info->detail.command_info.cur_line = 0;
win_info->detail.command_info.curch = 0;
+ wresize(TUI_CMD_WIN->generic.handle,
+ TUI_CMD_WIN->generic.height,
+ TUI_CMD_WIN->generic.width);
+ mvwin(TUI_CMD_WIN->generic.handle,
+ TUI_CMD_WIN->generic.origin.y,
+ TUI_CMD_WIN->generic.origin.x);
wmove (win_info->generic.handle,
win_info->detail.command_info.cur_line,
win_info->detail.command_info.curch);
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [patch] Correct resizing of the command window in TUI mode
2010-07-21 20:54 [patch] Correct resizing of the command window in TUI mode Balazs Kezes
@ 2010-07-28 12:09 ` Pedro Alves
0 siblings, 0 replies; 2+ messages in thread
From: Pedro Alves @ 2010-07-28 12:09 UTC (permalink / raw)
To: gdb-patches; +Cc: Balazs Kezes
Now applied too. Thanks again!
--
Pedro Alves
2010-07-28 Balazs Kezes <rlblaster@gmail.com>
* tui/tui-win.c (make_visible_with_new_height): Resize and move
the command window to the new size and position.
---
gdb/tui/tui-win.c | 6 ++++++
1 file changed, 6 insertions(+)
Index: src/gdb/tui/tui-win.c
===================================================================
--- src.orig/gdb/tui/tui-win.c 2010-07-28 12:57:45.000000000 +0100
+++ src/gdb/tui/tui-win.c 2010-07-28 13:01:27.000000000 +0100
@@ -1403,6 +1403,12 @@ make_visible_with_new_height (struct tui
case CMD_WIN:
win_info->detail.command_info.cur_line = 0;
win_info->detail.command_info.curch = 0;
+ wresize (TUI_CMD_WIN->generic.handle,
+ TUI_CMD_WIN->generic.height,
+ TUI_CMD_WIN->generic.width);
+ mvwin (TUI_CMD_WIN->generic.handle,
+ TUI_CMD_WIN->generic.origin.y,
+ TUI_CMD_WIN->generic.origin.x);
wmove (win_info->generic.handle,
win_info->detail.command_info.cur_line,
win_info->detail.command_info.curch);
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-07-28 12:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-21 20:54 [patch] Correct resizing of the command window in TUI mode Balazs Kezes
2010-07-28 12:09 ` Pedro Alves
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).