aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2010-02-25 18:17:48 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2010-02-25 18:17:48 +0100
commite46081b9e412275ec565261fc896d9444d069d64 (patch)
tree54c1fee57f2c010edfe5c4977a7fd8fc61cc8b38 /src
parentbd9180dc01213e4c736d30e70600cc27aa6aa8a7 (diff)
don't inherit UI_TEMPORARILY_SHOW_PANELS, use UI_HIDDEN instead
When creating a new ui, we take the current ui as a template. However it makes no sense to inherit the temporary panelmode UI_TEMPORARILY_SHOW_PANELS. In this case we use the UI_HIDDEN instead. This fixes location bar unhiding issues with multiple tabs when in fullscreen mode. Reported by Dennis Nezic. http://lists.auriga.wearlab.de/pipermail/dillo-dev/2010-February/007346.html
Diffstat (limited to 'src')
-rw-r--r--src/ui.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ui.cc b/src/ui.cc
index ec0b74d0..430de896 100644
--- a/src/ui.cc
+++ b/src/ui.cc
@@ -711,7 +711,11 @@ UI::UI(int x, int y, int ww, int wh, const char* label, const UI *cur_ui) :
PanelSize = cur_ui->PanelSize;
CuteColor = cur_ui->CuteColor;
Small_Icons = cur_ui->Small_Icons;
- Panelmode = cur_ui->Panelmode;
+ if (cur_ui->Panelmode == UI_HIDDEN ||
+ cur_ui->Panelmode == UI_TEMPORARILY_SHOW_PANELS)
+ Panelmode = UI_HIDDEN;
+ else
+ Panelmode = UI_NORMAL;
} else {
// Set some default values
//PanelSize = P_tiny, CuteColor = 26, Small_Icons = 0;