Emmanuel Lepage Vallee
8468d06350
placement: Port next_to_mouse to the new API
2016-08-20 16:21:48 -04:00
Emmanuel Lepage Vallee
ea52b199c6
tooltip: Add align support
2016-08-20 16:21:48 -04:00
Emmanuel Lepage Vallee
ade3fabaa9
tooltip: Make the 'visible' property dynamic
2016-08-20 16:21:48 -04:00
Emmanuel Lepage Vallee
2910a007df
tooltip: Turn into a class
...
As done with everything else
2016-08-20 16:21:48 -04:00
Emmanuel Lepage Vallee
211907def2
placement: Add `next_to`
...
This commit add the last placement function imported from the
Radical module.
It allows to place a wibox/client next to another object. It tries
to find the best fit. It also support wibox widgets.
This is intended for tooltips and menus, but can also be used in
`awful.rules` to place the new client as close as possible to the
focused one without overlap.
2016-08-20 16:21:48 -04:00
Emmanuel Lepage Vallee
ce5cdb49ed
mouse: Add the current_widget_geometry property
...
Apparently, __index cannot return multiple values, so the previous
code wasn't working.
2016-08-20 16:21:48 -04:00
Emmanuel Lepage Vallée
76d0c458b0
Merge pull request #1031 from Elv13/add_recursive_signal
...
Add recursive signal for widgets trees.
2016-08-20 16:01:54 -04:00
Emmanuel Lepage Vallee
732b170cb0
doc: Fix the awful.widget.button documentation
...
It was missing the macros.
2016-08-20 15:41:12 -04:00
Emmanuel Lepage Vallee
46f6d28bdf
tests: Test recursive signals on mouse events.
2016-08-20 15:41:12 -04:00
Emmanuel Lepage Vallee
370d333590
widget: Add recursive signals.
...
This allows to ignore containers and layouts when a signal is sent.
2016-08-20 15:41:12 -04:00
Uli Schlachter
c22b939630
Be less strict about warnings from "example tests" ( #1045 )
...
The build is no longer aborted when one of the "example tests" produces a
message on stderr. However, on Travis this requirement is still made. This
should catch "bad errors" via Travis while not breaking the build for users.
Fixes: https://github.com/awesomeWM/awesome/issues/821
Signed-off-by: Uli Schlachter <psychon@znc.in>
2016-08-20 18:59:28 +02:00
Daniel Hahler
63c8a310d0
doc: fix missing parenthesis with client examples ( #1046 )
2016-08-20 18:59:01 +02:00
Daniel Hahler
e723d183e8
Merge pull request #1011 from psychon/commandline-search
...
Commandline option to add a directory to Lua's search path.
2016-08-20 18:58:11 +02:00
Uli Schlachter
71049a67f7
tests/run.sh: Use --search instead of $LUA_PATH
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2016-08-20 16:04:11 +02:00
Uli Schlachter
24bb38969d
Add an option to add a path to $LUA_PATH
...
The same effect could be achieved by modifying $LUA_PATH or with symlinks, but
having a special option to do this seems easier.
Note that the man page translations were generated via Google translate. I'm
looking forward to people submitting correct translations...
Inspired-by: https://github.com/awesomeWM/awesome/pull/485
Signed-off-by: Uli Schlachter <psychon@znc.in>
2016-08-20 16:04:11 +02:00
Uli Schlachter
f95449a4bb
man pages: Update synopsis
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2016-08-20 16:04:10 +02:00
Emmanuel Lepage Vallée
cbda387677
Merge pull request #1008 from blueyed/tests-run-from-tests-dir
...
tests/run: change to script dir first
2016-08-20 00:15:57 -04:00
Emmanuel Lepage Vallee
ec923e96fc
layout: Add more signals.
2016-08-17 02:31:16 -04:00
Daniel Hahler
23ad19d988
travis-apidoc.sh: remove misleading comment
...
Apparently a leftover when it was in .travis.yml, but it still makes
sense to use those env vars instead of calling `git-confog`, which is
not stateless.
[ci skip]
2016-08-15 17:37:54 +02:00
Daniel Hahler
65e8b9c36b
Travis: fix return/exit usage ( #1043 )
...
Return 0 (success) in do_codecov function. It is used in "&&" chains,
and should just do nothing for "coverall", but not break it.
This also makes use of "set -ev" instead of "exit" in general.
The "exit" caused the whole build to stop, but it was still green!
https://travis-ci.org/awesomeWM/awesome/jobs/151943526
"exit" is not really supported:
https://docs.travis-ci.com/user/customizing-the-build/#How-does-this-work%3F-(Or%2C-why-you-should-not-use-exit-in-build-steps)
This also wraps (most of) the "cd" commands in a subshell, to ensure
being in the repo directory all the time (except for $BUILD_IN_DIR).
2016-08-14 02:25:20 +02:00
Emmanuel Lepage Vallée
40b1a99980
Merge pull request #1041 from Elv13/fix_1039
...
Fix #1039
2016-08-13 14:22:46 -04:00
Daniel Hahler
0d1331e592
Travis: allow failures with LuaJIT ( #1025 )
...
This is not nice and we should still try to fix it, but it seems better
to have green PRs without triggering a rebuild etc.
See https://github.com/awesomeWM/awesome/issues/982#issuecomment-231522318 .
2016-08-13 00:21:33 +02:00
Emmanuel Lepage Vallee
9d69448ac1
tests: Test mouse.move on odd sized clients.
...
Close #1039
2016-08-12 17:02:33 -04:00
Emmanuel Lepage Vallee
19d4a3f602
placement.under_mouse: Fix a rounding error.
...
When object size contains odd numbers, the result was +1px off.
2016-08-12 17:02:33 -04:00
Emmanuel Lepage Vallée
e3c24c8e09
Revert "screen: Fix potential nil index" ( #1037 )
...
This reverts commit facf676b13
.
Using capi.client.focus.screen to decide which screen is focused breaks
a multiscreen setup. At least makes it extremely annoying to use.
In particular, if you have a focused client on screen 1, move the mouse
to screen 2 and launch a new client, the new client appears in screen 1,
since screen.focused reports that current focused screen is 1, not 2
because of the focused client.
Close #1035
Fix #1029
2016-08-11 19:03:17 +02:00
Emmanuel Lepage Vallée
03dc4767d5
Merge pull request #1036 from cmertz/master
...
remove client.jumpto deprecation warnings
2016-08-10 12:17:49 -04:00
cmertz
f5f8998d0c
use c:jump_to instead of client.jumpto
2016-08-10 13:02:02 +02:00
Emmanuel Lepage Vallée
4ef524d76e
Merge pull request #1034 from Elv13/fix_spawn_crash
...
spawn: Fix crash when called with an empty table.
2016-08-09 19:13:18 -04:00
Emmanuel Lepage Vallee
da62aec055
tests: Test spawn empty command corner case
2016-08-09 18:50:34 -04:00
Emmanuel Lepage Vallee
b8eeb76608
spawn: Fix crash when called with an empty table.
...
The spawn code didn't properly handle the case where there
is an empty command stream. In that case, no error is
reported as there is simply nothing to do. The error message
was probed and this caused an invalid read and crash.
Fix #1033
2016-08-09 18:32:31 -04:00
Emmanuel Lepage Vallée
b470f8dfcf
Merge pull request #1026 from Elv13/misc_fixes
...
Misc fixes
2016-08-02 14:03:07 -04:00
Emmanuel Lepage Vallee
3587de5721
tests: Test the declarative widget system on wiboxes
2016-08-01 16:10:53 -04:00
Emmanuel Lepage Vallee
220dc4c5e5
doc: Document titlebar arguments.
...
It was reported as incomplete on IRC.
2016-08-01 15:35:00 -04:00
Emmanuel Lepage Vallee
facf676b13
screen: Fix potential nil index
...
This looks like a copy-paste error.
2016-08-01 15:29:02 -04:00
Emmanuel Lepage Vallee
41feec02a5
widget.base: Fix the root get_children_by_id() widget.
...
If the wibox root widget had an id, it was added to the properties,
but not the get_children_by_id() table
2016-08-01 15:26:29 -04:00
Uli Schlachter
128933c115
Correctly disable RandR if it provides no usable data ( #1012 )
...
Fixes: https://github.com/awesomeWM/awesome/issues/1003
Signed-off-by: Uli Schlachter <psychon@znc.in>
2016-07-31 16:52:44 +02:00
Emmanuel Lepage Vallee
f20053bb33
awful.mouse: Fix 4 invalid function names
2016-07-30 15:49:46 -04:00
Emmanuel Lepage Vallée
e472339011
Merge pull request #1013 from psychon/screen_area_signals
...
Screen area signals
2016-07-27 21:34:53 -04:00
Emmanuel Lepage Vallée
739ab8adc2
Merge pull request #1017 from juw/master
...
Change move and resize cursors
2016-07-27 21:33:35 -04:00
Emmanuel Lepage Vallée
e8c8a5e7fe
Merge pull request #1020 from cmertz/master
...
restore client.border_width after fullscreen
2016-07-27 20:54:34 -04:00
cmertz
2231158adf
change test value for client.border_width
2016-07-27 13:43:28 +02:00
cmertz
4389297b58
restore client.border_width after fullscreen
2016-07-27 09:54:42 +02:00
cmertz
41133c9836
test client.border_width restore after fullscreen
2016-07-27 09:50:11 +02:00
Julian Wollrath
ed34df119a
Change move and resize cursors
2016-07-26 15:13:42 +02:00
Emmanuel Lepage Vallée
78171ea038
Merge pull request #1010 from Elv13/fix_declarative_widgets
...
widgets: Apply attributes before adding the widgets
2016-07-24 14:58:07 -04:00
Emmanuel Lepage Vallée
0b4c4a03b9
Merge pull request #1009 from Elv13/add_event_metadata
...
drawable: Add more data to the find_widgets metadata table
2016-07-24 14:57:17 -04:00
Uli Schlachter
6e8b4f99f8
awful.layout: Move clients if a screen is moved
...
Fixes: https://github.com/awesomeWM/awesome/issues/976
Signed-off-by: Uli Schlachter <psychon@znc.in>
2016-07-24 16:36:03 +02:00
Uli Schlachter
bdfc0c0d71
screen: Mention the property::geometry signal in the docs
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2016-07-24 16:33:06 +02:00
Uli Schlachter
311a41b646
screen: Add old geometry as argument to property::geometry
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2016-07-24 16:32:12 +02:00
Uli Schlachter
338064ae96
screen: Add old workarea as argument to property::workarea
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2016-07-24 16:29:56 +02:00