Uli Schlachter
80a6f2f510
Clean up static variables in event_handle
...
This function needs the event numbers for events from some extensions. These are
assigned dynamically by the server. Right now, this is done by having a bunch of
static variables that are initialized when needed.
Refactor this to have a function event_init() instead that sets variable in
globalconf (where all of our state should be saved). Also, a preprocessor macro
is introduced to handle event dispatch which also looks a bit nicer.
Signed-off-by: Uli Schlachter <psychon@znc.in>
2016-04-09 15:44:54 +02:00
Emmanuel Lepage Vallée
6e8337e26a
Merge pull request #810 from Elv13/del_gears_screen
...
gears.screen: Merge into awful.screen
2016-04-06 23:44:44 -04:00
Emmanuel Lepage Vallee
8a0738a4bc
gears.screen: Merge into awful.screen
...
gears modules usually don't depend on Awesome C-API. This code has
been placed there for unclear reasons.
Also, there is ongoing work to unify each "concepts" API into one
single page. Having `gears.screen` go against this effort.
2016-04-06 23:32:44 -04:00
Daniel Hahler
b6810576b0
tests/run.sh: display number of errors [ci skip]
2016-04-06 01:54:18 +02:00
Uli Schlachter
9ea207afaa
Revert "Only define screens after the config is loaded"
...
This reverts commit e6037b4738
. It causes many
issues with non-trivial solutions that we first need to come up with. As a
middle ground, we will for now only emit signals if something changes after the
config is loaded.
See https://github.com/awesomeWM/awesome/issues/799 .
2016-04-05 08:53:14 +02:00
Daniel Hahler
a0e98c6157
travis-apidoc: shellcheck fixes, especially for non-empty GH_TOKEN
2016-04-05 00:59:29 +02:00
Daniel Hahler
c85bbeafdb
naughty.notify: handle non-existing screen, print a warning
...
Ref: https://github.com/awesomeWM/awesome/issues/796
2016-04-05 00:31:45 +02:00
Daniel Hahler
b87dac5075
Merge branch 'travis-fix-apidoc-revs'
...
Closes https://github.com/awesomeWM/awesome/pull/807 .
2016-04-05 00:29:06 +02:00
Daniel Hahler
c431f06538
travis-apidoc: important note about valid json
2016-04-05 00:28:21 +02:00
Daniel Hahler
a10431e7a4
travis-apidoc: reference PR only in merge commit for less noise in the PR
2016-04-05 00:27:57 +02:00
Daniel Hahler
7f17f6bc0f
travis-apidoc: add link to pull request to commit messages
2016-04-05 00:23:25 +02:00
Daniel Hahler
755088e87a
travis-apidoc: fix old/new revisions in PR comments
2016-04-05 00:23:16 +02:00
Daniel Hahler
742717ec22
doc: improve doc for awful.screen.focused
2016-04-04 23:49:43 +02:00
Daniel Hahler
aae81b7e2a
docs: add section about gdb to readme
...
This should maybe get added to a separate section/page altogether
instead, but in this short form it seems to fit here.
2016-04-04 22:44:49 +02:00
Daniel Hahler
ce3e6648ac
Travis: pin lua-term to 0.4-1 to fix the Lua 5.3 build
...
Ref: https://github.com/hoelzro/lua-term/issues/16
Ref: https://github.com/awesomeWM/awesome/pull/792#issuecomment-205123319
Closes: https://github.com/awesomeWM/awesome/pull/801
2016-04-04 20:57:28 +02:00
Daniel Hahler
0cbab1320c
Travis: update luarocks: 2.2.2 => 2.3.0
2016-04-04 20:41:22 +02:00
Daniel Hahler
6d550d478c
Merge pull request #800 from blueyed/doc-fixes
...
Some minor doc/typo fixes
2016-04-04 20:37:13 +02:00
Daniel Hahler
ae17c66e27
Merge pull request #798 from blueyed/fix-crash-in-screen_getbycoord
...
Fix crash in screen_getbycoord without any screens [ci skip]
2016-04-04 20:34:12 +02:00
Daniel Hahler
187b32630f
Merge pull request #797 from blueyed/display-screen-count-with-checkscreen
...
luaA_checkscreen: display number of existing screens with error
[ci skip]
2016-04-04 20:33:45 +02:00
Daniel Hahler
c86c873779
minor: clarify mod-ctrl-shift-X comment; fix typo
2016-04-04 20:30:48 +02:00
Daniel Hahler
df21a85a9a
doc: fixes for spawn.with_line_callback
2016-04-04 20:30:48 +02:00
Daniel Hahler
5db280ab73
minor: doc / formatting
2016-04-04 20:30:44 +02:00
Uli Schlachter
b643279e4a
Fix crash in screen_getbycoord without any screens
...
Ref: https://github.com/awesomeWM/awesome/issues/793#issuecomment-205245346
2016-04-04 20:13:27 +02:00
Daniel Hahler
449974ca61
luaA_checkscreen: display number of existing screens with error
...
This is meant to be helpful in the case of 0 existing screens, e.g.
during executing the config initially.
2016-04-04 20:04:19 +02:00
Emmanuel Lepage Vallee
e24cb901cb
Typo: Ajust -> Adjust
2016-04-04 00:56:11 -04:00
Emmanuel Lepage Vallée
bb8a9dd297
Merge pull request #792 from Elv13/fix_build
...
Fix a build breakage accidentally introduced by a merging pull requests
The build failed because both PR were developed in parallel and made different
assumptions. Last week new test framework assumed only CAPI normally print on stderr and #787
assume printing warnings on stderr has no consequences. Both assumptions were true when the
code was published, but they no longer were by the time #787 was merged.
2016-04-03 23:54:16 -04:00
Emmanuel Lepage Vallee
4819be4f4f
build: Do not exit when gears.debug.print_warning are issued
2016-04-03 23:45:56 -04:00
Daniel Hahler
3e5b1b3ba9
Merge pull request #782 from psychon/wallpaper-change
...
Changes to wallpaper change
2016-04-03 18:35:27 +02:00
Daniel Hahler
3ad0a9d8d2
Merge pull request #780 from psychon/screen-add-signal
...
Add screen add signal
2016-04-03 18:35:08 +02:00
Daniel Hahler
0f615670e3
Merge pull request #787 from awesomeWM/lgi-stream-end
...
awful.spawn: Reliably detect end-of-file
2016-04-03 18:34:04 +02:00
Emmanuel Lepage Vallée
c93ac5243f
Merge pull request #785 from Elv13/geometry_overhaul_p1
...
Geometry overhaul part 1
2016-04-02 22:06:23 -04:00
Emmanuel Lepage Vallee
8a09ef707a
Fix an ldoc mistake
2016-04-02 04:08:24 -04:00
Emmanuel Lepage Vallee
421c10b19a
Change autogenerated images name
...
Github drop files when the leading character is ., ~, # or _
This commit add a prefix in front of the name to avoid leading
underscores.
2016-03-31 23:42:05 -04:00
Emmanuel Lepage Vallee
ef5ec333cc
tests: Test the remaining existing `awful.placement` methods.
...
Notes that some asserts are missing because the tests fail. This
will be fixed later. It is not a regression.
2016-03-31 05:04:24 -04:00
Emmanuel Lepage Vallee
f7b5240571
awful.placement: Improve documentation
2016-03-31 05:04:24 -04:00
Emmanuel Lepage Vallee
4bc3f04ec1
tests: Test `awful.placement.maximize` aliases
2016-03-31 05:04:24 -04:00
Emmanuel Lepage Vallee
12c80e3977
awful.placement: Add `maximize` aliases
...
Use the same conventions as `align` and `stretch` aliases
2016-03-31 05:04:24 -04:00
Emmanuel Lepage Vallee
7ab83afbbc
tests: Test `awful.placement.maximize`
2016-03-31 05:04:24 -04:00
Emmanuel Lepage Vallee
59b24cbd35
awful.placement: Add a `maximize` method
...
It should eventually be re-used by ewmh.lua
2016-03-31 05:04:24 -04:00
Emmanuel Lepage Vallee
7b7d09edff
tests: Test all `awful.placement.stretch` aliases
2016-03-31 05:04:24 -04:00
Emmanuel Lepage Vallee
19913ba62d
awful.placement: Add various `stretch` aliases
...
Use the same convention as `align` aliases
2016-03-31 05:04:24 -04:00
Emmanuel Lepage Vallee
7b7802f559
tests: Test `awful.placement.stretch`
2016-03-31 05:04:24 -04:00
Emmanuel Lepage Vallee
b4d2a5c541
awful.placement: Add a `stretch` method
...
This will eventually be re-used by `awful.wibox`
2016-03-31 05:04:24 -04:00
Emmanuel Lepage Vallee
dd0ea33015
tests: Test the new `awful.placement` aliases
2016-03-31 05:04:24 -04:00
Emmanuel Lepage Vallee
d85b7eb3e5
awful.placement: Add aliases for the `align` method
...
This re-use the `align` code for the existing `centered`,
`center_horizontal` and `center_vertical` methods. It also
add all the other edges and corners alias.
2016-03-31 05:04:24 -04:00
Emmanuel Lepage Vallee
db2f545411
tests: Test `awful.wibox.align`
2016-03-31 05:04:24 -04:00
Emmanuel Lepage Vallee
456f0bb70c
awful.placement: Add `align` method
...
This allow to place a client, wibox or cursor at the
edges, corners or center of the parent geometry.
This also add code from `awful.wibox` to ajust the workarea.
Future commit will use `awful.placement` to place `awful.wibox`.
2016-03-31 05:04:24 -04:00
Emmanuel Lepage Vallee
61d143fe98
tests: Test `awful.placement.closest_corner`
...
The output image look fine, some `assert()` could be added.
2016-03-31 05:04:24 -04:00
Emmanuel Lepage Vallee
5a5f0167cf
awful.placement: Add `closest_corner`
...
This commit also add many local helper functions. They will be
re-used by the next few commits.
2016-03-31 05:04:24 -04:00
Emmanuel Lepage Vallee
ea40fbd198
shims: Add property::workarea
2016-03-31 05:04:24 -04:00