diff --git a/README.html b/README.html index ce67bb3..b7f265d 100644 --- a/README.html +++ b/README.html @@ -324,7 +324,6 @@ MD5() is deprecated as of OpenSSL 3.0, but this would also make it very easy to have LibreSSL compatibility.
XMoveResizeWindow()
as well as
diff --git a/README.md b/README.md
index 7df7556..a7fb6a0 100644
--- a/README.md
+++ b/README.md
@@ -127,7 +127,6 @@ is deprecated as of OpenSSL 3.0, but this would also make it very easy to
have LibreSSL compatibility.
- Image support: Ability to display icons, similar to rofi
- Text drawing: Use cairo for text drawing over Xft.
-- Typing: Disable insert mode completely when !type
- Lines: Rofi-like newlines in the same entry
- Just need to `XMoveResizeWindow()` as well as `mh += bh` and `y += bh`
for each added line.
diff --git a/libs/arg.c b/libs/arg.c
index e718381..09c6c36 100644
--- a/libs/arg.c
+++ b/libs/arg.c
@@ -468,9 +468,11 @@ void setprofile(Arg *arg) {
void switchmode(Arg *arg) {
curMode = !curMode;
+
+ if (!type) curMode = 0; // only normal mode allowed
+
allowkeys = !curMode;
strncpy(modetext, curMode ? instext : normtext, 15);
-
drawmenu();
}
diff --git a/spmenu.c b/spmenu.c
index d93b98c..6fd3e5a 100644
--- a/spmenu.c
+++ b/spmenu.c
@@ -688,6 +688,10 @@ int main(int argc, char *argv[]) {
longestedge = MAX(imagewidth, imageheight);
#endif
+ if (!type) {
+ mode = 0;
+ }
+
// set default mode, must be done before the event loop or keybindings will not work
if (mode) {
curMode = 1;