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
Dave Davenport
df26193096
Fix redrawing (call queue redraw, not need redraw) fix end of string check.
2016-10-17 20:54:02 +02:00
Dave Davenport
0e176199fc
Fix some possible null pointer dereference. (clang-check)
2016-10-17 18:21:03 +02:00
Dave Davenport
313dffa28d
Some comments
2016-10-16 19:38:33 +02:00
Dave Davenport
703426716a
[DRun] Fix parsing subdirectories because of wrong suffix check
2016-10-16 14:49:32 +02:00
Dave Davenport
cdb1b96414
Fix issue #482 : Set work directory
2016-10-15 20:00:26 +02:00
Dave Davenport
f0981d6697
Indenting, comments
2016-10-15 15:39:08 +02:00
Dave Davenport
9293c8b8ce
More docu updates
2016-10-14 18:56:09 +02:00
Dave Davenport
ce341f6885
Document more headers.
2016-10-14 16:46:54 +02:00
Dave Davenport
b4c599f022
Add more documentation.
...
Current state: 61% coverage.
2016-10-14 08:47:21 +02:00
Dave Davenport
eb5f169af0
Remove error check for large windows as it is incorrect often. Fix issue 468
2016-10-13 18:11:15 +02:00
Dave Davenport
f6755d8a18
Always fallback to mouse position when one of the -X options are choosen.
2016-10-13 18:09:03 +02:00
Dave Davenport
306eeac3fe
Add some NULL tests to widget test
2016-10-13 17:54:52 +02:00
Dave Davenport
1cd94c27c7
Update documentation, tests for widget
2016-10-13 09:22:08 +02:00
Dave Davenport
3aa1922aa6
Remove padding from input bar: Fix #479
2016-10-13 08:53:22 +02:00
Dave Davenport
cc3bb30a7b
Remove unneeded calls to tokenize.
2016-10-11 08:18:34 +02:00
Dave Davenport
07425fd10a
Always refilter when switching modi.
2016-10-11 08:11:14 +02:00
Dave Davenport
f3298801f3
Split internal widget into separate file
2016-10-09 10:13:15 +02:00
Dave Davenport
f10bc5004f
Make separator work in both directions ( hori/vert ).
2016-10-09 10:07:32 +02:00
Dave Davenport
3c64507f02
Qtk widgets ( #478 )
...
* Initial support for using boxes for packing widgets.
* Make CapiTalIzation more consistent
* Move widgets to subdirectory
* Removed nolonger needed resize function.
* Small cleanup
* When switching mode, reuse view, don't rebuild it. Reduces artifacts.
* Needs cleaning up.
* Remove separate prompt argument, use display_name
* Simplify run-switcher code.
* Add notion of parents, and trigger parent update on resize.
* Use widget_get_height wrapper, avoid crash
* Size separator width based on height. (indent)
* TODO add margin to box.
* First draft version of listview.
* Add scrollbar to listview widget
* Add padding option to box
* Move access to global config out of widget. (1/2 done)
* Remove printf
* Make listview not access global config
* Add click support, implement on mode buttons.
* Re-introduce mouse handling on list-view.
* TODO draggin on scrollbar.
* Fix multi-select
* Fix warnings
* Fix include
2016-10-08 18:57:59 +02:00
Dave Davenport
0da0587087
Make widget_free work on textbox and scrollbar, use widget specific free.
2016-09-27 22:38:26 +02:00
Dave Davenport
89acc7b6ed
Make one widget_draw function, abstract rest (textbox, scrollbar) behind it.
2016-09-27 22:15:39 +02:00
Dave Davenport
769dab5f66
When view centered, don't change x,y.
2016-09-26 18:19:29 +02:00
Dave Davenport
ca766b4ed7
Still parse commandline options when -no-config is passed.
2016-09-18 22:29:05 +02:00
Dave Davenport
6131329210
Fix for #467 , don't count border twice, take right line-margin into account.
2016-09-18 22:23:39 +02:00
Dave Davenport
acdb6bdf53
Fix fprintf.
2016-09-18 14:44:03 +02:00
Dave Davenport
5b843bd08b
Remove entry from history if fails to execute.
...
Issue: #466
2016-09-17 21:28:22 +02:00
Dave Davenport
050fd66c02
Force dmenu in sync mode to stop breaking old features that rely on this.
2016-09-17 19:41:24 +02:00
Dave Davenport
5ee5bb1e23
First rough version of async loading for dmenu.
2016-09-17 18:57:44 +02:00
Dave Davenport
6191662ccf
Fix indenting view.c.
2016-09-17 18:35:03 +02:00
Dave Davenport
3e272b2b00
Don't throw error when textbox gets input but is not editable.
2016-09-17 18:34:04 +02:00
Dave Davenport
d4d757a7c0
Allow for reloading of window content (10fps), needed for async transfer.
...
* Resize window to fit rows if not num-fixed-lines is set.
* If there is no entry to show, remove separator.
* Store size/pos per State.
2016-09-17 18:06:25 +02:00
Dave Davenport
cf70fbf709
Issue: #462 Do not blink on cursor move, text insert,remove.
2016-09-16 20:35:46 +02:00
Dave Davenport
05600368ff
Small cleanups.
...
Remove duplicate code to update window size, make error dialog use normal mainloop.
2016-09-16 20:28:59 +02:00
Ian Remmler
71f5f1ac54
Initialize mouse_seen. ( #461 )
...
* Add Ian Remmler to AUTHORS.
* Explicitly initialize mouse_seen.
2016-09-09 20:36:12 +02:00
Dave Davenport
c200709838
Fix wrong entry + CI.
2016-09-08 22:56:22 +02:00
Ian Remmler
91e2ecf212
Added click-to-exit option. ( #460 )
...
Exit if a mouse button is pressed and released outside of the rofi
window.
2016-09-08 22:42:41 +02:00
Dave Davenport
e3fb17a843
Ask window manager to hide decoration in normal-window mode.
...
Issue #485
2016-09-08 08:57:35 +02:00
Dave Davenport
43be4bd18f
Fix keyboard grab normal-window mode
2016-09-06 09:06:02 +02:00
Dave Davenport
926fbdb190
Release pointer too
2016-09-02 20:19:37 +02:00
Dave Davenport
4379f3be7c
Ctrl-click does alternate accept entry.
...
Fixes #429
2016-09-02 18:19:16 +02:00
Dave Davenport
b420db8d30
Another trow at #454
...
- Hide window, ungrab mouse.
- Flush, before switching window.
2016-09-02 09:38:51 +02:00
Dave Davenport
642cad350d
Remove pointless NULL check.
2016-09-02 09:32:32 +02:00
Dave Davenport
4a4769f0b4
Add debug and indent
2016-08-31 10:06:42 +02:00
Dave Davenport
4a95285212
Merge branch 'seletskiy-xinerama'
...
* Tweak some minor things.
2016-08-31 09:59:51 +02:00
Dave Davenport
3da2867506
Merge branch 'xinerama' of https://github.com/seletskiy/rofi into seletskiy-xinerama
2016-08-31 09:44:11 +02:00
Dave Davenport
56cc94195c
DRUN: Make name key required even when hidden. ( #453 )
2016-08-31 09:39:00 +02:00
Stanislav Seletskiy
a6207e473a
remove functions from .h, free memory, int to bool
2016-08-31 14:29:25 +07:00
Stanislav Seletskiy
05165a02f2
add xinerama support
2016-08-31 14:10:30 +07:00
Dave Davenport
21b35b3e3e
More debug, fix one off.
2016-08-30 21:56:51 +02:00
Dave Davenport
08319d6439
Keep a list of disabled Desktop files.
2016-08-30 21:49:46 +02:00
Dave Davenport
c099aaeabf
Add debug output.
2016-08-30 21:24:04 +02:00
Dave Davenport
5646adc34d
Add option to set padding within a line.
...
Fixes : #449
2016-08-30 18:07:34 +02:00
Dave Davenport
0d9d4d6c55
DRun Check if filename ends in .desktop.
2016-08-30 17:41:30 +02:00
Dave Davenport
ef509865fb
Add extra debug to DRun Desktop File parsing.
2016-08-30 08:52:02 +02:00
Dave Davenport
51eac318fd
Test #454 unmap window before switching.
2016-08-30 08:14:53 +02:00
Dave Davenport
e79361e890
Fix configure script a bit.
2016-08-29 21:38:29 +02:00
Dave Davenport
5cfe9a89b3
Improve DRun handling a bit.
...
- Remove entries that are deprecated or unsupported.
- Handle field codes %c and %k
TODO:
- Detect multiple identical field code entries and throw error.
2016-08-29 21:14:03 +02:00
Dave Davenport
1f641135e2
Extra checks when parsing file.
2016-08-29 08:55:28 +02:00
Dave Davenport
a90ff48032
But broken drun under a configure option.
2016-08-29 08:46:21 +02:00
Dave Davenport
58eaa81520
Name field in desktop file is required.
2016-08-29 08:23:55 +02:00
Dave Davenport
56c2d0dfb2
Disable drun mode as it is broken.
...
* Does not handle %[uf] whatever in Exec command.
* It is not it own binary.
* It has no build in file browser.
* etc.
2016-08-29 07:49:11 +02:00
Dave Davenport
e4cab560f4
First hack at fixing Desktop file parser.
2016-08-28 22:43:42 +02:00
Dave Davenport
20e55e1e4e
Add fuzzy matching, make a -matching option.
...
* -matching *method* option instead of -regex, -glob, -fuzzy.
* Re-add fuzzy matching pattern.
* When there are substrings in regex, only highlight those matches.
Fixes : #447
2016-08-25 21:17:58 +02:00
fice-t
a657f81145
Bind Control+g to kb-cancel ( #452 )
...
Control+g is the Emacs/readline standard for abort, so it would be nice
to have this by default.
2016-08-25 07:52:54 +02:00
Dave Davenport
99cb1e6f11
Don't force an second error when monitor is not found.
2016-08-24 10:36:39 +02:00
Dave Davenport
ef3c773097
Constness.
2016-08-24 00:39:56 +02:00
Dave Davenport
ad53de507c
Extra cleanup at exit.
2016-08-22 08:39:22 +02:00
Dave Davenport
284b3cb78b
Update manpage to show -display- option, sidebar mode uses display name.
2016-08-22 08:04:20 +02:00
Dave Davenport
6225b29d94
Issue 448, Take another default that should not fail, better error mesg
2016-08-19 18:01:26 +02:00
Dave Davenport
df7468b491
Use XRandr to get monitor layout instead of xinerama.
...
* You can now specify monitor by name, or primary status.
2016-08-19 10:46:38 +02:00
Dave Davenport
26d1e64b22
Make textbox use character position instead of byte index for cursor.
2016-08-15 09:01:56 +02:00
Dave Davenport
b5595d7a7e
Fix #443
2016-08-13 16:22:15 +02:00
Dave Davenport
026a8cbb34
Fix #438 look for a 8 bpc 32bit visual, fixes 10bpc 30bit screen
2016-08-07 13:26:28 +02:00
Dave Davenport
6495d8e8df
Add -input to -h output
2016-08-05 07:45:39 +02:00
Dave Davenport
eb0bfc60c4
Indicate what set an option, comment default options in dump-xresources.
2016-08-04 20:24:01 +02:00
Dave Davenport
ce822a3bbf
Fix memory leak run dialog when skipping.
2016-08-02 18:37:14 +02:00
Dave Davenport
90c6c1125f
Fix memory leak overlay widget
2016-08-02 18:33:55 +02:00
Dave Davenport
604b4cb619
Fix memory leak, re-indent
2016-07-31 23:28:31 +02:00
Dave Davenport
4ad2c37eea
textbox: Handle tall glyphs better ( #433 )
...
We now place text based on the baseline, instead of the top of the
tallest glyph.
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-07-30 20:39:45 +02:00
Dave Davenport
4be25abad7
Fix some doxygen warnings.
2016-07-29 08:32:34 +02:00
Dave Davenport
8478b427f1
Fix Control+u behaviour
2016-07-27 08:10:55 +02:00
Dave Davenport
fe230eb95c
Fix #432 , Control+k removes till eol.
2016-07-25 11:32:30 +02:00
Dave Davenport
22c8760e32
First try at fixing #430 . Needs testin.
2016-07-22 09:44:12 +02:00
Dave Davenport
5d5c9713d7
Fix crasher on no scrollbar and mouse seek.
2016-07-21 07:57:35 +02:00
Dave Davenport
602eb63557
Add `-multi-select
flag to dmenu.
...
* Changes default behaviour.
2016-07-18 23:58:08 +02:00
Dave Davenport
59635919ea
Add selection indicator to dmenu mode.
2016-07-18 23:49:26 +02:00
Dave Davenport
85d95c4f8f
Fix memory leak
2016-07-16 22:36:20 +02:00
Dave Davenport
e9c3b930bc
[Window] Chomp result
...
Fixes #426
2016-07-16 22:25:00 +02:00
Dave Davenport
b31cf1d32f
On rofi -show without argument, run de first one from the modi list.
2016-07-13 08:55:40 +02:00
Dave Davenport
b47e9c3846
Allow for more advanced window 'line' formatting
2016-07-12 10:44:43 +02:00
Dave Davenport
342192b4ed
Remove work-around for older i3 version (< 4.9)
...
- I3 got ewhm support in Feb. 2015.
2016-07-06 08:34:47 +02:00
Dave Davenport
dfc952f570
Add missing static
2016-07-05 18:13:53 +02:00
Dave Davenport
b7fba9752f
Don't double switch something trivial.
2016-07-05 09:21:50 +02:00
Dave Davenport
7c9f5e01fd
Fix tests and crash.
2016-06-28 23:34:07 +02:00
Dave Davenport
9f25a975ae
Fix windowcd command and allow custom Window string format
2016-06-28 23:07:48 +02:00
Dave Davenport
3ac07c3535
Fix indenting
2016-06-27 20:43:09 +02:00
Dave Davenport
baee50e346
XRM: rofi is not a class name
2016-06-27 08:26:09 +02:00
Dave Davenport
4af6976411
Fix piece of weird code to fetch background image.
2016-06-26 17:10:29 +02:00
Dave Davenport
6e2d0b6319
Add selection counter in dmenu mode
2016-06-26 15:48:12 +02:00
Dave Davenport
c87e91b6d9
Make select behave more Rasi-ish
2016-06-26 11:00:23 +02:00
Dave Davenport
40f95ae81f
Make bit functions static
2016-06-25 17:40:24 +02:00
Dave Davenport
ce645d78b3
Multi-select with unselect
2016-06-25 17:36:35 +02:00
Dave Davenport
a7922cc07c
Remove xlib dependency, add xcb-util-xrm.
2016-06-25 14:01:41 +02:00
Dave Davenport
77a0800ccf
Copy memory instead of mixing malloc and g_malloc'ed memories (and freeing them all with g_free)
2016-06-21 22:40:42 +02:00
Dave Davenport
5fb6ee1383
Fix rootwindow set at wrong pointer level.
2016-06-21 22:09:29 +02:00
Dave Davenport
1f4af41e96
Split Custom and Alternate command.
2016-06-19 18:02:49 +02:00
Dave Davenport
dab872879e
Remove Tab from row-down list
2016-06-18 21:18:06 +02:00
Dave Davenport
03239cb989
Remove fuzzy matching option.
2016-06-18 20:54:29 +02:00
Dave Davenport
7a2435a23b
Indent don't use partial match.
2016-06-16 22:23:55 +02:00
Dave Davenport
57336b96f0
Merge remote-tracking branch 'origin/master' into highlight_match
2016-06-16 08:41:40 +02:00
Dave Davenport
60cb992cac
Fix double free
2016-06-12 00:58:43 +02:00
Dave Davenport
e966fbe583
Terminate rofi if switcher is not found
2016-06-07 09:58:48 +02:00
Dave Davenport
0b84d63959
Merge remote-tracking branch 'origin/master' into highlight_match
2016-06-07 09:02:03 +02:00
Dave Davenport
0170aef0e6
Add Control-Backspace as keybinding.
2016-06-06 09:31:48 +02:00
Dave Davenport
9ff7a26c7e
Some indenting fixes
2016-06-05 20:41:10 +02:00
Dave Davenport
3f31620a3e
Wip/drun subdirs ( #416 )
...
* drun: Walk subdirectories too
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
* Remove goto, make it work for Filesystems that do not support reporting file type.
* Fix using filename before creating it.
* Run indenter over drun file.
* Fix stupid typo
2016-06-05 19:01:38 +02:00
Dave Davenport
72d6c20876
Merge remote-tracking branch 'origin/master' into highlight_match
2016-06-01 19:04:52 +02:00
Dave Davenport
01ce909c97
Update some headers.
2016-06-01 07:34:41 +02:00
Dave Davenport
ed7aeb7722
Fix 'Tab' binding description
2016-05-31 08:05:09 +02:00
Dave Davenport
10e3526237
Fix description, -switchers does not exist.
2016-05-31 07:59:40 +02:00
marduk
be5a66c9b5
Added the descriptions of the keybindings
2016-05-31 07:47:17 +02:00
Dave Davenport
8616b32310
Remove initialization
2016-05-30 21:10:10 +02:00
Dave Davenport
d62cc8a4ba
First throw at issue #403 , show wm name.
2016-05-30 18:35:22 +02:00
Quentin Glidic
56ed9e6a04
gitmodules: Update libgwater
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-05-30 18:25:40 +02:00
Dave Davenport
0fb7258470
Fix missing equals
2016-05-30 10:27:58 +02:00
Dave Davenport
1b5bcaa9f4
Issue #411 : Show list of Keyboard bindings with rofi, from rofi.
2016-05-30 10:25:58 +02:00
Dave Davenport
e84e387e94
Fix 1 character entries in git.
2016-05-27 09:31:57 +02:00
Dave Davenport
0e86050db8
Fix combi mode 'bang' behaviour, improve levenshtein with combi
2016-05-26 08:39:33 +02:00
Yaroslav
f901494c6a
Switch to stop cycling feature ( #407 )
...
* Added 'cycle' option to switch list navigation wrapping
* Replaced tabs with spaces
* Updating the expected rofi properties with 'cycle' option
* Updating documentation with the 'cycle' option
2016-05-25 20:40:23 +02:00
Dave Davenport
7aff2ae243
Merge remote-tracking branch 'origin/master' into highlight_match
2016-05-23 17:11:41 +02:00
Dave Davenport
5b3239a748
Fix : #409 Use display-name for prompt.
2016-05-23 08:19:36 +02:00
Dave Davenport
99a79f7eb4
Don't use g_ascii on utf8 string.
2016-05-22 19:41:52 +02:00
Dave Davenport
498fadc735
Remove the is_ascii mess.
2016-05-22 17:47:34 +02:00
Dave Davenport
8091558ed8
Go Regex Go
2016-05-21 10:37:23 +02:00
Dave Davenport
2a20821ddd
Merge remote-tracking branch 'origin/master' into hm
2016-05-20 09:57:25 +02:00
Quentin Glidic
db4f087487
window: Make custom action run a command on the window
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-05-12 11:31:12 +02:00
Quentin Glidic
3bd41b9a41
window: Kill the window on delete-entry
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-05-12 11:30:34 +02:00
Dave Davenport
c8a6b26607
First try at highlighting match (regex only)
2016-05-10 18:02:23 +02:00
Dave Davenport
09437e3f0e
We don't have a negative page number.
2016-05-10 17:51:23 +02:00
Dave Davenport
6070826c4d
Avoid needles updates when using continious scrolling
2016-05-10 11:47:32 +02:00
Dave Davenport
bd412b9975
Grab mouse pointer with keyboard.
2016-05-09 08:47:28 +02:00
Dave Davenport
b8ecbdcef5
Add option to set background for rofi window
2016-05-08 11:14:34 +02:00
Dave Davenport
8f6c9ee070
Fix indenting
2016-05-08 11:13:11 +02:00
Georgios Bitzes
8af7f014cd
Permit binding a modifier key on its own
2016-05-07 15:20:48 +02:00
Quentin Glidic
67b0ce036f
keybindings: Implement on-release bindings
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-05-07 11:31:04 +02:00
Quentin Glidic
20791d4a71
view: Split action triggering to an helper function
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-05-07 11:31:00 +02:00
Quentin Glidic
54f85fabaa
keybindings: Rework the matching
...
Now we check all bindings in one place, allowing for future naughty
matching.
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-05-07 11:25:04 +02:00
Quentin Glidic
65447b496a
view/navigation: Cleanup
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-05-07 11:24:32 +02:00
Quentin Glidic
aa350a1583
textbox/key: Cleanup
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-05-07 11:24:22 +02:00
Quentin Glidic
67c9fe158a
textbox/keybinding: Reindent
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-05-07 11:24:16 +02:00
Quentin Glidic
5b0964ae32
textbox: Split keybinding and text handling
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-05-07 11:24:10 +02:00
Quentin Glidic
143acf622b
view/keypress: Reindent
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-05-07 11:24:09 +02:00
Quentin Glidic
117c2360a4
view/keypress: Cleanup some useless stuff
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-05-07 11:23:44 +02:00
Quentin Glidic
0d899f1bbd
view: Split keypress handling to an helper function
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-05-07 11:23:13 +02:00
Dave Davenport
8e05106c87
Add option to view background image instead of screenshot in fake transparency. Issue #390
2016-05-06 12:40:55 +02:00
Dave Davenport
09d1955338
Issue: #395 adding more options.
2016-04-29 21:42:31 +02:00
Dimitar Yordanov
74d1b234d9
When switching windows also switch the desktop
...
If the window we switch to is not on the same desktop, first switch to
the desktop.
2016-04-28 22:45:01 +02:00
Dave Davenport
4dbf2813d0
Issue #388 , Try to make history parser more robust against corruption.
2016-04-27 12:57:43 +02:00
Dave Davenport
1661244407
Issue: 386: Fix getting desktop number property
2016-04-26 07:52:29 +02:00
Dave Davenport
85aeffbd24
small cleanup
2016-04-20 17:03:34 +02:00
Dave Davenport
44481cdb40
Small cleanups, fix worker error dialog.
2016-04-20 08:08:18 +02:00
Dave Davenport
3918625804
Move teardown to the logic place again (possible with deamon mode removed)
2016-04-20 08:04:23 +02:00
Dave Davenport
26e1083812
Issue: #380 Make combi complete prepend bang
2016-04-10 20:57:12 +02:00
Dave Davenport
cbf625ec9f
Work around crash. echo error to stderr.
2016-04-10 15:04:34 +02:00
Dave Davenport
96cb3a8695
Remove fgets and replace by getline.
2016-04-10 14:30:13 +02:00
Dave Davenport
b63f8e2275
Move history to getline and remove magic limit.
2016-04-10 13:55:18 +02:00
Dave Davenport
a69754abff
Remove left-over printf.
2016-04-10 12:08:36 +02:00
Dave Davenport
e54e012500
Issue: #381 : Try to handle X11 input and UTF-8 better.
...
In window_get_text_prop do conversion when input is of type STRING. (latin1) to utf8.
Dmenu: don't skip invalid lines, but try to display as much as possible.
Window mode: Double check all input from X.
2016-04-10 12:05:34 +02:00
Dave Davenport
bf51983150
Fix possible macro expansion problem.
...
As indicated by llvm analysis passes.
2016-04-05 21:26:21 +02:00
Quentin Glidic
29f6823cf9
rofi: Only display GIT_VERSION if available
...
It now contains the latest tag, so we have all the relevant information.
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-04-05 16:57:52 +02:00
Dave Davenport
3397ae1150
Remove unused -quiet commandline option.
...
This option, with the removal of daemon mode, no longer had any purpose.
2016-04-02 22:11:38 +02:00
Dave Davenport
541f5b1fc9
Fixes issue #370 : Move dmenu option into dmenu.
2016-04-02 10:39:02 +02:00
Dave Davenport
d3350afbed
Use SYSCONFDIR
2016-04-01 19:51:24 +02:00
Dave Davenport
53242dab7d
Merge branch 'master' of github:DaveDavenport/rofi
2016-04-01 18:03:32 +02:00
Dave Davenport
1b4e5069f6
Revert "Test config file before load, support ~/.config/rofi/theme and remove config_path global, fix loading dynamic options from /etc/rofi.conf"
...
This reverts commit 0c7d1a6b17
.
2016-04-01 17:58:41 +02:00
Quentin Glidic
13601fb892
rofi: Fix g_file_test calls
...
G_FILE_TEST_EXISTS | G_FILE_TEST_IS_REGULAR will return TRUE even for
directory.
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-04-01 09:33:58 +02:00
Dave Davenport
0c7d1a6b17
Test config file before load, support ~/.config/rofi/theme and remove config_path global, fix loading dynamic options from /etc/rofi.conf
2016-04-01 08:40:23 +02:00
Dave Davenport
2127682573
Cleanup unused type specifier (dialogs).
2016-03-24 22:15:10 +01:00
Dave Davenport
c4b65d975c
Cleanup unused type specifier.
2016-03-24 22:13:19 +01:00
Dave Davenport
3ac0c6dd7d
Quick fix.
2016-03-21 20:27:16 +01:00
Quentin Glidic
6a84d29e02
x11-helper: Drop RControl/LControl from Control modifier mask
...
They are not used for that, and Control was a #define in X11 headers anyway.
Fixes #362
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-03-20 14:00:29 +01:00
Quentin Glidic
20c9abf0a2
keybindings: Merge accept-custom and accept-entry-continue
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-03-20 10:39:34 +01:00
Dave Davenport
c7bc850bb8
Fix reloading after deleting entry
2016-03-20 10:20:40 +01:00
Dave Davenport
d36ae81408
Fix positioning window on top of window.
2016-03-20 10:16:55 +01:00
Dave Davenport
a2869ef39d
Make clang static code analyzer happy (300+ -> 5)
2016-03-19 13:29:04 +01:00
Dave Davenport
1f8db0fc5a
Remove pointless else if statement
2016-03-19 12:21:08 +01:00
Quentin Glidic
f5231ca24d
rofi: Allow fullscreen on specified monitor
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-03-18 09:21:36 +01:00
Dave Davenport
cdd9f97072
Issue 213: Memcpy the right size for atoms
2016-03-17 22:03:19 +01:00
Quentin Glidic
3a781d6fb9
x11-helper: Advertise the correct set of supported modifiers
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-03-17 12:10:50 +01:00
Dave Davenport
5d7bf1cfcf
Issue 358 Set monitor width and height for monitor -3 mode.
2016-03-15 09:40:32 +01:00
Dave Davenport
9549dfdd3e
Terminate mainloop after error message when trying to start it in daemon mode.
2016-03-13 20:11:39 +01:00
Dave Davenport
545c423b61
Tried to fix strlen on NULL
2016-03-12 14:00:19 +01:00
Quentin Glidic
abe44475fc
view: Fix multi-character compose sequences
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-03-07 18:10:22 +01:00
Dave Davenport
1d2625cbb8
Read default config from /etc/rofi.conf if exists.
2016-03-07 17:52:29 +01:00
Dave Davenport
d5be6d232e
Add MENU_ERROR_DIALOG flag.
2016-03-06 16:03:04 +01:00
Dave Davenport
b13bff6d1d
Try to fix things
2016-03-05 23:25:46 +01:00
Dave Davenport
f4f2e3d129
Add option to position rofi at mouse
2016-03-05 23:01:16 +01:00
Dave Davenport
9978feb600
Make cppcheck happy
2016-03-05 20:07:25 +01:00
Dave Davenport
d99111c73b
Remove deprecated theme system.
2016-03-05 18:28:39 +01:00
Dave Davenport
bfd338dfc8
Allow X parsed colors
2016-03-05 16:33:18 +01:00