Commit graph

919 commits

Author SHA1 Message Date
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
Dave Davenport
7aa289d90c Fix color parsing 2016-03-05 16:25:17 +01:00
Dave Davenport
4c8375189c More cleanups 2016-03-05 12:06:14 +01:00
Dave Davenport
5effc9581c Cleanup 2016-03-05 11:34:44 +01:00
Dave Davenport
c0690c8afb Cleanups. 2016-03-05 11:18:23 +01:00
Dave Davenport
72dfe2ad4c Propagate error down, show dialog.
Fix positioning dialog.
2016-03-05 11:08:32 +01:00
Dave Davenport
881ca572df Return NULL when empty property. 2016-03-04 19:41:32 +01:00
Dave Davenport
fa7ceaf580 Check for the availability of the xinerama extension. 2016-03-04 17:03:24 +01:00
Dave Davenport
fd707acac5 Move keymap updating into right x11 event loop handler. 2016-03-04 08:15:12 +01:00
Dave Davenport
9d7d8a9aeb Be able to run without compose table. 2016-03-04 08:02:54 +01:00
Dave Davenport
fc75a204d5 Check table exists. 2016-03-04 00:22:04 +01:00
Dave Davenport
fe8aa55fdc Correctly check error 2016-03-03 16:02:14 +01:00
Dave Davenport
ba0b2379a6 Check if connection was succesfull 2016-03-03 15:59:31 +01:00