mirror of
https://github.com/weechat/weechat.git
synced 2026-07-08 20:05:43 +02:00
Fixed bugs with bars size and refresh
This commit is contained in:
@@ -120,25 +120,25 @@ gui_bar_window_calculate_pos_size (struct t_gui_bar_window *bar_window,
|
||||
case GUI_BAR_POSITION_BOTTOM:
|
||||
bar_window->x = x1 + add_left;
|
||||
bar_window->y = y2 - add_bottom - bar_window->bar->size + 1;
|
||||
bar_window->width = x2 - add_right - x1 + 1;
|
||||
bar_window->height = bar_window->bar->size - add_top - add_bottom;
|
||||
bar_window->width = x2 - x1 + 1 - add_left - add_right;
|
||||
bar_window->height = bar_window->bar->size;
|
||||
break;
|
||||
case GUI_BAR_POSITION_TOP:
|
||||
bar_window->x = x1 + add_left;
|
||||
bar_window->y = y1 + add_top;
|
||||
bar_window->width = x2 - x1 + 1;
|
||||
bar_window->height = bar_window->bar->size - add_left - add_right;
|
||||
bar_window->width = x2 - x1 + 1 - add_left - add_right;
|
||||
bar_window->height = bar_window->bar->size;
|
||||
break;
|
||||
case GUI_BAR_POSITION_LEFT:
|
||||
bar_window->x = x1 + add_left;
|
||||
bar_window->y = y1 + add_top;
|
||||
bar_window->width = bar_window->bar->size - add_left - add_right;
|
||||
bar_window->width = bar_window->bar->size;
|
||||
bar_window->height = y2 - add_top - add_bottom - y1 + 1;
|
||||
break;
|
||||
case GUI_BAR_POSITION_RIGHT:
|
||||
bar_window->x = x2 - add_right - bar_window->bar->size + 1;
|
||||
bar_window->y = y1 + add_top;
|
||||
bar_window->width = bar_window->bar->size - add_left - add_right;
|
||||
bar_window->width = bar_window->bar->size;
|
||||
bar_window->height = y2 - y1 + 1;
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -28,8 +28,10 @@
|
||||
|
||||
#include "../../core/weechat.h"
|
||||
#include "../../core/wee-config.h"
|
||||
#include "../../core/wee-hook.h"
|
||||
#include "../../core/wee-log.h"
|
||||
#include "../../core/wee-string.h"
|
||||
#include "../../plugins/plugin.h"
|
||||
#include "../gui-window.h"
|
||||
#include "../gui-bar.h"
|
||||
#include "../gui-buffer.h"
|
||||
@@ -567,6 +569,9 @@ gui_window_switch_to_buffer (struct t_gui_window *window,
|
||||
buffer->num_displayed++;
|
||||
|
||||
gui_hotlist_remove_buffer (buffer);
|
||||
|
||||
hook_signal_send ("buffer_switch",
|
||||
WEECHAT_HOOK_SIGNAL_POINTER, buffer);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
+61
-39
File diff suppressed because it is too large
Load Diff
@@ -48,6 +48,12 @@ struct t_gui_bar_item
|
||||
struct t_gui_bar_item *next_item; /* link to next bar item */
|
||||
};
|
||||
|
||||
struct t_gui_bar_item_hook
|
||||
{
|
||||
struct t_hook *hook; /* pointer to hook */
|
||||
struct t_gui_bar_item_hook *next_hook; /* next hook */
|
||||
};
|
||||
|
||||
/* variables */
|
||||
|
||||
extern struct t_gui_bar_item *gui_bar_items;
|
||||
|
||||
Reference in New Issue
Block a user