1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
diff -Nur kuake-0.3.orig/src/kuake.cpp kuake-0.3/src/kuake.cpp
--- kuake-0.3.orig/src/kuake.cpp 2004-03-11 21:16:07.000000000 +0100
+++ kuake-0.3/src/kuake.cpp 2005-03-23 22:32:24.000000000 +0100
@@ -128,15 +128,19 @@
kwinmodule = new KWinModule(this);
readConfig();
- changeState(true);
+ //changeState(true);
//resizeKuake();
//emit slotChangeState();
+ if (!compact)
+ stack->show();
show();
KStartupInfoId id;
id.initId(kapp->startupId());
KStartupInfo::sendFinish(id);
+
+ resizeKeepingState();
}
// --------------------------------------------------------------- //
@@ -334,7 +338,7 @@
KWin::setStrut(winId(), 0, 0, 0, (toggleButton)?_BUTTON_SIZE:0);
break;
case _ALIGN_LEFT:
- setGeometry(0, 0, (toggleButton)?0:-_BUTTON_SIZE, screenHeight);
+ setGeometry((toggleButton)?0:-_BUTTON_SIZE, 0, _BUTTON_SIZE, screenHeight);
pbResize->setGeometry(0, 0, _BUTTON_SIZE, screenHeight);
KWin::setStrut(winId(), (toggleButton)?_BUTTON_SIZE:0, 0, 0, 0);
break;
@@ -370,6 +374,11 @@
KConfig conf ("kuakerc");
sizeRatio = conf.readNumEntry("size_ratio", _SIZE_RATIO_THIRD);
+ alignment = conf.readNumEntry ("alignment", _ALIGN_BOTTOM);
+ animation_steps = conf.readNumEntry("animation", _ANIMATION_MEDIUM);
+ toggleButton = conf.readBoolEntry("toggleButton", true);
+ compact = !conf.readBoolEntry("state", true);
+
switch (sizeRatio)
{
case _SIZE_RATIO_FULL:
@@ -391,14 +400,13 @@
break;
}
- alignment = conf.readNumEntry ("alignment", _ALIGN_BOTTOM);
switch (alignment)
{
case _ALIGN_TOP:
emit slotAlignmentTop();
break;
case _ALIGN_BOTTOM:
- emit slotAlignmentTop();
+ emit slotAlignmentBottom();
break;
case _ALIGN_LEFT:
emit slotAlignmentLeft();
@@ -411,7 +419,6 @@
break;
}
- animation_steps = conf.readNumEntry("animation", _ANIMATION_MEDIUM);
switch (animation_steps)
{
case _ANIMATION_NONE:
@@ -428,7 +435,6 @@
break;
}
- toggleButton = conf.readBoolEntry("toggleButton", true);
ctx->setItemChecked(ctxToggleButtonID, toggleButton);
}
// --------------------------------------------------------------- //
|