Quentin Glidic
93cb04e30f
xcb: Move (most) event handling to xcb.c
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-01 13:30:29 +02:00
Quentin Glidic
4792a16593
xcb: Hide release details
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-01 13:26:31 +02:00
Quentin Glidic
2b6c084f32
textbox: Fix appending more than one character
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-01 13:26:19 +02:00
Quentin Glidic
711d97b66d
xcb: Fix normal window mode
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-01 12:47:11 +02:00
Quentin Glidic
2586cc926a
rofi: Remove some leftovers ticks
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-01 12:03:23 +02:00
Quentin Glidic
000dce1083
xcb: Hide grab details
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-01 11:57:57 +02:00
Quentin Glidic
f042851add
xcb: Hide some internal details
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-01 11:57:17 +02:00
Quentin Glidic
93cf26414e
xcb: Reorder and hide events callbacks
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-01 11:50:26 +02:00
Quentin Glidic
a8aac87bb0
xcb: Move GWater source in xcb.c
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-01 11:44:21 +02:00
Quentin Glidic
9b58a9bc31
xcb: Move more stuff to xcb.c
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-01 00:39:11 +02:00
Quentin Glidic
46dee2671d
x11-helper: Rename xcb.c
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-01 00:12:58 +02:00
Quentin Glidic
4c8e9247ad
rofi: Fix NkBindings calls order
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-01 00:00:09 +02:00
Quentin Glidic
087acb1028
gitmodules: Update libnkutils
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-05-31 22:42:33 +02:00
Quentin Glidic
52aac6d3b6
gitmodules: Update libnkutils
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-05-31 20:26:12 +02:00
Quentin Glidic
ac8868f3b1
Indent icon code rework
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-05-31 20:21:58 +02:00
Dave Davenport
45e76b781e
Merge remote-tracking branch 'origin/master' into barview
2017-05-31 17:52:25 +02:00
Dave Davenport
4e3830a519
[TextBox] Fix icon alignment issue when scaling icon.
2017-05-31 17:52:09 +02:00
Dave Davenport
2c0b398e78
Merge remote-tracking branch 'origin/master' into barview
2017-05-31 11:46:20 +02:00
Dave Davenport
939495f00b
[TextBox] Fix icon offset.
2017-05-31 11:46:02 +02:00
Dave Davenport
f53e58ad95
Merge remote-tracking branch 'origin/master' into barview
2017-05-31 11:25:14 +02:00
Dave Davenport
59e012e85b
[Textbox] fix wrong flag check for icon.
2017-05-31 11:23:24 +02:00
Dave Davenport
d8b0e24b09
Merge remote-tracking branch 'origin/master' into barview
2017-05-31 11:18:30 +02:00
Dave Davenport
4d8784cf85
Port fixes from icon-cleanup branch.
...
- Thread for fetching icons for drun.
- Fixed placing of icons instead of adding place-holder token that can
mis-render.
- Give textbox TB_ICON flag.
2017-05-31 11:05:45 +02:00
Quentin Glidic
8a6bdd827d
config: Add a setting to disable icons loading
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-05-30 19:08:33 +02:00
Dave Davenport
f3b4af1da0
window: Add icons support (quick and dirty)
2017-05-30 19:08:20 +02:00
Quentin Glidic
03eb4a3abb
drun: Implement icon support
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-05-30 19:01:01 +02:00
Quentin Glidic
fb37aaa70d
view: Use \uFFFC character as icon placeholder
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-05-30 19:01:01 +02:00
Aaron Ash
43053cdfc3
view: Add icon (basic) support
2017-05-30 19:00:57 +02:00
Dave Davenport
9a6fd1c6c3
Merge in master
2017-05-30 16:23:19 +02:00
Quentin Glidic
4891bcd7eb
bindings: Use a wrapper around rofi_view_trigger_action
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-05-30 14:14:59 +02:00
Quentin Glidic
4e448eac45
widget.test: Add NULL tests for trigger_action functions
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-05-30 13:45:20 +02:00
Quentin Glidic
a24af6e64c
mode/keys: Display all bindings
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-05-30 13:45:20 +02:00
Quentin Glidic
6d27a89b99
bindings: Drop unused (and buggy) sentinel
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-05-30 13:45:19 +02:00
Quentin Glidic
acc1fa45b9
widget: Add motion grab support
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-05-30 13:45:19 +02:00
Quentin Glidic
0555d15c46
scrollbar: Make it scroll again
...
On click for now, will add motion grab in the following commit
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-05-30 13:45:19 +02:00
Quentin Glidic
823a45f711
scrollbar: Rework scrollbar_scroll_get_line to work on relative y
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-05-30 13:45:19 +02:00
Quentin Glidic
685d4f0e13
widget: Rely on find_mouse_target to send motion events
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-05-30 13:45:17 +02:00
Quentin Glidic
30da7e587a
widget: Add widget_xy_to_relative helper
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-05-30 13:44:05 +02:00
Quentin Glidic
6a750669d7
scrollbar: Drop unused variable
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-05-30 12:11:17 +02:00
Quentin Glidic
d514cf4c26
view: Remove some more leftovers
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-05-30 12:06:18 +02:00
Quentin Glidic
b314a90f1d
widget: Remove some more leftovers
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-05-29 21:03:52 +02:00
Quentin Glidic
5ea9a93cac
view: Drop leftover g_print
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-05-29 16:57:49 +02:00
Quentin Glidic
a9199e3e17
Use libnkutils for keybindings
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-05-29 16:51:06 +02:00
Dave Davenport
a5e5493d6b
Add extra NULL checks.
2017-05-28 18:19:59 +02:00
Dave Davenport
28f116b4a2
Allow textbox to be added in theme
2017-05-28 18:05:02 +02:00
Dave Davenport
fff06fc880
Don't keep pointer to inputbar/main_box
2017-05-28 17:34:53 +02:00
Dave Davenport
5e946b8383
Fix sidebar mode
2017-05-28 17:19:34 +02:00
Dave Davenport
84473f6f96
Merge remote-tracking branch 'origin/master' into barview
2017-05-28 17:16:25 +02:00
Dave Davenport
89e9c2d0a5
G_MODULE_EXPORT config_path
2017-05-28 17:15:59 +02:00
Dave Davenport
141b46aae0
Add extra error message when failed to open plugin
2017-05-28 17:12:10 +02:00
Dave Davenport
fa0380057b
[Widget] Add desired width option.
2017-05-28 16:10:11 +02:00
Dave Davenport
b82e1c7a78
Merge remote-tracking branch 'origin/master' into barview
2017-05-28 10:17:12 +02:00
Quentin Glidic
04faad945a
Merge branch 'master' into wip/meson
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-05-28 00:21:57 +02:00
Dave Davenport
0fdb1068da
Allow layout to be overwritten
2017-05-27 17:08:46 +02:00
Dave Davenport
b73f938a82
Set box orientation in theme.
2017-05-26 20:23:46 +02:00
Dave Davenport
c23df70aeb
Allow interface to be dynamically changed.
2017-05-25 23:41:15 +02:00
Dave Davenport
e387105091
[TextBox] Add 'vertical-align' option
2017-05-24 19:57:35 +02:00
Dave Davenport
da092c53ac
[BarView] Use exact match for entry width.
2017-05-24 08:50:45 +02:00
Dave Davenport
7639153ad6
Change page-up/page-down behaviour for barview mode.
2017-05-24 08:10:03 +02:00
Dave Davenport
a4694cf808
Merge remote-tracking branch 'origin/master' into barview
2017-05-23 17:20:17 +02:00
Dave Davenport
f1261e181c
Revert changes to script.
2017-05-23 17:19:04 +02:00
Dave Davenport
a0df3b37c7
[Barview] Small cleanups.
2017-05-23 10:48:02 +02:00
Dave Davenport
d592a59252
[ListView] Add bar mode.
2017-05-23 09:45:42 +02:00
Dave Davenport
f5c57ff821
[TextBox] Add get_desired_width function.
2017-05-23 09:12:04 +02:00
Dave Davenport
dca5caaa47
[Theme] Add small caps options (not working?)
2017-05-22 09:24:05 +02:00
Dave Davenport
72afc7b039
Add strikethrough highlight method.
2017-05-18 07:59:37 +02:00
Dave Davenport
30fb8c514e
Change ARGB to RGBA, fix in theme converter
2017-05-16 21:55:52 +02:00
Dave Davenport
494550d38d
[ThemeParser] Add CSS color names support
...
* [ThemeParser] Add css color names
* Add CSS color support (WIP)
* Parse color names in the lexer.
* Add test for css color names
* Indent and fix ordering
2017-05-15 22:46:33 +02:00
Dave Davenport
c54a817555
If we hit edge of entry box, make left/right move forward to listview.
2017-05-12 16:08:49 +02:00
Dave Davenport
67e38cde40
Fix some clang compiler warnings
2017-05-11 18:30:44 +02:00
Dave Davenport
aaea2b2c8a
Add hsl and cmyk test, add extra error checking
2017-05-10 20:54:16 +02:00
Quentin Glidic
bb5d839f9c
xkb: Allow binding modifiers
...
And modified modifiers too.
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-05-04 23:53:52 +02:00
Quentin Glidic
6f117c3589
xkb: Use consumed2 API when available
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-05-04 23:42:01 +02:00
Quentin Glidic
7fd8ce4c0a
Add Meson build system support
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-05-04 21:50:07 +02:00
Quentin Glidic
7f78031bda
widgets: Use G_PI and G_PI_2 instead of M_PI
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-05-04 13:40:16 +02:00
Quentin Glidic
25d0d5e679
rofi: Do not include gitconfig.h directly
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-05-04 13:40:16 +02:00
Quentin Glidic
4fccb3efdc
theme-parser: Drop lexer/ in #includes
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-05-04 13:40:12 +02:00
Dave Davenport
cc714f8f91
Fix more compiler warning
2017-05-04 07:56:40 +02:00
Dave Davenport
1f76e2c3f3
Small code refactor to work around mis-detect static code analyzer.
2017-05-03 17:41:14 +02:00
Dave Davenport
9afa7682f6
Fix some small warning because get_string returns const.
2017-04-28 09:15:01 +02:00
Dave Davenport
ce4b1b23b4
Re-Indent code
2017-04-27 22:59:14 +02:00
Dave Davenport
ac2390c76d
[Lexer] More tests.
...
Fix return of double.
2017-04-26 23:24:14 +02:00
Dave Davenport
fb318f0ff8
Cleanups, fix arguments mismatch
2017-04-23 15:17:15 +02:00
Dave Davenport
dd715fa1ad
Remove -dump-xresources-theme option that does not exists anymore from -help
...
* and manpage
2017-04-21 17:31:07 +02:00
Dave Davenport
04e764c8e6
[Plugins] Add -no-plugins and -plugin-path options
...
* -no-plugins disables the loading of plugins.
* -plugin-path specifies the directory used by rofi to look for plugins.
2017-04-21 09:48:03 +02:00
Dave Davenport
01159b29f0
[Mode] Make the name field a pointer instead of a fixed 32char array.
2017-04-21 09:37:03 +02:00
Dave Davenport
5edc739848
Try to improve error message a bit (damn g_warning replace)
2017-04-20 09:24:09 +02:00
Dave Davenport
9bd17ddfd0
[RUN] Report the expanded PATH entry in debug output
2017-04-19 10:24:09 +02:00
Dave Davenport
dc2de0d042
[RUN] Expand the paths found in /home/mkoedam/.local/bin/:/opt/mpd/bin/:/home/mkoedam/.local/bin/:/opt/mpd/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
2017-04-19 09:26:35 +02:00
Dave Davenport
854304ca2f
Change screenshot warning to printf.
2017-04-18 19:32:52 +02:00
Dave Davenport
4157b5d825
[Theme] Allow default enabled state of widget to be set in theme
2017-04-18 08:47:48 +02:00
Dave Davenport
8c11b48532
Print message about disabled mode to stderr using fprintf.
...
g_warning breaks the colour output.
2017-04-18 08:24:09 +02:00
Dave Davenport
97fe894f43
Add some theme name resolving functions.
2017-04-17 17:46:01 +02:00
Adrià Farrés
7c14468697
Add newline ( #588 )
2017-04-15 21:50:55 +02:00
Quentin Glidic
9a68b22009
Fix licenses headers
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-04-15 12:32:05 +02:00
Quentin Glidic
cfbe4027bc
Consolidate logging
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-04-15 12:07:29 +02:00
Dave Davenport
ba9e1fb92a
Switch to g_{debug,warning} instead of g_log
2017-04-15 11:37:50 +02:00
Dave Davenport
d2bf704d93
Print warning in using g_log.
2017-04-14 11:14:30 +02:00
Aaron Ash
1bfbc327c2
Handle null X events without error
2017-04-14 11:12:21 +02:00
Dave Davenport
d6af6d29fc
Small memory leak in theme-config parser.
2017-04-12 09:22:26 +02:00
Dave Davenport
f1c23c5bfa
When query theme for exact match, do not consider state.
2017-04-11 21:11:09 +02:00
Dave Davenport
27339bf9bf
Avoid possible buffer overflow
2017-04-10 17:30:11 +02:00
Dave Davenport
4156d142fe
Set PID and wm_client_machine hints on rofi window.
2017-04-10 09:27:22 +02:00
Dave Davenport
79c33cfca6
Improve error messages when type does not match.
2017-04-09 15:27:23 +02:00
Dave Davenport
b227fece10
Fix some warning that converity scan picked up.
2017-04-06 19:55:47 +02:00
Dave Davenport
c40bb4fc35
Fix small bug and extend test for theme parser
2017-04-04 23:02:08 +02:00
Dave Davenport
abaae5f403
Add (initial) check for theme parser.
2017-04-04 08:56:19 +02:00
Dave Davenport
358759e0ab
Reset pointer to NULL after free'ing.
2017-04-04 08:31:25 +02:00
Dave Davenport
ae200fd164
Fix checks compiling
2017-04-03 12:04:07 +02:00
Dave Davenport
f7971fc0e6
Add list of available modi to help output.
2017-04-03 08:51:25 +02:00
Dave Davenport
a754815d14
Add converter back for old theme format.
2017-04-02 12:32:11 +02:00
Dave Davenport
563dc8dafd
Fix alternate separator
2017-03-31 20:57:42 +02:00
Dave Davenport
2953e3cb1f
Test if case_indicator exists before setting it.
2017-03-31 18:06:41 +02:00
Dave Davenport
b418352d43
Don't quit, show error when failing to load mode.
2017-03-31 17:51:23 +02:00
Dave Davenport
a885966f30
Show what mode failed to load.
2017-03-31 17:47:04 +02:00
Dave Davenport
b4c9bad267
Document '/' as separator and add to combi mode.
2017-03-31 15:27:13 +02:00
Dave Davenport
738d7e2e0c
Allow '/' as separator between modi. ( #582 )
2017-03-31 14:07:22 +02:00
Dave Davenport
18618ddbd1
When modi is not enabled, only print warning when started from console
2017-03-31 13:59:46 +02:00
Dave Davenport
9ae1344d56
Improve error message when called with -show
2017-03-31 13:47:44 +02:00
Dave Davenport
d31fc5c8bc
Update message when launched without show argument.
2017-03-31 10:11:50 +02:00
Dave Davenport
4d19e35b0e
Remove more traces of old theme.
2017-03-30 08:33:40 +02:00
Dave Davenport
898e4a2717
Remove old color structure and name based parsing
2017-03-30 08:30:02 +02:00
Dave Davenport
eeee200d8f
Remove old theme support. (part 1)
2017-03-29 20:18:41 +02:00
Dave Davenport
290143e0c8
Merge remote-tracking branch 'github/master'
2017-03-29 19:49:27 +02:00
Dave Davenport
904ab9eafc
Force sync and finishing of pending requests before shutting disconnecting from X11 #576
2017-03-29 19:49:10 +02:00
Dave Davenport
6de992bda8
Remove unneeded tab binding.
2017-03-29 12:25:57 +02:00
Dave Davenport
042e123765
Change default from Shift+Tab to ISO_Left_Tab
2017-03-29 11:56:19 +02:00
Quentin Glidic
e45f0194d1
mode: Properly use mode init return value
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-03-28 22:27:16 +02:00
Dave Davenport
8c345273ff
Indenting.
2017-03-28 20:04:02 +02:00
Dave Davenport
5259eb11bc
Merge the configuration loading into something more simple (3)
2017-03-28 17:33:43 +02:00
Dave Davenport
14b43523be
Merge the configuration loading into something more simple (2)
2017-03-28 17:13:38 +02:00
Dave Davenport
7b30846408
Merge the configuration loading into something more simple (1)
2017-03-28 17:03:46 +02:00
Dave Davenport
b91a9fb0c0
Add 'Configuration' section to rasi format that parses config option.
2017-03-27 09:04:55 +02:00
Dave Davenport
0b03fc98ff
If user_runtime dir does not exist, try fallback and limp on.
2017-03-25 21:52:51 +01:00
Dave Davenport
61e537a05f
ISSUE 576: Clutching at straws.
...
* Don't use atexit anymore. (what happens with g_spawn and atexit?
should be fine, but a test).
* Even though not needed, force wait on running thread (of which there
should be none) when destroy thread pool.
2017-03-25 14:23:31 +01:00
Dave Davenport
0900b0d925
README: Call run-mode application launcher
2017-03-24 09:51:57 +01:00
Dave Davenport
5c42f7f626
Do an extra log before calling unmap and destroy window
2017-03-21 19:59:40 +01:00
Dave Davenport
606f4e89c5
Add teardown debug message
2017-03-21 19:46:56 +01:00
Dave Davenport
70e3b189df
Remove entry from history once deleted. #579
2017-03-21 17:19:05 +01:00
Dave Davenport
12cbb0368d
#579 Fix delete cached entry.
2017-03-20 12:37:52 +01:00
Dave Davenport
c27921f99a
Small change to make cppcheck happy
2017-03-18 16:06:41 +01:00
Dave Davenport
6447ddf0d7
clang-check fixes
2017-03-17 14:27:08 +01:00
Dave Davenport
50477a0b99
[Keys] Cleanup view a bit.
2017-03-17 14:07:11 +01:00
Dave Davenport
dfeb5940d4
Reduce scope and unneeded check.
2017-03-17 13:33:47 +01:00
Dave Davenport
000c113925
[DRUN] Get categories on initial parsing from keyfile, not on matching (is slow-ish)
2017-03-14 17:34:41 +01:00
Dave Davenport
ee931f5480
[Textbox] Remove unneeded calls to pango_layout_get_baseline.
...
Now bulk time is spend in drawing, not calculating.
2017-03-14 17:12:22 +01:00
Dave Davenport
d52c80d76f
[Textbox] Remove unneeded calls to pango_layout_get_pixel_size.
...
This was 21% of the widget update time.
2017-03-14 17:02:03 +01:00
Dave Davenport
9cfb075bc4
Add filename to location in error message.
2017-03-13 16:42:17 +01:00
Dave Davenport
be036f086d
Reset location when importing, correctly resolve relative path
2017-03-13 08:54:55 +01:00
Dave Davenport
b7f4b7484f
Some initial support for @import in theme and try to fall back when theme fails to load
2017-03-11 17:06:06 +01:00
Dave Davenport
13bac230a2
[SSH] Fix missing parameter documentation
2017-03-11 13:40:05 +01:00
Dave Davenport
652749081a
Fix missing doxygen documentation
2017-03-11 13:20:46 +01:00
Dave Davenport
cee753bd3c
Zeltakmadness ( #572 )
...
* Allow modi to set extra pango attributes on displayed rows
* Fix some documentation, only highlight the mode name with color.
* Small rename.
2017-03-10 23:39:29 +01:00
Dave Davenport
25678d7a59
Floor the result, so we do not get 1/2 pixel gaps.
2017-03-09 19:00:26 +01:00
Dave Davenport
b72a010908
Issue570 ( #571 )
...
* First start issue #570
* Implement (glob style) includes.
* Add glob check to configure.
* If expanding path, use it
2017-03-08 16:56:28 +01:00
Dave Davenport
88cde09055
Merge remote-tracking branch 'gitcreate/master'
2017-03-06 10:35:20 +01:00
Dave Davenport
9938317dc5
Don't g_strsplit everytime, use strtok.
2017-03-06 09:56:02 +01:00
Dave Davenport
cb9255bbea
Allow slice allocator for theme
2017-03-04 20:09:19 +01:00
Dave Davenport
3f4d58ef53
Indent code.
2017-03-04 19:41:06 +01:00
Dave Davenport
8ee37012d1
Add dir parser function
2017-03-04 12:22:28 +01:00
Dave Davenport
86dc1e1448
Detect plugins on startup.
2017-03-04 12:00:59 +01:00
Dave Davenport
45c70cbecf
Allow modes to set message box, instead of view creation argument.
2017-03-01 09:57:54 +01:00
Dave Davenport
8aac855fe0
Remove replace test. (Don't do commit -a )
2017-03-01 09:50:23 +01:00
Dave Davenport
8bd7db31d2
Add message box to view structure. Always add it, disable it when not showing anything
2017-03-01 09:37:20 +01:00
Dave Davenport
9ee61a6447
Use new get_desired_height to determine height of error message dialog
2017-02-27 17:40:36 +01:00
Dave Davenport
0cd257f554
Add missing point in container name.
2017-02-27 16:50:56 +01:00
Dave Davenport
1de6239616
Also parse global config for dynamic options
2017-02-27 09:01:59 +01:00
Dave Davenport
3d2491556e
Fix small issue positioning top of text in entrybox. (I hope)
2017-02-24 09:54:11 +01:00
Dave Davenport
8608a46633
Fix missing capital. (sorry not awake yet)
2017-02-18 12:12:51 +01:00
Dave Davenport
ed7cfcb6aa
Add openbox to the naughty list
2017-02-18 10:47:53 +01:00
Dave Davenport
85bd47e42f
Quick 'n dirty hack to find plugin in plugin dir
2017-02-17 20:02:12 +01:00
Dave Davenport
dc7e4aa96e
Install some headers for use in plugins
2017-02-17 14:06:31 +01:00
Dave Davenport
f7b4bebb9b
Rename token_match to helper_token_match.
2017-02-17 09:58:47 +01:00
Dave Davenport
9bd4096346
Add quick'n dirty abi check.
2017-02-14 18:12:07 +01:00
Dave Davenport
fb05409365
Start of making SardemFF7 happy
...
Allow mode's to be loaded as dynamic plugins.
2017-02-14 08:52:17 +01:00
Dave Davenport
97be4e9c72
Use xcb_ewmh_get_supporting_wm to get window to get wm name on
2017-02-11 19:51:02 +01:00
Dave Davenport
a579c86c1f
Only switch to the desktop first if we are on AweSome WM
2017-02-11 17:12:07 +01:00
Dave Davenport
c386521574
Add an window manager detection function to startup.
...
current_window_manager now is an enum of known window managers.
2017-02-11 16:53:37 +01:00
Dave Davenport
0ea74e5c7f
Update function check configure.ac
2017-02-09 08:45:15 +01:00
Dave Davenport
87251a991c
Indent
2017-02-09 08:27:26 +01:00
Dave Davenport
ef4d09be1f
Tweaking corner case when box is small
2017-02-08 19:48:15 +01:00
Dave Davenport
1d6b1494e9
Fiddle with the corners again.. less complecated is good
2017-02-08 10:15:38 +01:00
Dave Davenport
7b3e0918cf
Reduce amount of paths created
2017-02-06 23:45:46 +01:00
Dave Davenport
d3b050e1f1
First draw widget, then draw border around it.. extend clipmask by 0.5 a pixel in the corner.
2017-02-06 23:30:39 +01:00
Dave Davenport
3056064e68
Fix missing - in clip mask
2017-02-06 23:02:19 +01:00
Dave Davenport
b51a20c433
limit radius when height/weight gets to small
2017-02-06 21:31:13 +01:00
Dave Davenport
db92ff1f41
Add border radius to border around widget.
2017-02-06 21:17:56 +01:00
Dave Davenport
c5506e4cdd
Allow bang to match multiple modes when incomplete to select single. Fixes #552
2017-02-04 10:54:15 +01:00
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