--- a/gntwidget.c Sat Nov 10 04:52:20 2007 +0000
+++ b/gntwidget.c Sat Nov 10 23:48:57 2007 +0000
@@ -466,7 +466,6 @@
*width = wid->priv.width + shadow;
*height = wid->priv.height + shadow;
--- a/gntwm.c Sat Nov 10 04:52:20 2007 +0000
+++ b/gntwm.c Sat Nov 10 23:48:57 2007 +0000
@@ -109,12 +109,10 @@
gnt_wm_copy_win(GntWidget *widget, GntNode *node)
- shadow = gnt_widget_has_shadow(widget) ? 1 : 0;
copywin(src, dst, node->scroll, 0, 0, 0, getmaxy(dst) - 1, getmaxx(dst) - 1, 0);
@@ -1004,9 +1002,9 @@
GntWM *wm = GNT_WM(bindable);
- g_hash_table_foreach(wm->nodes, (GHFunc)refresh_node, NULL);
+ g_hash_table_foreach(wm->nodes, (GHFunc)refresh_node, GINT_TO_POINTER(TRUE)); g_signal_emit(wm, signals[SIG_TERMINAL_REFRESH], 0);
gnt_ws_draw_taskbar(wm->cws, TRUE);
@@ -1622,13 +1620,11 @@
- w = widget->priv.width;
- h = widget->priv.height;
+ w = widget->priv.width + shadow; + h = widget->priv.height + shadow; - getmaxyx(stdscr, maxy, maxx);
- maxy -= 1; /* room for the taskbar */
+ maxx = getmaxx(stdscr); + maxy = getmaxy(stdscr) - 1; /* room for the taskbar */ @@ -1639,7 +1635,7 @@
- node->window = newwin(h + shadow, w + shadow, y, x);
+ node->window = newwin(h, w, y, x); gnt_wm_copy_win(widget, node);
@@ -1884,9 +1880,8 @@
node = g_hash_table_lookup(wm->nodes, widget);
@@ -1900,9 +1895,8 @@
gnt_widget_set_size(widget, width, height);
- shadow = gnt_widget_has_shadow(widget) ? 1 : 0;
- maxx = getmaxx(stdscr) - shadow;
- maxy = getmaxy(stdscr) - 1 - shadow;
+ maxx = getmaxx(stdscr); + maxy = getmaxy(stdscr) - 1; height = MIN(height, maxy);
width = MIN(width, maxx);
wresize(node->window, height, width);