Commit graph

1531 commits

Author SHA1 Message Date
Dave Davenport
8ef7b4b794 Don't recreate every string everytime. 2017-02-03 20:49:16 +01:00
Dave Davenport
2fe22cb7e2 Return to default border when nothing set after state update 2017-02-03 15:44:52 +01:00
Dave Davenport
8f4a4d51c6 Don't apply fonts that don't result in family name or have size 0.
Issue: 554
2017-02-03 09:54:18 +01:00
Dave Davenport
42a1eba275 Remove the extra layer each textbox keeps for drawing its text. (#553) 2017-02-02 20:31:47 +01:00
Dave Davenport
8392b207a9 Enable lazy-grab by default. 2017-02-02 19:00:45 +01:00
Dave Davenport
601a20aba5 Speedup drun by 10% by reducing number of reallocs. 2017-02-02 08:36:55 +01:00
Dave Davenport
cc0ab10833 Fix malloc in textbox 2017-02-02 08:36:55 +01:00
Dave Davenport
1ee67e8bba Always set size, to work better in floating window manager in normal window mode 2017-02-01 21:17:45 +01:00
Dave Davenport
f10b879cac Async pre-read 25 entries by default, to make it feel more snappy. Fixes #550 2017-02-01 21:07:40 +01:00
Dave Davenport
8e64885c55 Set default language on pango context. 2017-02-01 08:47:43 +01:00
Dave Davenport
cbea7e3337 Add more debug output to timing on creating window 2017-01-31 17:58:23 +01:00
Dave Davenport
954288ab81 Give overlay widget a parent, queue widget redraw on enable/disable 2017-01-31 08:09:55 +01:00
Dave Davenport
714b5968d5 Allow user to set number of rows to pre-read async. 2017-01-30 17:15:34 +01:00
Dave Davenport
c9d16d2eda Only pre-process input once. 2017-01-30 08:23:57 +01:00
Dave Davenport
0a31175da5 If no filter specified, match everything with default matcher 2017-01-30 08:23:33 +01:00
Dave Davenport
6a01c9c9f8 Set WM_CLASS. Fixes #549 2017-01-29 21:29:26 +01:00
Moritz Maxeiner
6b9dc1d081 Combi mode: Bang mode prefixes with len>1 (#542)
* Combi mode: Bang mode prefixes with len>1

This is required to match on modes that share a prefix.
Let 'power' and 'pass' be such modes for the following explanation:
Previously, only the first character of after the bang was compared,
so '!p' would always be matched to the 'pass' mode and there was no
way to limit selection in combi mode to the 'power' mode.
Now we can use prefixes of arbitrary length following the bang
such as '!po' (matches 'power' mode), or '!pa' (matches 'pass' mode).
Prefixes of length 1 are unchanged compared to the previous
behaviour, i.e. '!p' will still match 'pass'.

* Combi-mode prefixes should be utf-8 aware
2017-01-26 19:46:46 +01:00
Dave Davenport
b63e417e38 Add configurable fonts for testing. #544 2017-01-24 08:40:37 +01:00
Dave Davenport
46db427735 Update DPI detection method. 2017-01-22 14:58:59 +01:00
Dave Davenport
2306e58a25 Output detected DPI to debug system. 2017-01-21 13:05:57 +01:00
Dave Davenport
0ebd6a260b Add auto-detect option to DPI setting. 2017-01-21 12:58:52 +01:00
Dave Davenport
be9ae4490c Don't release keyboard on FOCUS-out event.. for some reason we do not always get focus-in event 2017-01-19 19:12:28 +01:00
Dave Davenport
13a83e3495 Give a visible (popup) error message when failed to open theme 2017-01-19 18:49:55 +01:00
Dave Davenport
b5d094fa35 Update theme specifcation documentation. 2017-01-18 09:43:58 +01:00
Dave Davenport
253724c85c Ignore empty path.
Not in spec. but lets ignore it.

Fix: #539
2017-01-17 20:00:00 +01:00
Dave Davenport
30f7846e4c Give error when multiple (non-modifier) keys are hit. 2017-01-15 21:14:43 +01:00
Dave Davenport
63d8bfb071 Updates 2017-01-11 23:19:29 +01:00
Dave Davenport
d8ca3e01de fzf matching remove debug 2017-01-11 09:43:24 +01:00
Dave Davenport
19b023b221 Split sorting option. one for sorting. One to force levenshtein. 2017-01-11 09:42:37 +01:00
Dave Davenport
4452b08288 Move fzf matcher into helper 2017-01-11 09:20:19 +01:00
Dave Davenport
56c787690f Move full algorithm in function. 2017-01-11 09:14:01 +01:00
Dave Davenport
bfae111579 Fix indenting and header commenting. 2017-01-11 09:11:19 +01:00
Fangrui Song
d1edf0dc08 Revise fuzzy finding algorithm for -matching fuzzy 2017-01-11 08:59:34 +01:00
Dave Davenport
17155867a1 Add a quick theme tutorial. 2017-01-10 11:20:38 +01:00
Dave Davenport
268b0fa3b0 Super-1..10 keybinding activates row 1..10.
Allowing fore quick switching to entry.
https://forum.qtools.org/t/select-entry-by-offset/84/5
2017-01-10 07:41:37 +01:00
Dave Davenport
a5d2db256e Clear theme memory on close, free temporary widget 2017-01-09 23:08:11 +01:00
Dave Davenport
cf1940f8cb Reset theme if parsing fails, so we don't display using 1/2 parsed theme 2017-01-09 23:01:09 +01:00
Dave Davenport
25dff63006 Improve error handling string. 2017-01-09 22:40:11 +01:00
Dave Davenport
ca01af6338 Try to improve error handling and messages 2017-01-09 22:29:31 +01:00
Dave Davenport
854aa55453 Better error reporting (1) 2017-01-09 18:32:26 +01:00
Dave Davenport
a199fa3275 Improve error message theme a little bit 2017-01-09 08:55:51 +01:00
Dave Davenport
5188e36147 Remove unused functions and other small fixes 2017-01-09 08:39:02 +01:00
Dave Davenport
f42e4ffbd7 Remove old cairo color set functions 2017-01-09 08:32:16 +01:00
Dave Davenport
78916c6a94 Give up and quit rofi after failed to grab keyboard in <5 sec. 2017-01-09 08:17:16 +01:00
Dave Davenport
713d41f619 Allow matching highlighting to be set. Fixes #522 2017-01-09 00:09:02 +01:00
Dave Davenport
baab2047ad Indent magic, rework makefile so lexer and yacc file are not passed. 2017-01-08 21:36:06 +01:00
Dave Davenport
8c0c43952d Make 'text' override foreground color for rendering text 2017-01-08 20:39:37 +01:00
Dave Davenport
35a9b04f87 Print position as textual in dump-theme. 2017-01-08 18:03:31 +01:00
Dave Davenport
5d1fa66c30 Fix dumping of theme 2017-01-08 17:50:42 +01:00
Dave Davenport
97d96fdabd Add fullscreen option to theme 2017-01-08 17:38:21 +01:00
Dave Davenport
26efbecbc3 Fix multiple -theme-str lines parsing, fix num lines 2017-01-08 17:18:49 +01:00
Dave Davenport
ce2cf6b2d9 Make error dialog widget layout match normal one 2017-01-08 16:49:46 +01:00
Dave Davenport
8543ac8438 Fix doxygen. 2017-01-08 16:23:17 +01:00
Dave Davenport
c57e7348d2 Add some better error message. Allow -theme-str option to override part of theme 2017-01-08 16:09:24 +01:00
Dave Davenport
8124cfb023 Merge remote-tracking branch 'origin/master' into themer 2017-01-07 10:38:47 +01:00
Dave Davenport
c98b67ed0d Make lazy-key-grab an option, add --release for i3 to manpage. 2017-01-07 10:35:36 +01:00
Dave Davenport
361d5c62d7 Draw scrollbar when list is empty. 2017-01-06 22:12:24 +01:00
Dave Davenport
02dafeeccc Fix percentual margin. 2017-01-06 20:36:06 +01:00
Dave Davenport
06c5f51e7d Allow to set anchor position on normitor and anchor position on window. 2017-01-06 19:04:25 +01:00
Dave Davenport
8bc1831d17 Allow window width to be set in theme 2017-01-06 17:21:21 +01:00
Dave Davenport
9aaf21cd85 Fix theme converter and check. 2017-01-06 16:53:21 +01:00
Dave Davenport
af8a6541a2 Order entries in box based on index, allow theme to override. 2017-01-06 16:41:23 +01:00
Dave Davenport
5078034672 Add scrollbar 'handle-width' and 'handle-color' remove old syntax 2017-01-06 15:36:06 +01:00
Dave Davenport
52f4f32d89 Listview: hide widget when no row is visible and dynamic is enabled. 2017-01-06 13:42:00 +01:00
Dave Davenport
0e037237f8 Only queue redraw when state actually changes 2017-01-06 13:26:26 +01:00
Dave Davenport
f45e910a1b Q'nD: Update border and force redraw on state change 2017-01-06 13:24:35 +01:00
Dave Davenport
7e13bd8658 Quick 'n Dirty work around for handle color in scrollbar. 2017-01-06 13:13:03 +01:00
Dave Davenport
add0e2f801 Merge remote-tracking branch 'origin/master' into themer 2017-01-06 11:07:14 +01:00
Dave Davenport
051be0cfe6 Change keyboard grabbing behaviour, if you fail, continue running and try in background to get them. 2017-01-06 11:00:27 +01:00
Dave Davenport
a02de2c410 Textbox take height set, when bigger then desired in autowidth mode 2017-01-05 22:56:32 +01:00
Dave Davenport
f2a4049991 Remove separator 2017-01-05 22:07:50 +01:00
Dave Davenport
3eb450c37e Add generic container (renamed window widget) put container around message. 2017-01-05 18:33:57 +01:00
Dave Davenport
e6a6d5f894 Fix printing of link element. 2017-01-05 18:23:27 +01:00
Dave Davenport
4cc21b93a5 Allow linking to top level properties. 2017-01-05 18:22:34 +01:00
Dave Davenport
a4bab4654a Scrollbarwidth is a Distance. 2017-01-04 23:14:43 +01:00
Dave Davenport
b8ff85adb6 Improve exporting of theme. 2017-01-04 23:11:25 +01:00
Dave Davenport
5d70985bb9 Reset line style, reset state after drawing border. 2017-01-04 22:46:46 +01:00
Dave Davenport
9dd3cb312e Support linestyle on border 2017-01-04 22:27:27 +01:00
Dave Davenport
b618cd63d8 Fix transparency in theme converter.
Implicitely convert P_INTEGER to P_PADDING if asked for a padding.
2017-01-04 15:18:12 +01:00
Dave Davenport
85a0e1a57e Remove class system from new theme format. Fix theme converter. 2017-01-04 15:05:39 +01:00
Dave Davenport
645fe24890 Add debug output to themer that indicates unset properties. 2017-01-04 14:01:28 +01:00
Dave Davenport
44581fd90b Allow packing order to be set using theme. 2017-01-04 13:34:02 +01:00
Dave Davenport
8bbf1b36d5 Don't draw widget when size is 0 or less. 2017-01-04 10:47:37 +01:00
Dave Davenport
8f6a323ed6 Merge remote-tracking branch 'origin/master' into themer 2017-01-04 10:39:50 +01:00
Dave Davenport
129d96928a Quick when failed to grab keyboard. #524 2017-01-04 10:37:05 +01:00
Dave Davenport
6305bbbf39 Fix border with margin. take 2. 2017-01-04 00:36:33 +01:00
Dave Davenport
c96e95c766 Hopefully fix border with margin setting 2017-01-04 00:06:13 +01:00
Dave Davenport
495dfb4c20 Add support for margin. 2017-01-03 23:51:15 +01:00
Dave Davenport
953e260511 When order is reversed. reverse listview order fix #523 2017-01-03 20:33:30 +01:00
Dave Davenport
3f8c5378c4 Reverse scrollbar when listview is reversed. 2017-01-03 20:28:19 +01:00
Dave Davenport
a836346968 Allow listview to be reversed in order.
Issue: #523
2017-01-03 20:22:29 +01:00
Dave Davenport
f9fc01b176 Add percentage option to border,padding 2017-01-03 19:23:09 +01:00
Dave Davenport
7600668bff Update window copyright 2017-01-03 18:06:21 +01:00
Dave Davenport
9f294437f0 Merge remote-tracking branch 'origin/master' into themer 2017-01-03 18:02:51 +01:00
Dave Davenport
4f4770ee4f Fix wrong sed replace. 2017-01-03 18:02:21 +01:00
Dave Davenport
8163204320 Merge remote-tracking branch 'origin/master' into themer 2017-01-03 18:00:12 +01:00
Dave Davenport
22e2d7587d Update copyright to 2017. 2017-01-03 17:59:28 +01:00
Dave Davenport
3435599939 Allow for different color handle 2017-01-03 16:05:00 +01:00
Dave Davenport
b60ca07f1f Remove border-width property from window. 2017-01-03 15:57:40 +01:00
Dave Davenport
861b52a523 Add support for borders around widgets. 2017-01-03 15:39:19 +01:00
Dave Davenport
e982a439fb Fix spacing in listview and box. 2017-01-03 14:25:24 +01:00
Dave Davenport
30726b6c6e Fix pasting of multi-line clipboard.
Previous newline removal only removed trailing newline.
2017-01-03 12:20:21 +01:00
Dave Davenport
0307a14984 Fix compile warning different architectures where long long unsigned != uint64_t 2017-01-03 12:19:52 +01:00
Dave Davenport
23e1bf9566 Resize widgets in width before determining initial height.
- Solves Rasi weird sizing issue.
2017-01-03 12:19:07 +01:00
Dave Davenport
f82129aab8 Box: static widget should get their desired height. 2017-01-03 12:18:11 +01:00
Dave Davenport
a41d6c4ab4 textbox, draw better cursor, fix desired height query.
- update layout before query.
 - Correct autoheight logic.
2017-01-03 12:17:17 +01:00
Dave Davenport
9c7b5fe7a9 Restructure for readability. no change 2017-01-03 00:59:37 +01:00
Dave Davenport
37d99378dd cleanup some of sizing logic. 2017-01-02 21:19:27 +01:00
Dave Davenport
df74540624 Fix crasher in error message. update reference output. 2017-01-01 19:33:16 +01:00
Dave Davenport
47aa7c4900 Fix errors in doxygen comments 2017-01-01 18:40:49 +01:00
Dave Davenport
ccf3f23d9b Update comments, rename Widget to ThemeWidget. 2017-01-01 18:08:49 +01:00
Dave Davenport
d20587da54 Fix? tests 2017-01-01 16:32:01 +01:00
Dave Davenport
7d16d1a552 Slowly move more settings to the configuration convert. 2017-01-01 15:39:02 +01:00
Dave Davenport
44534653bf Remove border from ViewState 2017-01-01 12:16:04 +01:00
Dave Davenport
5c547393b8 Repaint (if) needed before flipping xcb_copy_area 2017-01-01 02:57:04 +01:00
Dave Davenport
0a8bdb6a98 Always queue a redraw on a resize event. 2017-01-01 02:27:51 +01:00
Dave Davenport
f43bf3dc6a On textbox update tell it to update parent. 2017-01-01 02:00:54 +01:00
Dave Davenport
d35e70d817 Support converting old theme internally, add first option to dump theme 2017-01-01 01:06:38 +01:00
Dave Davenport
05871703d5 Fall back to old style padding (with int) if no metric specified. 2016-12-31 23:34:48 +01:00
Dave Davenport
fb2d8b37a6 Fall back to integer setting for distance 2016-12-31 23:30:57 +01:00
Dave Davenport
7b0e0643c8 Make spacing be of type distance. 2016-12-31 23:27:17 +01:00
Dave Davenport
52e850dc33 Fix EM support, use char height 2016-12-31 23:00:06 +01:00
Dave Davenport
068592414e Support em format in padding 2016-12-31 22:47:22 +01:00
Dave Davenport
5f424fa598 Padding should be specified in px now and 4 borders can be specified on
one pixel line.
2016-12-31 21:37:19 +01:00
Dave Davenport
2bfbb464e6 Fix more sizing issues 2016-12-30 19:59:45 +01:00
Dave Davenport
eafd4697a2 Fix some of the sizing issues. 2016-12-30 18:31:30 +01:00
Dave Davenport
04ad719c01 Merge remote-tracking branch 'origin/master' into themer 2016-12-30 17:34:58 +01:00
Dave Davenport
6e55cb86b9 Work-around for detecting end of file, hopefully fixing #518. 2016-12-30 17:33:24 +01:00
Dave Davenport
eda70f337a Remove debug output. 2016-12-29 22:11:02 +01:00
Dave Davenport
c0e6e7c555 Redraw the window, if it moves 2016-12-29 22:06:31 +01:00
Dave Davenport
b0a8edc95a Fix resizing normal-window mode. 2016-12-29 21:58:32 +01:00
Dave Davenport
5183c14b51 textbox use padding accessors 2016-12-29 17:31:37 +01:00
Dave Davenport
aa5b7a7ff8 box use padding accessors 2016-12-29 17:25:28 +01:00
Dave Davenport
530eee0bf6 scrollbar use padding accessors 2016-12-29 17:25:09 +01:00
Dave Davenport
a966cd158d separator use padding accessors 2016-12-29 17:09:22 +01:00
Dave Davenport
eec772d01d listview use padding accessors 2016-12-29 17:04:16 +01:00
Dave Davenport
a2001d1b9c Add window widget, play with logic for sizing (broken) 2016-12-28 19:42:14 +01:00
Dave Davenport
2db879e979 Fix clicking 2016-12-28 14:23:43 +01:00
Dave Davenport
91baac3968 Fix desired size of listview, tweak textbox rendering 2016-12-28 14:10:27 +01:00
Dave Davenport
d63b9cb15e Padding to textbox. remove config.line_padding 2016-12-28 13:46:53 +01:00
Dave Davenport
5dfddf8840 Support padding in listview 2016-12-28 13:17:02 +01:00
Dave Davenport
77fdb08169 Allow padding on scrollbar 2016-12-28 12:57:58 +01:00
Dave Davenport
843ccc1e41 Update drawing, background per widget. 2016-12-28 12:21:42 +01:00
Dave Davenport
dfc8a31126 Redo some of the redrawing methods, better padding support 2016-12-28 00:37:32 +01:00
Dave Davenport
1c611b0eec First start at adding 4 sided padding 2016-12-27 22:19:15 +01:00
Dave Davenport
c5439118a7 Merge remote-tracking branch 'origin/master' into themer 2016-12-27 10:49:27 +01:00
Dave Davenport
0865e0f9d4 Directly queue a redraw on overlay change. 2016-12-26 20:57:33 +01:00
Dave Davenport
aa08c8ea78 Make workspace name also searchable 2016-12-26 16:23:55 +01:00
Dave Davenport
9cc048e48e Merge remote-tracking branch 'origin/master' into themer 2016-12-26 16:04:19 +01:00
Dave Davenport
ee310c8470 Strip pango markup from workspace names when detecting I3.
Thanks I3 for this crap.

Issue: #507
2016-12-26 15:58:51 +01:00
Dave Davenport
5a638b1fa0 Search categories when searching Desktop Files.
Issue: #499
2016-12-26 15:18:52 +01:00
Dave Davenport
a0bab0e99a Merge remote-tracking branch 'origin/master' into themer 2016-12-26 13:10:19 +01:00
Dave Davenport
3be5791fb2 Use clipboard atom instead of XCB_ATOM_SECONDARY for pasting.
Should fix issue: #516
2016-12-24 14:13:31 +01:00
Dave Davenport
68b0502220 Merge remote-tracking branch 'origin/master' into themer 2016-12-20 19:34:24 +01:00
Dave Davenport
74a1d0313a Force all three properties of scrollbar to be in sync 2016-12-20 19:29:46 +01:00
Dave Davenport
cd529acd9a Fix typo in resolving theme element. 2016-12-20 10:27:23 +01:00
Dave Davenport
8793475501 Fix and document resolving. 2016-12-20 09:17:19 +01:00
Dave Davenport
9c6019d3d0 Allow theme to set background. 2016-12-19 17:49:52 +01:00
Dave Davenport
7fa4c164ab Merge remote-tracking branch 'origin/master' into themer 2016-12-19 17:35:24 +01:00
Dave Davenport
5b1b8d4d05 Destroy the lexer after parsing 2016-12-19 15:50:35 +01:00
Dave Davenport
d8b877147c Fix cleanup lexer, add properties to theme documentation. 2016-12-19 08:10:33 +01:00
Dave Davenport
7d9ca64dd6 Merge branch 'master' of github:DaveDavenport/rofi 2016-12-17 17:58:29 +01:00
Dave Davenport
84508bdc1b Lower priority of loading data from dmenu, so drawing is not delayed 2016-12-17 17:56:54 +01:00
Dave Davenport
b8e58b0342 Make parser more flexible, allow global properties to be anywhere in file and allow multiple similar entries. 2016-12-16 09:28:13 +01:00
Dave Davenport
efd1e07755 Fix typo in theme name. 2016-12-15 09:46:42 +01:00
Dave Davenport
4858dad631 Merge remote-tracking branch 'origin/master' into themer 2016-12-15 09:17:55 +01:00
Dave Davenport
d7b5b9fbfa Fix some compile warnings 2016-12-15 09:17:39 +01:00
Dave Davenport
9b16f21ddc Remove extra newlines after log messages. 2016-12-15 09:09:14 +01:00
Dave Davenport
eef6fa6f95 Fix typo in widget class name. 2016-12-13 18:06:16 +01:00
Dave Davenport
38035568f3 Fix separator class and tweak parser inheritance. 2016-12-13 00:09:51 +01:00
Dave Davenport
fd64bb7a41 Improve lexer by adding support for modes. 2016-12-12 23:40:43 +01:00
Dave Davenport
be0677cf49 Update theme to new format.
- @class state {

}
- #name state {

}
2016-12-12 21:14:57 +01:00
Dave Davenport
c6030063c6 Keep track of location in parser 2016-12-12 16:55:31 +01:00
Dave Davenport
d6ec7b1de8 Cleanup, fix missing initializer. 2016-12-12 09:11:57 +01:00
Dave Davenport
6d9ce47974 Merge remote-tracking branch 'origin/master' into themer 2016-12-12 08:53:35 +01:00
Dave Davenport
47125daecf Reset user input on script selection.
Fixes: #513
2016-12-12 08:52:27 +01:00
Dave Davenport
6cca2b1ecd Remove debug output 2016-12-11 21:58:55 +01:00
Dave Davenport
95667e60d9 Add theme option to config system. 2016-12-11 18:06:35 +01:00
Dave Davenport
3b850f4472 Fix theme_name generator for textbox 2016-12-11 18:00:45 +01:00
Dave Davenport
a0096f52c4 Border width via new config system. 2016-12-11 17:13:26 +01:00
Dave Davenport
78abbeb710 Textbox uses new theme engine.. 2016-12-11 17:06:31 +01:00
Dave Davenport
5e371eedeb Change language parser to glr type, remove type prefix. 2016-12-11 14:08:28 +01:00
Dave Davenport
7ad0432d82 Set separator name 2016-12-11 12:55:09 +01:00
Dave Davenport
1dfac3c4da Update to new theme 2016-12-11 12:19:46 +01:00
Dave Davenport
5fd76b75b1 Add some color stuff 2016-12-10 19:48:44 +01:00
Dave Davenport
db248ea765 Merge remote-tracking branch 'origin/master' into themer 2016-12-10 18:34:30 +01:00
Dave Davenport
1879361250 Fix positioning of sidebar in the grand scheme of things. (this needs rewrite next release) 2016-12-10 18:27:36 +01:00
Dave Davenport
2d01d1566a Add some properties to themes 2016-12-09 22:16:31 +01:00
Dave Davenport
d18f037d1c Add lex/bison parser for theme. 2016-12-09 19:49:49 +01:00
Dave Davenport
ea28bcdc74 Use g_strsplit_set instead of strtok so we can run g_strsplit in place 2016-12-08 16:53:48 +01:00
Dave Davenport
3e3fb24ea5 Strip spaces from key-name (Issue: #511) 2016-12-06 19:30:53 +01:00
Dave Davenport
c759f248b4 Add configuration file location in -help output. 2016-12-06 19:24:17 +01:00
Dave Davenport
3f88ef0032 Issue: #38 remove delay (until next blink) when triggering on release (version 2.0) 2016-11-30 17:30:10 +01:00
Dave Davenport
c9b5667a3f Issue: #39 remove delay (until next blink) when triggering on release 2016-11-30 16:35:34 +01:00
Dave Davenport
2220b75467 Fix two issues detected by coverty. 1.) copy /paste error. 2.) dead code 2016-11-30 08:41:47 +01:00
Dave Davenport
4889b5f7bc Don't destroy the window, but send close request to window. 2016-11-29 16:09:26 +01:00
Dave Davenport
4f7e9b3811 Make resize look better. less flickering. 2016-11-29 11:20:52 +01:00
Dave Davenport
862c04ef61 Fix drawing order when widget is added at end. This simplifies bottom mode.
Fixes: #505
2016-11-27 16:02:37 +01:00
Dave Davenport
84baa94bfc Remove trailing whitespace from string options. 2016-11-26 17:29:42 +01:00
Dave Davenport
84f7ec2f0e Fuzzy matcher, take simple escaping into account when creating regex. 2016-11-26 17:18:38 +01:00
Dave Davenport
4f3c7f122e Fix check being the wrong way around. 2016-11-26 16:57:13 +01:00
Dave Davenport
80c7b3774e Fix compare add forum to links. 2016-11-25 21:47:28 +01:00
Dave Davenport
31115dd312 Print compile options (window, drun,timing, asan, gcov) in -help
Issue: #506
2016-11-25 20:00:27 +01:00
Dave Davenport
b1a44cc65e Update code documentation 2016-11-15 21:54:31 +01:00
Dave Davenport
7e74d39a01 Fix indentation 2016-11-15 08:24:27 +01:00
Dave Davenport
c86a28ca70 Small code restructure 2016-11-15 08:24:06 +01:00
Dave Davenport
a9dbd787cf Include in error mesg, what key failed to bind. 2016-11-14 18:42:41 +01:00
Dave Davenport
29cacd0e83 Try to improve parsing of Keybinding. Give more specific error of what failed.
+ Implementation is slower. but is one time, so should be fine.
2016-11-14 18:32:22 +01:00
Dave Davenport
d22920fd5e Backspace->BackSpace 2016-11-14 16:58:43 +01:00
Dave Davenport
62879ee739 Continue parsing when keybinding fail, only show errors after all are done. 2016-11-14 16:53:01 +01:00
Dave Davenport
d450d02ad6 For redraw when rofi_view_set_active is called. 2016-11-14 16:31:26 +01:00
Dave Davenport
fcf3c33415 Fix keybinding with Shift in name. Alt-Shift-S -> Alt-S. Alt-Shift-1 -> Alt-exclam
+ indent.
2016-11-14 16:25:04 +01:00
Dave Davenport
01751db4c0 Fix #498: Right count for unicode charaters in column code. 2016-11-14 12:39:37 +01:00
Dave Davenport
f0bc7e3185 Fix #485: Correctly remove consumed masks. 2016-11-14 08:28:54 +01:00
Dave Davenport
7cc90abceb [DMenu] Dump when there is an empty filter. 2016-11-13 23:15:13 +01:00
Dave Davenport
31a29e452b Fix #497: Create user runtime dir if not exists. 2016-11-12 11:36:39 +01:00
Dave Davenport
27cef3c9ae Fix #497: Create cache dir if not exists. 2016-11-12 11:28:40 +01:00
Dave Davenport
cd0fedd0db If no fake background failed to load, still paint a background. Add debug info. 2016-11-11 22:11:32 +01:00
Dave Davenport
1d40782515 Re-work the expose, redraw system. Use XServer side pixmaps to do drawing and flipping.
- By server side drawing and flipping buffer time to draw buffer to window speed up by factor 1000+.
   Flipping is now one xcb_copy_area call.
 - Don't abuse Xserver expose events to singal internal drawings.
 - Queue redraws in idle time.
 - Avoid unneeded redraws.
