Skip to content

Commit

Permalink
Merge tag '1.7.2' into wayland
Browse files Browse the repository at this point in the history
  • Loading branch information
lbonn committed Dec 16, 2021
2 parents a2a1c89 + 9bbfa7c commit 0a0d833
Show file tree
Hide file tree
Showing 11 changed files with 103 additions and 56 deletions.
5 changes: 4 additions & 1 deletion .github/actions/autotools/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ inputs:
cc:
description: Compiler to use
required: true
windowmode:
description: Enable window mode
required: true

runs:
using: composite
Expand All @@ -18,7 +21,7 @@ runs:
mkdir builddir && cd builddir
../configure CC=${{ inputs.cc }}
../configure CC=${{ inputs.cc }} --${{ inputs.windowmode }}-windowmode
shell: bash
- id: build
run: cd builddir && make
Expand Down
6 changes: 6 additions & 0 deletions Changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
v1.7.2: Shellebrations!
- [Build] Fix building without window mode enabled.
- [Config] Do not print out the 'theme' field in configuration on dump.
- [CI] test window mode less build.
- Allow configuration block in theme again.

v1.7.1: Turtley amazing!
- [Theme] Fix highlight with only theme.
- Updated documentation and landing page (Thanks to RaZ0rr-Two)
Expand Down
3 changes: 2 additions & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,8 @@ EXTRA_DIST += \
doc/rofi-script.5.markdown \
doc/rofi-theme-selector.1.markdown \
doc/rofi-sensible-terminal.1.markdown \
doc/rofi.1.markdown
doc/rofi.1.markdown\
README.md

###
# Themes
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AC_INIT([rofi], [1.7.1], [https://github.com/davatorium/rofi/],[],[https://reddit.com/r/qtools/])
AC_INIT([rofi], [1.7.2], [https://github.com/davatorium/rofi/],[],[https://reddit.com/r/qtools/])

AC_CONFIG_SRCDIR([source/rofi.c])
AC_CONFIG_HEADER([config.h])
Expand Down
1 change: 0 additions & 1 deletion lexer/theme-lexer.l
Original file line number Diff line number Diff line change
Expand Up @@ -808,7 +808,6 @@ if ( queue == NULL ) {
}
<INITIAL>. {
yytext[yyleng-1] = '\0';
fprintf(stderr,"initial found: |%s|\n", yytext);
return T_ERROR;
}
<SECTION>. {
Expand Down
29 changes: 13 additions & 16 deletions lexer/theme-parser.y
Original file line number Diff line number Diff line change
Expand Up @@ -313,31 +313,21 @@ static ThemeColor hwb_to_rgb ( double h, double w, double b )
* First have the configuration blocks, then the theme.
*/
t_main
: t_configuration_list t_entry_list_included {
: t_entry_list_included {
// Dummy at this point.
if ( rofi_theme == NULL ) {
rofi_theme_reset();
}

rofi_theme_widget_add_properties ( rofi_theme, $2->properties );
for ( unsigned int i = 0; i < $2->num_widgets; i++ ) {
ThemeWidget *d = $2->widgets[i];
rofi_theme_widget_add_properties ( rofi_theme, $1->properties );
for ( unsigned int i = 0; i < $1->num_widgets; i++ ) {
ThemeWidget *d = $1->widgets[i];
rofi_theme_parse_merge_widgets(rofi_theme, d);
}
rofi_theme_free ( $2 );
rofi_theme_free ( $1 );
}
;

t_configuration_list:
%empty {
if ( rofi_configuration == NULL ) {
rofi_configuration = g_slice_new0 ( ThemeWidget );
rofi_configuration->name = g_strdup ( "Root" );
}
}
| t_configuration_list T_CONFIGURATION T_BOPEN t_config_property_list_optional T_BCLOSE {};


/**
* Small dummy object to make the prefix optional.
*/
Expand All @@ -359,8 +349,15 @@ t_entry_list {


t_entry_list:
%empty {
t_entry_list T_CONFIGURATION T_BOPEN t_config_property_list_optional T_BCLOSE {
$$ = $1;
}
|%empty {
$$ = g_slice_new0 ( ThemeWidget );
if ( rofi_configuration == NULL ) {
rofi_configuration = g_slice_new0 ( ThemeWidget );
rofi_configuration->name = g_strdup ( "Root" );
}
}
| t_entry_list t_name_prefix_optional t_entry_name_path_selectors T_BOPEN t_property_list_optional T_BCLOSE
{
Expand Down
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project('rofi', 'c',
version: '1.7.1+wayland1-dev',
version: '1.7.2+wayland1',
meson_version: '>=0.47.0',
license: [ 'MIT' ],
default_options: [
Expand Down
23 changes: 23 additions & 0 deletions releasenotes/1.7.2/release-1.7.2.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# 1.7.2: Shellebrations!

A quick in between release, a bug got fixed that caused configurations not working any more in theme files.
While this is the desired behaviour, this release reverts it to avoid breaking to many setups.

# Changelog

v1.7.2:
- [Build] Fix building without window mode enabled.
- [Config] Do not print out the 'theme' field in configuration on dump.
- [CI] test window mode less build.
- Allow configuration block in theme again.

# Thanks

Big thanks to everybody reporting issues.
Special thanks goes to:

* Iggy
* Quentin Glidic
* Danny Colin

Apologies if I mistyped or missed anybody.
6 changes: 5 additions & 1 deletion source/rofi.c
Original file line number Diff line number Diff line change
Expand Up @@ -976,7 +976,11 @@ int main(int argc, char *argv[]) {
TICK_N("Parsed theme");
}
// Parse command line for settings, independent of other -no-config.
config_parse_cmd_options();
if (list_of_error_msgs == NULL) {
// Only call this when there are no errors.
// This might clear existing errors.
config_parse_cmd_options();
}
TICK_N("Load cmd config ");

parse_keys_abe(bindings);
Expand Down
4 changes: 4 additions & 0 deletions source/xcb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1089,7 +1089,9 @@ static void main_loop_x11_event_handler_view(xcb_generic_event_t *event) {
case XCB_DESTROY_NOTIFY: {
xcb_window_t win = ((xcb_destroy_notify_event_t *)event)->window;
if (win != rofi_view_get_window()) {
#ifdef WINDOW_MODE
window_client_handle_signal(win, FALSE);
#endif
} else {
g_main_loop_quit(xcb->main_loop);
}
Expand All @@ -1098,7 +1100,9 @@ static void main_loop_x11_event_handler_view(xcb_generic_event_t *event) {
case XCB_CREATE_NOTIFY: {
xcb_window_t win = ((xcb_create_notify_event_t *)event)->window;
if (win != rofi_view_get_window()) {
#ifdef WINDOW_MODE
window_client_handle_signal(win, TRUE);
#endif
}
break;
}
Expand Down
Loading

0 comments on commit 0a0d833

Please sign in to comment.