Commit Graph

406 Commits

Author SHA1 Message Date
Scoopta
a8312f64f2 Backed out changeset a574c2d2ebab, this causes the size to always be calculated using the primary monitor(monitor at 0,0) and not the actual monitor in use 2020-05-12 15:21:13 -07:00
Scoopta
b92250455a Added img-noscale 2020-05-12 13:58:18 -07:00
Scoopta
6019f46199 Added more padding to the height when --lines is used 2020-05-10 20:57:32 -07:00
Scoopta
eac302cd2b Added FreeBSD package to the package list 2020-05-09 15:44:28 -07:00
Scoopta
6db85c1dd2 The GError is now always freed if it's non-null 2020-05-09 13:20:19 -07:00
Scoopta
cb02aeee63 Added support for purism virtual keyboards 2020-05-09 13:16:53 -07:00
Scoopta
13b3c28c19 Removed unneeded semicolons 2020-05-08 18:34:23 -07:00
Scoopta
fdf1c5572d 65536 widgets is totally atainable in some crazy dmenu setups 2020-05-08 14:53:44 -07:00
Scoopta
323487d1bb Not sure what that code was for, probably --lines early on and then it never got removed 2020-05-08 14:53:08 -07:00
Scoopta
1266717492 Added 1px to the total size to get rid of the slightly undersized window when using --lines 2020-05-08 14:24:51 -07:00
Scoopta
e0337b5b7a select_item() now checks for expanders 2020-05-08 14:18:39 -07:00
Scoopta
4a9733114b Added documentation about the control and shift modifiers in run mode 2020-05-07 15:36:01 -07:00
Jerry Chanut
1649fb95e1 Fix terminal exec parameter when running command in a terminal as all terminals using the option '-e' by convention 2020-05-05 22:38:01 +02:00
Brian Daniels
8d1075eb2c Use the browse selection mode to ensure there is alway an item selected.
It was possible to deselect items when using a touch screen. This is done
by tapping on an item that's already selected. This would cause a segfault
in the select_item() function of src/wofi.c since
gtk_flow_box_get_selected_children() would return NULL in this case. By
setting the selection mode to GTK_SELECTION_BROWSE, we avoid this case
by ensuring an item is always selected.
2020-04-25 12:09:17 -04:00
Scoopta
17e43f2338 The contents of the entry boxes are now flagged as selected when selected 2020-04-24 22:41:49 -07:00
Jonas Witschel
023fe67c5b Fix double free when both allow_markup and parse_search are enabled
If out is not initialised, GLib will attempt to free the string automagically
later, leading to a crash. To reproduce, try running

