summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Changelog2
-rw-r--r--config/config.c2
-rw-r--r--doc/rofi-manpage.markdown2
-rw-r--r--doc/rofi.15
-rw-r--r--releasenotes/1.3.0/release-1.3.0.markdown2
-rw-r--r--source/dialogs/dmenu.c8
6 files changed, 15 insertions, 6 deletions
diff --git a/Changelog b/Changelog
index 4b2d3956..fe695d5f 100644
--- a/Changelog
+++ b/Changelog
@@ -9,6 +9,8 @@ v1.3.0: Dan vs. Greg: The never ending story. (unreleased)
- Dynamically sizing window with content.
- When placed at bottom of screen re-order screen to have entry at bottom.
Improvements
+ - By default use all cores to filter entries.
+ - Make sure drawing priority is higher then reading input data.
- Improve resizing of window, don't make X whipe background.
- Improve close window (shift-delete) action, by sending NET_WM_CLOSE instead of destroying window.
- Create cache and run directory on startup. (#497)
diff --git a/config/config.c b/config/config.c
index 0c745b7f..3f076e97 100644
--- a/config/config.c
+++ b/config/config.c
@@ -121,7 +121,7 @@ Settings config = {
.fullscreen = FALSE,
.fake_transparency = FALSE,
.dpi = -1,
- .threads = 1,
+ .threads = 0,
.scrollbar_width = 8,
.scroll_method = 0,
.fake_background = "screenshot",
diff --git a/doc/rofi-manpage.markdown b/doc/rofi-manpage.markdown
index ffd49623..d876a349 100644
--- a/doc/rofi-manpage.markdown
+++ b/doc/rofi-manpage.markdown
@@ -91,6 +91,8 @@ There are currently three methods of setting configuration options (evaluated in
By default XDG_USER_CONFIG_DIR defaults to `$HOME/.config`. (See `rofi -h` for current location).
* Command-line options: Arguments passed to **rofi**.
+**TIP**: To get a template config file run: `rofi -dump-xresources > rofi-example.config`.
+
The Xresources file expects options starting with `rofi.` followed by it's name. An Example to set the number of lines:
rofi.lines: 10
diff --git a/doc/rofi.1 b/doc/rofi.1
index b40156e2..53acadd0 100644
--- a/doc/rofi.1
+++ b/doc/rofi.1
@@ -1,7 +1,7 @@
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
-.TH "ROFI\-MANPAGE" "" "2016-12-14" "" ""
+.TH "ROFI\-MANPAGE" "" "2016-12-19" "" ""
.
.SH "NAME"
\fBrofi\fR \- A window switcher, run launcher, ssh dialog and dmenu replacement
@@ -55,6 +55,9 @@ Command\-line options: Arguments passed to \fBrofi\fR\.
.IP "" 0
.
.P
+\fBTIP\fR: To get a template config file run: \fBrofi \-dump\-xresources > rofi\-example\.config\fR\.
+.
+.P
The Xresources file expects options starting with \fBrofi\.\fR followed by it\'s name\. An Example to set the number of lines:
.
.IP "" 4
diff --git a/releasenotes/1.3.0/release-1.3.0.markdown b/releasenotes/1.3.0/release-1.3.0.markdown
index a0867c67..b12e8894 100644
--- a/releasenotes/1.3.0/release-1.3.0.markdown
+++ b/releasenotes/1.3.0/release-1.3.0.markdown
@@ -80,6 +80,8 @@ by making all colors transparent).
### Improvements
+- By default use all cores to filter entries.
+- Make sure drawing priority is higher then reading input data.
- Improve resizing of window, don't make X whipe background.
- Improve close window (shift-delete) action, by sending NET_WM_CLOSE instead of destroying window.
- Create cache and run directory on startup. (#497)
diff --git a/source/dialogs/dmenu.c b/source/dialogs/dmenu.c
index 7c953ea1..fa9fb28a 100644
--- a/source/dialogs/dmenu.c
+++ b/source/dialogs/dmenu.c
@@ -135,14 +135,14 @@ static void async_read_callback ( GObject *source_object, GAsyncResult *res, gpo
g_free ( data );
rofi_view_reload ();
- g_data_input_stream_read_upto_async ( pd->data_input_stream, &( pd->separator ), 1, G_PRIORITY_DEFAULT, pd->cancel,
+ g_data_input_stream_read_upto_async ( pd->data_input_stream, &( pd->separator ), 1, G_PRIORITY_LOW, pd->cancel,
async_read_callback, pd );
return;
}
if ( !g_cancellable_is_cancelled ( pd->cancel ) ) {
// Hack, don't use get active.
rofi_view_set_overlay ( rofi_view_get_active (), NULL );
- g_input_stream_close_async ( G_INPUT_STREAM ( stream ), G_PRIORITY_DEFAULT, pd->cancel, async_close_callback, pd );
+ g_input_stream_close_async ( G_INPUT_STREAM ( stream ), G_PRIORITY_LOW, pd->cancel, async_close_callback, pd );
}
}
@@ -153,7 +153,7 @@ static void async_read_cancel ( G_GNUC_UNUSED GCancellable *cancel, G_GNUC_UNUSE
static void get_dmenu_async ( DmenuModePrivateData *pd )
{
- g_data_input_stream_read_upto_async ( pd->data_input_stream, &( pd->separator ), 1, G_PRIORITY_DEFAULT, pd->cancel,
+ g_data_input_stream_read_upto_async ( pd->data_input_stream, &( pd->separator ), 1, G_PRIORITY_LOW, pd->cancel,
async_read_callback, pd );
}
static void get_dmenu_sync ( DmenuModePrivateData *pd )
@@ -168,7 +168,7 @@ static void get_dmenu_sync ( DmenuModePrivateData *pd )
read_add ( pd, data, len );
g_free ( data );
}
- g_input_stream_close_async ( G_INPUT_STREAM ( pd->input_stream ), G_PRIORITY_DEFAULT, pd->cancel, async_close_callback, pd );
+ g_input_stream_close_async ( G_INPUT_STREAM ( pd->input_stream ), G_PRIORITY_LOW, pd->cancel, async_close_callback, pd );
}
static unsigned int dmenu_mode_get_num_entries ( const Mode *sw )