Commit graph

1034 commits

Author SHA1 Message Date
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
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
Martijn Koedam
797a3b8ea5 Free was too early. 2016-03-03 12:46:12 +01:00
Dave Davenport
06d25c0ca2 Quit on error msg fail. 2016-03-03 08:21:28 +01:00
Dave Davenport
3d2f0a07db Quit when failing to create dialog. 2016-03-03 08:11:48 +01:00
Dave Davenport
93b80be913 is active can be NULL, check 2016-03-03 08:09:36 +01:00
Dave Davenport
f0b1998703 Cleanups (cppcheck) 2016-03-02 18:07:59 +01:00
Dave Davenport
f05f0de583 Fix #348, give a warning when font failed to parse 2016-03-01 19:48:18 +01:00
Dave Davenport
8c950a984c Small cleanup 2016-03-01 18:33:26 +01:00
Dave Davenport
7d046a1f5b Pack magic externs into a xcb_stuff. 2016-03-01 18:11:55 +01:00
Dave Davenport
fb2c23a429 Try to get fullscreenmode to draw nicer. 2016-02-29 12:11:04 +01:00
Dave Davenport
131b8eaaea Remove dead code 2016-02-28 18:33:01 +01:00
Dave Davenport
cc5db086bf Indenting 2016-02-28 18:22:00 +01:00
Dave Davenport
ef98b3928a Small cleanup. 2016-02-28 18:20:39 +01:00
Dave Davenport
3fa1940a5c Do a redraw after changing selected line 2016-02-28 18:13:58 +01:00
Dave Davenport
28ed4eab7b Take SardemFF7 advice on aliasing Ctrl+s and Ctrl+S, shift needs to mentioned explicit 2016-02-28 16:57:16 +01:00
Dave Davenport
21bce63e79 Do some filtering on the keybinding, to get the right keycombo for alt+shift+s. 2016-02-28 16:42:20 +01:00
Dave Davenport
bd04e90d9e Change window id from long unsigned to unsigned. 2016-02-28 15:33:57 +01:00
Dave Davenport
a4fd907fe8 Run indenter 2016-02-28 15:32:53 +01:00
Dave Davenport
594bf00194 Fix keybindings and fix tests 2016-02-28 13:08:08 +01:00
Dave Davenport
057f156009 Remove unneeded atom 2016-02-28 12:35:47 +01:00
Quentin Glidic
644556b7b6 Change Window/Atom to xcb_window_t/xcb_atom_t
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-02-28 12:21:26 +01:00
Dave Davenport
73a0eb3e39 Remove X11/* include headers. 2016-02-28 12:22:10 +01:00
Dave Davenport
ab57479da9 Remove Atom with xcb_atom_t. 2016-02-28 12:19:56 +01:00
Dave Davenport
c519b6a65a Fix free'ing of ewmh calls, remove old X codes 2016-02-28 11:57:52 +01:00
Dave Davenport
91ad94aef3 Free right memory, get right window class name. 2016-02-28 11:16:54 +01:00
Dave Davenport
4cd76a6d8e Merge remote-tracking branch 'github/master' into wip/xcb/full 2016-02-28 11:04:09 +01:00
Dave Davenport
460cad8bc8 Fix grab keyboard to wait on success. 2016-02-28 10:36:13 +01:00
Dave Davenport
6d0d6d9eb2 Tests. 2016-02-28 01:21:22 +01:00
Dave Davenport
93cb9ee7eb Remove opening of display. 2016-02-28 01:08:12 +01:00
Dave Davenport
764992e4bb Remove more display usage 2016-02-28 00:25:53 +01:00
Dave Davenport
c261aa8e89 change startup notification to xcb 2016-02-28 00:15:42 +01:00
Dave Davenport
d813d03a5f Convert more stuff to xcb, keyboard grab, cleanup 2016-02-28 00:09:05 +01:00
Dave Davenport
4c661c3932 Move most of window modi to xcb 2016-02-27 22:55:47 +01:00
Dave Davenport
bb2f0d8b83 Move more to xcb, window_*_ functions to xcb_ functions 2016-02-27 21:55:43 +01:00
Dave Davenport
a02cb83a98 Move more to xcb. 2016-02-27 20:45:47 +01:00
Dave Davenport
305829fcc8 query pointer to xcb 2016-02-27 19:51:06 +01:00
Dave Davenport
dce35ba4ef Move more stuff to xcb_ 2016-02-27 19:26:51 +01:00
Dave Davenport
f79a6d6d2e Convert view.c to xcb_ functions. secondary paste fails. 2016-02-27 17:57:43 +01:00
Dave Davenport
15ad8e1da3 Removing XCB from view.c, paste less 2016-02-27 17:42:50 +01:00
Dave Davenport
9cb5829303 Use xcb_flush instead of XFlush 2016-02-27 14:05:29 +01:00
Dave Davenport
5a204829f0 Fix not updating in daemon mode 2016-02-23 23:54:35 +01:00
Dave Davenport
3f8efed56d Add missing flush 2016-02-23 22:04:44 +01:00
Dave Davenport
3b58c3a26a Fix issue: #347. 2016-02-23 21:14:15 +01:00
Dave Davenport
319524c7c5 Test for single mainloop 2016-02-23 21:04:24 +01:00
Dave Davenport
87546caa8f Fix previous commit. 2016-02-23 19:34:48 +01:00
Dave Davenport
faf5c49b8c Remove hardcoded string length in window list. 2016-02-23 19:14:21 +01:00
Quentin Glidic
2ef950eab9 WIP: Port window stuff to xcb
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-02-23 17:37:25 +01:00
Quentin Glidic
6bb1d4b1a2 x11-helper: Migrate to libxkbcommon
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-02-23 17:34:38 +01:00
Quentin Glidic
42e9709207 keybindings: Merge left/right variants of modifiers
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-02-23 17:34:33 +01:00
Quentin Glidic
3029e05ac7 keybindings: Rework modmask matching
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-02-23 17:34:31 +01:00
Quentin Glidic
590e61b417 view: Store modstate on keypress event
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-02-23 12:52:35 +01:00
Quentin Glidic
990914d20f rofi: Drop daemon mode
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-02-23 12:15:03 +01:00
Quentin Glidic
88ddb7f04e x11-helper: Directly store the useful value
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-02-23 12:13:44 +01:00
Quentin Glidic
f39f5bb0cb view-internal: Use XCB types
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-02-23 12:13:21 +01:00
Quentin Glidic
09e520dfe8 rofi: Always use ARGB for Cairo image surfaces
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-02-21 22:10:03 +01:00
Dave Davenport
aa1d8b4046 Remove x11-event-source, replaced by libgwater. 2016-02-21 17:47:19 +01:00
Dave Davenport
75c9f58900 Remove XIC and XIM. 2016-02-21 17:14:37 +01:00
Quentin Glidic
ee52e50662 view/compose: Use Xlib cancelling behaviour
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-02-21 17:00:28 +01:00
Quentin Glidic
5d6f2ee1ab Compose stuff
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-02-21 16:04:53 +01:00
Quentin Glidic
e1f87a67b4 rofi: Migrate to libxkbcommon
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-02-21 16:04:53 +01:00
Quentin Glidic
fe7ca2079d rofi: Convert to XCB events
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-02-21 16:04:53 +01:00
Dave Davenport
2eb63456db view: Flush after drawing 2016-02-21 16:04:53 +01:00
Dave Davenport
9121732e36 Cleanups. 2016-02-19 21:16:35 +01:00
Dave Davenport
038346b640 Cleanup + fix 2016-02-19 21:08:46 +01:00
Dave Davenport
758d155a20 Fixing. 2016-02-19 20:08:14 +01:00
Dave Davenport
6e3bb506de Full mainloop madness 2016-02-19 19:50:48 +01:00
Dave Davenport
4eb3fd1da3 Test for single mainloop 2016-02-19 19:29:06 +01:00
Dave Davenport
a125f6d515 Try to fix crash with new scrolling method. 2016-02-18 19:23:41 +01:00
Dave Davenport
638e58e7d8 Issue: #219 Rounding down. 2016-02-17 22:13:13 +01:00
Dave Davenport
d2567a6884 #219: Implement continious scroll 2016-02-17 20:29:23 +01:00
Dave Davenport
99515f986e Fix issue #281
if one entry as input and autoselect enabled return immediately
2016-02-17 08:46:22 +01:00
Dave Davenport
63be750c5b Quick work-around fix for rofi blocking X on unavailable monitor 2016-02-17 00:00:41 +01:00
Dave Davenport
6217edf622 #343 Add history support to drun mode. 2016-02-16 10:40:21 +01:00
Dave Davenport
354e65fa06 Do not pass the same information twice. 2016-02-12 08:23:59 +01:00
Dave Davenport
11c347fad8 Use accessors in RofiView to get modi's and num modi for sidebar. 2016-02-11 08:41:19 +01:00
Dave Davenport
3b007b7eff Pull StartupNotificaiton Display event handling into the main event loop 2016-02-11 08:22:48 +01:00
Dave Davenport
46e3429040 Fix #336, missing prototype 2016-02-10 22:12:49 +01:00
Dave Davenport
fdb4c99456 Remove normal window global. 2016-02-10 19:40:19 +01:00
Dave Davenport
2cd8888d2c Merge remote-tracking branch 'origin/master' into glib-loop 2016-02-09 22:35:03 +01:00
Dave Davenport
289795b22a Fix finding active desktop! 2016-02-09 21:25:29 +01:00
Dave Davenport
f7e2632624 Merge remote-tracking branch 'origin/master' into glib-loop 2016-02-09 19:55:31 +01:00
Dave Davenport
5185f1181c Validate if input is utf-8 for dmenu, if not ignore that line
This should avoid crashing on invalid encoding.
2016-02-09 19:54:43 +01:00
Dave Davenport
2cc2522e57 Revert part of commit e7b18d3a88
Allow markup to be set via textbox flags.
2016-02-09 19:53:46 +01:00
Dave Davenport
c3f15a4e2a Merge remote-tracking branch 'origin/master' into glib-loop 2016-02-09 07:56:45 +01:00
Dave Davenport
e7b18d3a88 Issue: #334: Only allow markup-rows to be set on cmdline
This should avoid people setting this in XResrouces and breaking random dmenu scripts.
2016-02-09 07:37:48 +01:00
Dave Davenport
5d430824b3 Doxygen updates. 2016-02-08 18:16:16 +01:00