Commit graph

244 commits

Author SHA1 Message Date
QC
888260b06b Small cleanup 2015-03-27 20:50:48 +01:00
QC
f5c8c3a55d Do not release keyboard when switching between switchers. 2015-03-27 20:33:25 +01:00
QC
b21368c005 OO-ify the Switchers. 2015-03-27 20:28:53 +01:00
Dave Davenport
f52b697dd4 Remove double names. 2015-03-25 08:36:19 +01:00
Dave Davenport
953fcf9ee8 Reduce work on redraws.
- Do not set text on each draw.
        - Do not move/resize on each draw.
        - Update pango layout set width to set when only needed, fix bug in shrinking on autosize.
2015-03-23 08:56:55 +01:00
QC
7c6699169e Tweak layout a bit 2015-03-22 12:56:26 +01:00
QC
b36452cc40 Fix padding switcher boxes to match columns 2015-03-21 19:23:55 +01:00
Dave Davenport
d290285a9f Fix rendering of boxes (margin and height) 2015-03-20 16:07:30 +01:00
QC
3df30438b1 Fix some font stuff. 2015-03-19 23:48:49 +01:00
Dave Davenport
21144aef17 Fix one-off pasting text in rofi. 2015-03-19 20:01:52 +01:00
Dave Davenport
9530f195d1 Better way of getting font height. Use ascent and descent. 2015-03-19 19:58:47 +01:00
QC
743f1919cd Autoscale when drawing the number of columns and col width. 2015-03-18 20:56:50 +01:00
QC
4dd0a85fc4 Update header. 2015-03-17 20:05:37 +01:00
QC
916e7356fe Try to fix mountains__ function. 2015-03-15 11:51:48 +01:00
Dave Davenport
4579a62b2d Add ctrl-(shift)-tab for switching modi. 2015-03-12 17:57:00 +01:00
Dave Davenport
4fad02225e Cleanup argc/argv lugging around. 2015-03-11 18:32:37 +01:00
Dave Davenport
c89a272d4d Add number mode for dmenu (Request from Taharqa)
* option -i.
2015-03-11 18:07:54 +01:00
QC
19e849d4e7 Tiny cleanup. 2015-03-07 17:22:25 +01:00
QC
7322819a1d No need to check nullptr on nonnull argument. 2015-03-06 20:38:11 +01:00
Dave Davenport
444d09b905 Update spell. 2015-03-05 20:26:52 +01:00
Dave Davenport
a83a06a95c Re-add zeltak mode. 2015-02-24 17:35:09 +01:00
Dave Davenport
da8902ac88 Replace signal by sigaction 2015-02-19 13:22:10 +01:00
Dave Davenport
8b50e94fea Make compiler more picky.
Add -Werror=missing-prototypes
2015-02-18 08:53:38 +01:00
Dave Davenport
a534a0f244 Rewrite of the configuration parsing, no longer duplicating options between Xrm and CMD.
* NEEDS TESTING.
2015-02-17 10:31:59 +01:00
Dave Davenport
bda97e0849 Throw a warning when using old commandline arguments.
* Give error on -now, -rnow, -snow, -key, -skey, -rkey
        * Update manpage.
2015-02-16 09:07:05 +01:00
Georgios Bitzes
07df49a5af Fix bugs relating to hotkeys with modifiers
This commit makes the following changes:
1) Fix a bad check introduced in dee0bfb, which checks the modstate of the
event with the keysym of the switcher, not its modmask:

        modstate & ( switchers[i].keysym )

I think it was broken before as well, a binary AND between the two masks
will not tell much about whether they are equal. Instead, the masks are
now checked for equality after removing LockMask and NumlockMask.

2) Stop binding to AnyModifier when none is used. This conflicts with the case
in which we want to bind different modes to the same key, but different
modifiers.

for example, rofi -key-run F2 -key-ssh alt+F2 -key-window shift+F2

Binding F2 with AnyModifier would prevent alt+F2 and shift+F2 from being used.

3) Remove UngrabKey from x11_grab_key to make the above example possible.
4) Refactor search for any of the global keybindings into function locate_switcher.
2015-02-16 03:20:28 +02:00
QC
dee0bfb821 Fix #128: Better handling of keybindings and remove deprecated launching.
See manpage.
2015-02-15 21:15:16 +01:00
QC
b6652a0221 Small move 2015-02-14 19:42:04 +01:00
Dave Davenport
7e1063803a Comments, compile order and Display argument. 2015-02-13 08:26:23 +01:00
QC
877c8051c6 Update copyright license. 2015-02-12 22:34:06 +01:00
QC
c760432a6c Moving files around, dialogs in dialog directory. 2015-02-12 22:26:28 +01:00
Dave Davenport
605fe4911c Refactor code, split out window switcher code. 2015-02-12 22:16:32 +01:00
Dave Davenport
9240a636d4 Fix stupid typo in previous commit, swapping columns/rows in positioning textboxes. 2015-02-12 07:55:23 +01:00
Dave Davenport
f74c8c1839 Cleanup. 2015-02-11 23:07:55 +01:00
Dave Davenport
a50219e903 Remove hmode. (Rather no implementation then a bad one.) 2015-02-10 07:42:40 +01:00
QC
e76db3fce3 Fix indenting. 2015-02-09 20:23:55 +01:00
QC
a69eb4e22c Simplify paste code. 2015-02-09 20:20:51 +01:00
QC
67cbd48c8b Add some comments, rename. 2015-02-09 20:05:30 +01:00
Dave Davenport
682907d340 Splitting over more files. 2015-02-09 19:35:51 +01:00
Dave Davenport
00e48fdcf7 fix tiny typo 2015-02-07 14:04:57 +01:00
Dave Davenport
fda5badeb6 Fix #125: Use shift-left/right for moving between switchers. 2015-02-06 08:45:21 +01:00
Dave Davenport
d9aef65ea7 Cleanups. 2015-02-04 09:37:34 +01:00
Dave Davenport
63fd534ba2 Move data around, constness, etc. 2015-02-03 08:21:59 +01:00
Dave Davenport
f86cf8988b Move stuff around. Try to reduce size rofi.c. 2015-02-03 08:00:33 +01:00
Dave Davenport
ca876feec6 Put i3 specific interaction code in separate file. 2015-02-02 14:49:19 +01:00
QC
d081b3e6f5 Fix #119. Fix dmenu mode when called with full path. 2015-02-01 20:15:21 +01:00
Dave Davenport
1a590aa8df Do not lock rofi when in daemon mode, only when showing. 2015-02-01 15:17:43 +01:00
Dave Davenport
5d4ab2e626 Always compile with Extra warnings. 2015-02-01 15:12:29 +01:00
Dave Davenport
1156c19cbf Fix compiler warnings about signed v.s. unsigned 2015-02-01 15:00:01 +01:00
Dave Davenport
382b93ae03 Fix LLVM compiler warnings. 2015-02-01 10:43:28 +01:00