Commit graph

1615 commits

Author SHA1 Message Date
Dave Davenport
ef4a171fca Put Xfwm4 on the WM list that needs extra desktop change.
Work-around that makes sure desktop gets switchs when setting active
window.

Fixes: #624
2017-07-05 21:30:29 +02:00
Dave Davenport
d82231d0df Correctly switch to other RofiViewState.
* Triggers when error message occurs on handling action.
 * Reproducable with broken drun file. (give a non-existing path)
2017-07-05 00:14:28 +02:00
Quentin Glidic
727e3dc51a meson: Actually define TIMINGS if needed (#621)
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-07-04 15:35:49 +02:00
Dave Davenport
c7e8776c78 Add try exec test (#620)
* Add try exec test

* [DRun] Free after g_find_program_in_path
2017-07-04 13:38:26 +02:00
Dave Davenport
1d881a37d4 Merge remote-tracking branch 'origin/master' into next 2017-07-03 09:28:44 +02:00
Dave Davenport
7e1c02b04c [OldTheme] Re-add the padding/bw option. 2017-07-03 09:23:03 +02:00
Dave Davenport
5f21ab80a8 Do not do an expand path on Exec field of desktop file. (#618)
Fixes: #617
2017-07-02 19:34:31 +02:00
Dave Davenport
3590b95046 Do not do an expand path on Exec field of desktop file.
Fixes: #617
2017-07-02 11:33:02 +02:00
Dave Davenport
fcd9878a3b [Config] Remove stray printf, add compiler hints. 2017-06-27 09:28:33 +02:00
Dave Davenport
193dfa16bc [Config] quick hack to support lists in rasi configuration{} block. 2017-06-27 09:15:55 +02:00
Dave Davenport
5eb9fad4e3 [Helper] Fix render return success, not fail. 2017-06-26 20:24:33 +02:00
Dave Davenport
cf7d0866d5 [Helper] Add basic error checking to svg loading code. 2017-06-26 20:16:20 +02:00
Dave Davenport
3556f65198 Update DPI value once auto-detected. 2017-06-26 20:14:51 +02:00
Dave Davenport
ee9f5f71c1 [TextBox] Remove dead (commented code) 2017-06-26 20:14:31 +02:00
Dave Davenport
03d6ac4de3 Run indenter. 2017-06-25 20:25:17 +02:00
Dave Davenport
ea4328b921 [DRun] Add a small thread-pool for fetching icons. 2017-06-25 20:24:26 +02:00
Quentin Glidic
b9097dc488
drun: Preload icon themes
This will allow multi-thread icon loading.

Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-25 20:12:35 +02:00
Dave Davenport
e28b038d62 Check user data dir when looking for theme.
- set default textbox color to black.
2017-06-22 08:54:29 +02:00
Quentin Glidic
8f8c43e50d
xcb: Support back some weird X11 feature
Namely, key redirects, that play with the modifiers state at the
KEY_PRESS level.

Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-22 08:35:21 +02:00
Dave Davenport
69d32164c9 Fix test building. 2017-06-21 19:18:57 +02:00
Dave Davenport
77a4d97262 Add -dump-config option. 2017-06-21 08:19:47 +02:00
Dave Davenport
9af191de26 Fix tests by splitting types name into separate file. 2017-06-20 21:02:13 +02:00
Dave Davenport
da00848416 Do better error reporting on configuration entries in rasi format. 2017-06-20 18:10:18 +02:00
Dave Davenport
8375fbb513 Support a config.rasi configuration file in the new format 2017-06-20 17:56:27 +02:00
Dave Davenport
22aacb8f94 Add extra check for rofi_theme_parse_prepare_file 2017-06-14 16:19:17 +02:00
Dave Davenport
c851134411 [X11Helper] Add extra debug output when determining target monitor. 2017-06-14 08:26:53 +02:00
Dave Davenport
8f035bf919 Add extra checks so widgets do not get added twice. 2017-06-14 07:54:20 +02:00
Dave Davenport
02ef2f41ef Extend list of printable properties names to include list and orientation. 2017-06-13 21:42:03 +02:00
Dave Davenport
a3c1ff7d94 [helper] Fix type issue with variadic function.
*
https://www.securecoding.cert.org/confluence/display/c/DCL11-C.+Understand+the+type+issues+associated+with+variadic+functions
2017-06-13 10:16:40 +02:00
Dave Davenport
1b3ce23b80 Add missing null statement for fallthrough 2017-06-12 08:53:16 +02:00
Dave Davenport
26d9da7263 Position the overlay in the top right corner of the listview. 2017-06-12 08:17:28 +02:00
Dave Davenport
c53e6cc20c Make the compiler STFU about desired fallthroughs.
* https://dzone.com/articles/implicit-fallthrough-in-gcc-7
2017-06-12 07:47:44 +02:00
Dave Davenport
f102ed7295 Center align sidebar buttons by default. 2017-06-11 19:23:18 +02:00
Quentin Glidic
19a2d37df3
gitmodules: Update libnkutils
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-11 18:39:26 +02:00
Dave Davenport
067544120f Make function declaration match function prototype.
- Extra NULL check.
2017-06-09 09:18:17 +02:00
Dave Davenport
ad91f9a124 [TextBox] Calculate yalign based on actual side, not estimated size. 2017-06-08 08:46:16 +02:00
Dave Davenport
47c7518656 Fix parsing old themes from rofi-themes repo. 2017-06-07 20:41:43 +02:00
Dave Davenport
9fe67c1822 [TextBox] Remove TB_LEFT/CENTER/RIGHT replace with xalign/yalign. 2017-06-07 20:16:14 +02:00
Quentin Glidic
726d940eca
drun: Use the requested icon size for lookup
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-07 12:49:20 +02:00
Quentin Glidic
9b3a60928f
drun: Re-remove the context limitations for icon lookup
Some applications use Devices, Status or even Actions icons.

Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-07 12:42:54 +02:00
Quentin Glidic
3067f67fd1
drun: Use Adwaita and gnome as fallback themes
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-07 12:41:09 +02:00
Dave Davenport
07076d154a Load theme-str after loading fallback themes.
* If no theme loaded, try converting old theme.
 * If still no theme loaded, try default theme.
 * Then load modifications (theme-str option)
2017-06-07 07:53:33 +02:00
Dave Davenport
d33edaf09d [View] Do not set rofi fullheight when num lines eq 0 2017-06-06 17:49:24 +02:00
Dave Davenport
2a18a46b24 [View] Update sidebar buttons when we have no prompt. 2017-06-06 09:40:56 +02:00
Dave Davenport
a399adfa38 [TextBox] Fix centering with large padding 2017-06-06 09:28:36 +02:00
Dave Davenport
27d1da76b1 [TextBox] Fix yalign for cursor and icon. 2017-06-06 09:09:57 +02:00
Dave Davenport
1efb4dab6c Fix rendering of icons with single font size. 2017-06-04 16:08:34 +02:00
Dave Davenport
e12cf40e54 Change Listview::barview to Listview::layout 2017-06-03 21:46:21 +02:00
Dave Davenport
c29f897d69 Don't inline function that uses alloca. 2017-06-03 21:40:14 +02:00
Dave Davenport
68641a2143 Add new keywords to theme printer 2017-06-03 20:45:16 +02:00