Commit Graph

210 Commits

Author SHA1 Message Date
mazunki
f89e3e56c6 fixed segfalt for drun, but drun still doesn't run pre-display-cmd 2021-11-09 16:47:12 +01:00
mazunki
82a98a81fa cleaned up some oopsies, more effs, and more linebreaks 2021-11-09 16:37:24 +01:00
mazunki
26c1897eda missing some effs in fprintf 2021-10-30 10:20:26 +02:00
mazunki
f8ddec11e8 we're moving back to create_label() to avoid potential unexistant nodes 2021-10-30 10:13:27 +02:00
mazunki
7956e253be fixed css doing the opposite check, writing errors to stderr, swapped !(==) for !=, fixed oopsies in manpage 2021-10-30 10:04:22 +02:00
mazunki
c597c088d6 added support for --pre-display-cmd / -r. also removed some compile-time warnings of unused variables by fact-checking runtime errors 2021-10-29 21:34:49 +02:00
Scoopta
dab17466a0 Fixed percentage based window sizing 2021-02-22 23:53:57 -08:00
Scoopta
6a14de6fd1 The return of g_dbus_proxy_call_sync() is only freed when error is not set 2021-02-19 21:00:40 -08:00
Scoopta
6da4859903 Fixed a memory leak when triggering the OSK 2021-02-19 20:59:39 -08:00
Scoopta
4c64259b3a Added the ability to copy the action text for the selected entry to your clipboard using wl-copy by default 2020-11-04 21:10:57 -08:00
Scoopta
ea9631678b Fixed wofi with new wlroots not allowing 0 width/height with unanchored surfaces 2020-10-10 18:04:04 -07:00
Scoopta
5a6118f097 The mode thread will not be joined multiple times as this causes segfaults under musl 2020-10-02 20:54:36 -07:00
Scoopta
952ec178f0 Fixed key_submit not properly working with multi-action entires 2020-08-27 19:18:42 -07:00
Scoopta
24a35e5022 gdk_display_get_default() is now called directly from inside of gdk_wayland_display_get_wl_display() 2020-08-11 19:07:49 -07:00
Scoopta
3c82c8ef9f wlr_layer is now initialized to ZWLR_LAYER_SHELL_V1_LAYER_TOP 2020-07-27 23:57:18 -07:00
Scoopta
3fcb32b2b5 data1 can be initialized to NULL 2020-07-27 23:55:33 -07:00
Scoopta
75155cca3e Did I finally make image escapes not an ugly mess...maybe...maybe but they're definitely better 2020-07-27 23:54:12 -07:00
Scoopta
592e427133 Added layer config option 2020-07-27 21:49:21 -07:00
Scoopta
3ab6a0d668 Added --monitor 2020-07-18 13:32:05 -07:00
Scoopta
e7672ff694 The img "escapes" should now correctly deal with HiDPI 2020-07-18 02:00:09 -07:00
Scoopta
da98a2d240 Added base64 image support 2020-07-11 17:39:09 -07:00
Scoopta
ad73f24c75 Renamed widget builder functions to be more consistent with the rest of wofi 2020-07-11 16:39:09 -07:00
Scoopta
1ed2445bd4 drun ported to the new widget builder API 2020-06-29 21:23:36 -07:00
Scoopta
1393306c26 Wofi now loads modes multi-threaded, this should decrease startup times 2020-06-23 00:33:57 -07:00
Scoopta
5c59d8317c Added widget builder API 2020-06-22 22:45:51 -07:00
Scoopta
2afc0b9809 Added dynamic_lines 2020-06-16 15:41:28 -07:00
Scoopta
18851d411e Added --search 2020-06-14 03:03:00 -07:00
Scoopta
b4b7d4be4e Fixed expanders not contracting when -w > 1 2020-06-14 01:24:37 -07:00
Scoopta
27ae55ad6c Moved the wofi_api.h include to wofi.h 2020-05-20 23:16:12 -07:00
Scoopta
bd9f49b963 Added wofi_get_window_scale() 2020-05-18 23:22:05 -07:00
Scoopta
61ef7b55b2 Wofi will now keep its percentage size even when moving between monitors 2020-05-18 20:16:57 -07:00
Scoopta
74a77c23b2 Fixed needing to press down twice to get to the second entry 2020-05-18 19:28:07 -07:00
Scoopta
18be7e2b9d Changed the check when doing a surface size update to check for the right thing shell != NULL 2020-05-15 17:36:45 -07:00
Scoopta
f2f7974b3d Being unable to connect to a wayland compositor will now cause a graceful exit, compositors which don't support wlr_layer_shell will now cause a switch to normal window mode 2020-05-15 17:32:39 -07:00
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
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
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
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