wofi --define parse_search=true --define allow_markup=true --show dmenu,drun
2020-04-23 14:44:02 +02:00
lbonn
de40550d2f Hide the small window before percent resizing 2020-04-22 11:22:23 +02:00
Scoopta
443b729de5 Sorting will now fallback to basic sort order if the fancy sorts are identical 2020-04-10 22:12:43 -07:00
Scoopta
6ce49cd43d Fixed use after free 2020-04-10 21:55:03 -07:00
Scoopta
7308465f26 Added support for multiple key binds to a single action 2020-04-10 21:50:48 -07:00
Scoopta
6db2a2260d Added support for alt as a modifier key 2020-04-06 15:35:22 -07:00
Scoopta
f8e1c779cc Added key_hide_search 2020-04-06 15:17:12 -07:00
Scoopta
98fe587316 Fixed expanders not shrinking back to their original size 2020-04-06 15:00:14 -07:00
Scoopta
c3ca5e027d Added key_expand 2020-04-06 14:41:12 -07:00
Scoopta
a32fa82b12 Added alacritty to the default terminal list 2020-04-02 22:57:46 -07:00
Scoopta
c85bb48ba7 Updated README to add the new arch package 2020-04-02 15:53:49 -07:00
Scoopta
29aeffd8c1 Cleaned up includes, they were a bit of a mess 2020-03-25 23:05:46 -07:00
Scoopta
f61ec70797 Moved code to get $XDG_DATA_DIRS and $XDG_DATA_HOME to separate functions 2020-03-24 18:54:44 -07:00
Scoopta
efca41d41a $XDG_DATA_HOME/applications now gets priority over cache 2020-03-24 18:37:23 -07:00
Scoopta
c56be00336 drun: Removed cached map 2020-03-24 14:50:28 -07:00
Jan Beich
2c20a6bda4 Explicitly set C standard for old compilers
../src/config.c: In function 'config_put':
../src/config.c:24: error: 'for' loop initial declaration used outside C99 mode
../src/config.c: In function 'config_get_mnemonic':
../src/config.c:82: error: 'for' loop initial declaration used outside C99 mode
../src/utils.c: In function 'utils_concat':
../src/utils.c:37: error: 'for' loop initial declaration used outside C99 mode
../src/utils.c:44: error: redefinition of 'count'
../src/utils.c:37: error: previous definition of 'count' was here
../src/utils.c:44: error: 'for' loop initial declaration used outside C99 mode
../src/utils.c: In function 'utils_distance':
../src/utils.c:75: error: 'for' loop initial declaration used outside C99 mode
../src/utils.c:78: error: redefinition of 'count'
../src/utils.c:75: error: previous definition of 'count' was here
../src/utils.c:78: error: 'for' loop initial declaration used outside C99 mode
../src/utils.c:83: error: 'for' loop initial declaration used outside C99 mode
../src/utils.c:84: error: 'for' loop initial declaration used outside C99 mode
../modes/drun.c: In function 'get_search_text':
../modes/drun.c:85: error: 'for' loop initial declaration used outside C99 mode
../modes/drun.c: In function 'get_action_text':
../modes/drun.c:132: error: 'for' loop initial declaration used outside C99 mode
../modes/drun.c: In function 'get_action_actions':
../modes/drun.c:152: error: 'for' loop initial declaration used outside C99 mode
../modes/drun.c: In function 'insert_dir':
../modes/drun.c:218: error: 'for' loop initial declaration used outside C99 mode
../modes/drun.c: In function 'wofi_drun_init':
../modes/drun.c:267: error: 'for' loop initial declaration used outside C99 mode
../src/main.c: In function 'wofi_load_css':
../src/main.c:112: error: 'for' loop initial declaration used outside C99 mode
../src/wofi.c: In function '_insert_widget':
../src/wofi.c:468: error: 'for' loop initial declaration used outside C99 mode
../src/wofi.c:487: error: 'for' loop initial declaration used outside C99 mode
../src/wofi.c:509: error: redefinition of 'count'
../src/wofi.c:487: error: previous definition of 'count' was here
../src/wofi.c:509: error: 'for' loop initial declaration used outside C99 mode
../src/wofi.c:514: error: redefinition of 'count'
../src/wofi.c:509: error: previous definition of 'count' was here
../src/wofi.c:514: error: 'for' loop initial declaration used outside C99 mode
../src/wofi.c: In function 'escape_lf':
../src/wofi.c:541: error: 'for' loop initial declaration used outside C99 mode
../src/wofi.c: In function 'remove_escapes':
../src/wofi.c:561: error: 'for' loop initial declaration used outside C99 mode
../src/wofi.c: In function 'wofi_create_widget':
../src/wofi.c:739: error: 'for' loop initial declaration used outside C99 mode
../src/wofi.c:745: error: redefinition of 'count'
../src/wofi.c:739: error: previous definition of 'count' was here
../src/wofi.c:745: error: 'for' loop initial declaration used outside C99 mode
../src/wofi.c: In function 'wofi_term_run':
../src/wofi.c:784: error: 'for' loop initial declaration used outside C99 mode
../src/wofi.c: In function 'fuzzy_sort':
../src/wofi.c:856: error: 'for' loop initial declaration used outside C99 mode
../src/wofi.c:862: error: redefinition of 'count'
../src/wofi.c:856: error: previous definition of 'count' was here
../src/wofi.c:862: error: 'for' loop initial declaration used outside C99 mode
../src/wofi.c:868: error: redefinition of 'count'
../src/wofi.c:862: error: previous definition of 'count' was here
../src/wofi.c:868: error: 'for' loop initial declaration used outside C99 mode
../src/wofi.c: In function 'move_pgup':
../src/wofi.c:1026: error: 'for' loop initial declaration used outside C99 mode
../src/wofi.c: In function 'move_pgdn':
../src/wofi.c:1033: error: 'for' loop initial declaration used outside C99 mode
../src/wofi.c: In function 'load_mode':
../src/wofi.c:1244: error: 'for' loop initial declaration used outside C99 mode
2020-03-24 13:11:51 -07:00
Scoopta
874eafb27f Added documentation about the format of mode specific config options to wofi(7) in addition to the info in wofi(5) 2020-03-17 14:26:47 -07:00
Scoopta
0b5ad3499d Added an error if an image cannot be loaded instead of letting gdk-pixbuf error. 2020-03-17 14:21:10 -07:00
Scoopta
50719af3dd !wl_list_empty() is now used instead of wl_list_length() > 0 2020-03-13 21:58:54 -07:00
Scoopta
4f4b85eee6 The name of the mode and the name used for loading can now be different, this fixes some segfaults 2020-03-13 18:56:39 -07:00
Scoopta
8d4a9e22b2 Added the load() plugin function 2020-03-13 17:08:35 -07:00
Scoopta
60502adf83 Added documentation about wofi_get_dso_path() 2020-03-13 13:26:16 -07:00
Scoopta
8e8bd632c5 Added wofi_get_dso_path() 2020-03-13 13:00:59 -07:00
Scoopta
b182442f7a The full DSO name no longer needs to be specified to load an external mode 2020-03-13 12:30:00 -07:00
Scoopta
b2e879cc88 mode is not set to _mode but rather mode_ptr->name which is a copy of _mode 2020-03-13 12:27:26 -07:00
Scoopta
c42ec7676d The width of entries is no longer set by widget_allocate() 2020-03-12 17:09:45 -07:00
Scoopta
3e64b23847 Added page up/down support 2020-03-11 18:27:44 -07:00
Scoopta
b172590829 Renamed the locations enum to location 2020-03-11 17:44:08 -07:00
Scoopta
4f85609ae0 Updated the fedora package info in the readme 2020-03-09 23:08:03 -07:00
Scoopta
ac3fc9034c Added a screenshot 2020-03-09 22:53:05 -07:00
Scoopta
5625646da6 Merged v1.1.2 into default 2020-03-09 22:42:35 -07:00
Scoopta
56ec7c524f Added tag v1.1.2 for changeset 96d47bb081be 2020-03-09 22:37:41 -07:00
Scoopta
1dd640e283 v1.1.2: fixed typos in man pages 2020-03-09 22:37:36 -07:00
Scoopta
e9cbf88be4 Wofi properly shuts down if its window is closed in normal window mode 2020-03-09 14:27:07 -07:00
Scoopta
107eb5dd94 Removed threads from the dependencies 2020-03-08 23:33:15 -07:00