2016-11-11 16:29:59 +01:00
Dave Davenport
e3af1efaef Fix crash when clicked out of window. 2016-11-11 09:30:44 +01:00
Dave Davenport
0da5737cee If widget is disabled, don't check redraw flag as it wont be cleared.
This reduces a lot of false redraws caused by overlay widget.

Issue: #496
2016-11-10 12:17:27 +01:00
Dave Davenport
545be58e40 Issue #454 pass our window id along in the change active window request 2016-11-07 09:15:04 +01:00
Dave Davenport
90c314f397 Re-add column, but not for dmenu when prompt is set 2016-11-07 08:51:23 +01:00
Dave Davenport
da2e6a2cc4 Remove debug sleep 2016-11-06 16:55:41 +01:00
Dave Davenport
89e3e0e645 Grab keyboard as early as possible (#494) 2016-11-06 16:50:12 +01:00
Dave Davenport
0554db65ea Fix dmenu with -selected-row 2016-11-05 20:00:22 +01:00
Dave Davenport
ed6cb59b5d Fix crash on wrongly queued ViewState (thx to teto) 2016-11-02 18:24:20 +01:00
Dave Davenport
e72508b782 Remove opacity option. 2016-11-01 08:10:27 +01:00
Dave Davenport
4c5df96fcd Pull config option access from out of separator widget. 2016-11-01 08:04:39 +01:00
Dave Davenport
69c19afcfc [DRun] Fix free 2016-10-31 17:02:10 +01:00
Dave Davenport
3f577f917a Small re-indent 2016-10-31 15:51:47 +01:00
Dave Davenport
01e32c9c61 Cleanup some drun code, use hash table for seen check instead of two arrays 2016-10-31 08:44:04 +01:00
Dave Davenport
e3ab39ea6f add more details to timing log 2016-10-31 08:07:02 +01:00
Dave Davenport
f5f4f52957 Use strtok_r instead of strtok. 2016-10-30 10:14:32 +01:00
Dave Davenport
86b6beb1e9 Update some code. 2016-10-28 23:28:49 +02:00
Dave Davenport
3c8b757930 Remove auto : 2016-10-28 21:52:22 +02:00
Dave Davenport
c598791aa4 Indent 2016-10-28 18:57:12 +02:00
Dave Davenport
8e0ced2378 Remove commented code 2016-10-28 18:32:29 +02:00
Dave Davenport
217290479e Merge two functions that no longer have a reason to be split.
Fixes: #491
2016-10-28 08:51:53 +02:00
Dave Davenport
fb459e1660 Make scrollbar behave better 2016-10-26 08:24:34 +02:00
Dave Davenport
163934fa8c Simplify some code, more comments. (90% docu) 2016-10-25 22:45:11 +02:00
Dave Davenport
a38ac9caf3 Update scrollbar behaviour, so dragging is more natural. (limit range from hw/2 to h-hw/2) 2016-10-25 21:19:39 +02:00
Dave Davenport
440756af94 Option to disable/enable the highlighting of match. 2016-10-24 21:47:36 +02:00
Dave Davenport
b19ab62e17 add scrollbar test. 2016-10-24 17:48:04 +02:00
Dave Davenport
0ae0d50bbc Revert "Fix: #485 Remove used modifiers before figuring out keybinding."
This reverts commit 25c210b851.
2016-10-23 13:23:04 +02:00
Dave Davenport
25c210b851 Fix: #485 Remove used modifiers before figuring out keybinding. 2016-10-23 13:08:52 +02:00
Dave Davenport
d25ad4dac6 clang-check fix. 2016-10-22 21:34:19 +02:00
Dave Davenport
881056ea9b Add some more tests, make some textbox api's private 2016-10-20 09:41:32 +02:00
Dave Davenport
7b3b68462e Fix memory leak in box and listview widget, add coverage make target. (ggcov and lcov) 2016-10-18 13:49:24 +02:00
Dave Davenport
b622a98d9c Fix some coverty found issues. 2016-10-17 20:54:41 +02:00