Emmanuel Lepage Vallee
b4ece0f053
doc: Use an explicit tag for all static functions.
...
This way their name doesn't get mangle by the broken magic. It will also
eventually allow to `error()` in the template when the implicit
`@function` is used.
This commit also fixes a large number of issues found while
proof-reading everything.
2019-06-08 18:14:13 -04:00
Daniel Hahler
36d7535cd5
Minor: typos, Makefile aesthetics ( #2690 )
...
* lib/awful/mouse/resize.lua: s/extendable/extensible
* Fix code comment typo: s/find/found
* Makefile: remove -n with echo
Missed in e9b5e28d1
.
2019-02-22 08:42:43 +01:00
ma9e
bed7abf5d1
Add support for gaps between snapped contents ( #2208 )
2018-04-22 02:02:52 -04:00
Emmanuel Lepage Vallee
3ffbe4c03b
client: Prevent an error when using the "after" mode
...
Fix : #2101
2017-11-05 20:39:07 +01:00
Emmanuel Lepage Vallee
2303e31355
mouse: Fix a bad refactoring
...
The `wibox_under_mouse` property was renamed `current_wibox` but
a call wasn't updated.
2017-08-19 22:50:17 -04:00
Uli Schlachter
11216d8ca4
awful.mouse.snap: Finish temporary image
...
This function creates a temporary image surface to set the shape of a
wibox. After this commit, the image is now finished after use. This
results in most of the image's memory to be freed immediately instead of
waiting for the garbage collected to collect it.
Related-to: https://github.com/awesomeWM/awesome/issues/1958
Signed-off-by: Uli Schlachter <psychon@znc.in>
2017-08-04 13:14:51 +02:00
Daniel Hahler
a87387d9f3
doc fixes for awful.mouse.resize, awful.rules, awful.util ( #1717 )
2017-04-10 21:57:12 +02:00
Kevin Zander
7687275607
Move awful.util.deprecate and awful.util.deprecate_class to gears.debug
...
Change all awful.util function calls to gears.debug function calls
Update all old deprecate calls to have deprecated_in=4
2017-03-15 20:08:22 -05:00
Uli Schlachter
ad113fa3aa
Fix code using awful.util.cycle
...
This gets rid of lots of deprecation warnings.
Signed-off-by: Uli Schlachter <psychon@znc.in>
2017-03-06 17:15:40 +01:00
Daniel Hahler
bd02ee8558
minor: code style and comment fixes
2017-02-16 10:40:54 +01:00
Emmanuel Lepage Vallee
51ddb5639e
mouse: Handle `maximized` client like `fullscreen` ones.
...
There is already a way to prevent them from moving them, but the
next few commits will remove it. There is no reasons to handle
this differently from fullscreen clients.
2017-02-07 11:12:40 -05:00
Holger Schurig
bf2c1993db
doc: fix signals ( #1455 )
...
- rule reordering was mentioned twice in the NEWS
- fix all shown luadoc errors
- add missing descriptions for signals in module "awesome"
2017-01-28 15:03:56 +01:00
Uli Schlachter
2b79165622
Add missing vim modelines in lib/
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2016-12-31 14:07:13 +01:00
Daniel Hahler
71259748d2
Minor doc and code style fixes
...
Closes https://github.com/awesomeWM/awesome/pull/1215 .
2016-11-21 22:38:40 +01:00
Uli Schlachter
259c4f716f
Remove @release @AWESOME_VERSION@ everywhere ( #1157 )
...
It does not provide much value. The version number is already known to
ldoc globally in the "description" variable.
Signed-off-by: Uli Schlachter <psychon@znc.in>
2016-10-09 22:36:20 +02:00
Emmanuel Lepage Vallée
39aace50e9
Merge pull request #1084 from Elv13/use_screen_props
...
Use screen props
2016-09-11 04:40:35 -04:00
Emmanuel Lepage Vallee
98b561e806
mouse/drag_to_tag: Do not use the deprecated geometry access
2016-09-11 02:09:56 -04:00
Emmanuel Lepage Vallee
e89a72acd5
mouse/snap: Do not use the deprecated geometry access
2016-09-11 02:09:49 -04:00
Emmanuel Lepage Vallee
9b96b4b448
resize: Use the right mouse cursor
...
Fix #1018
2016-09-10 23:56:10 -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 Vallee
f20053bb33
awful.mouse: Fix 4 invalid function names
2016-07-30 15:49:46 -04:00
Julian Wollrath
ed34df119a
Change move and resize cursors
2016-07-26 15:13:42 +02:00
Emmanuel Lepage Vallee
722879bcf7
mouse.resize: Handle when there is no selected tag
...
This should be very rare, but _is_ possible.
2016-06-27 02:44:07 -04:00
Emmanuel Lepage Vallée
d4dc579105
resize: restore the fleur cursor and add a beautiful option ( #957 )
...
Fixes #956
2016-06-10 23:53:55 +02:00
Uli Schlachter
cdf16d4660
awful.mouse: Implement read-only properties
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2016-06-08 20:28:30 +02:00
Uli Schlachter
b84b03f15d
Fix client snapping ( #951 )
...
First some reminder on how client geometries works (in X11, awesome just copied
that!):
- The position (x,y) defines where the border of the client begins
- This means that the content starts at (x+border_width,y+border_width)
- However, the size is the size of the client without border
- Thus, the client covers the rectangle from (x,y) to (x+2*bw,y+2*bw)
The client snapping code got this wrong. It only deals with rectangles and thus
for things to work as expected, the width/height have to be increased by two
times the border width. When snapping a client against other visible clients,
the geometry of the client to snap against wasn't calculated correctly.
This was apparently noticed at one point and worked around by decreasing the
position by two times the border width. While this is terribly wrong, it
actually makes things work correctly when snapping to the right or bottom edge
of a client, but breaks for the other edges.
Fix this by just calculating things correctly.
This is based on a patch from jk411.
Fixes: https://github.com/awesomeWM/awesome/issues/928
Signed-off-by: Uli Schlachter <psychon@znc.in>
2016-06-05 22:00:11 +02:00
Emmanuel Lepage Vallee
4b395bea81
mouse: Port wibox.move to the placement API
2016-05-15 17:17:12 -04:00
Emmanuel Lepage Vallee
dafd29f2a3
awful.wibox: Rename to awful.wibar
...
Why:
* Two different (but related) concepts had the same name
* Users were confused for years on IRC
* The wibar name was already in use in some doc to avoid confusion
2016-05-15 17:17:12 -04:00
Emmanuel Lepage Vallee
21c9766aa6
placement: Fix under_mouse
...
The function stopped actually setting the geometry...
This was missed by tests because of an oversaw elsewhere.
2016-05-15 17:17:12 -04:00
Emmanuel Lepage Vallée
504018343b
Merge pull request #873 from Elv13/geometry_overhaul_p3.01
...
Geometry overhaul p3.01
2016-05-05 16:23:11 -04:00
Emmanuel Lepage Vallee
58ecc69af8
mouse: Add 'current_widget'
2016-05-04 17:25:05 -04:00
Emmanuel Lepage Vallee
cf0a4b42b4
mouse: Add `current_widgets`
2016-05-04 17:25:05 -04:00
Emmanuel Lepage Vallee
c1fc222d89
mouse: Fix `current_wibox`
2016-05-04 17:25:05 -04:00
Daniel Hahler
7bd9cd7fd1
doc: fix usage of "mouse.move" as a string ( #871 )
...
Ref: https://github.com/awesomeWM/awesome/issues/834#issuecomment-216141389 .
2016-05-03 12:06:50 +02:00
Emmanuel Lepage Vallee
3dab42e6a2
mouse: Restore support for layouts with their own mousegrabber
2016-04-30 04:27:34 -04:00
Emmanuel Lepage Vallee
cd632e4a84
mouse.dragtotag: Fix and port to the new move API
...
It wasn't really working as it would in other WM. It might have
been a feature, but I got the behavior in line with KDE and Gnome.
2016-04-30 04:27:34 -04:00
Emmanuel Lepage Vallee
a62e749216
mouse.snap: Add some configuration options
2016-04-30 04:27:34 -04:00
Emmanuel Lepage Vallee
e31563b056
mouse.move: Return the corner
2016-04-30 04:27:34 -04:00
Emmanuel Lepage Vallee
a39b93f2e3
mouse: Add is_*_mouse_button_pressed helper properties.
2016-04-30 04:27:34 -04:00
Emmanuel Lepage Vallee
e78ad709e7
doc: Move request:: handler to their own documentation section
2016-04-30 04:27:34 -04:00
Emmanuel Lepage Vallee
47fffb5eee
mouse: Add current_client property
...
It is called wibox instead of drawin because from the user
point of view, it will be a wibox anyway.
2016-04-30 04:27:34 -04:00
Emmanuel Lepage Vallee
fc2d359722
doc: Add a coords example
...
This forced the `coords()` documentation to be moved to Lua.
Keeping it in the C file caused yet another example CMake hack.
2016-04-30 04:27:34 -04:00
Emmanuel Lepage Vallee
800b8c7d4a
doc: Merge awful.mouse and mouse documentation pages
...
Just like client, tag and screen, this is to avoid new users some
confusing implementation details.
2016-04-30 04:27:34 -04:00
Emmanuel Lepage Vallee
0b6cd90dce
mouse: Implement the Lua custom property handler
2016-04-30 04:27:34 -04:00
Emmanuel Lepage Vallee
07e1b975a7
mouse.snap: Use a composed placement function
2016-04-30 04:27:34 -04:00
Emmanuel Lepage Vallee
80ee4e9f5d
awful.mouse.snap: Add a visual cue
2016-04-30 04:27:34 -04:00
Emmanuel Lepage Vallee
91cdc4a899
awful.mouse.snap: Support windows 7 style screen edges snap
2016-04-30 04:27:34 -04:00
Emmanuel Lepage Vallee
baec2efe2d
awful.mouse.move: Fix snapping support
2016-04-30 04:27:34 -04:00
Emmanuel Lepage Vallee
86ca6222e2
awful.mouse.snap: Add a configurable default distance
2016-04-30 04:27:34 -04:00
Emmanuel Lepage Vallee
2624370cc0
awful.mouse: Move snap into a submodule
2016-04-30 04:27:34 -04:00