Emmanuel Lepage Vallee
83df30d3a4
awful.screen.focused: Fix documentation and make more flexible.
...
Telling the user a method can be monkeypatched is **not** a good
idea.
2016-03-26 03:37:04 -04:00
Emmanuel Lepage Vallee
e66166ccee
awful.screen: Add a method to apply various paddings.
...
This avoid code duplications.
2016-03-26 03:37:04 -04:00
Emmanuel Lepage Vallee
9fd329c449
awful.screen.padding: Always return a valid table.
...
This also fix a bug when the user edit the table. In that case,
the padding was (accidentally) changed without the correct
signals.
2016-03-26 03:15:00 -04:00
Emmanuel Lepage Vallee
242652be94
awful.screen.padding: Support padding number value
2016-03-26 03:14:42 -04:00
Emmanuel Lepage Vallee
d2c5e36294
Fix a documentation typo
2016-03-23 18:12:04 -04:00
Uli Schlachter
95e5bdf5d2
Use the new way to iterate over screens in Lua
...
This gets us one step closer to removing screen indices.
Signed-off-by: Uli Schlachter <psychon@znc.in>
2016-03-06 14:05:28 +01:00
Emmanuel Lepage Vallee
924e889271
awful.screen: Fix regression
2016-02-29 04:21:10 -05:00
Uli Schlachter
d56b5c031b
Remove some now unnecessary uses of s.index
...
Because all our Lua code can now work with screen objects, most of the uses of
s.index that the previous patches added for reaching this goal can be removed
again.
Signed-off-by: Uli Schlachter <psychon@znc.in>
2016-02-27 09:24:19 +01:00
Uli Schlachter
c17e331b92
Support screen objects in awful.screen
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2016-02-26 19:56:07 +01:00
Daniel Hahler
872c321e81
Merge pull request #507 from psychon/closest_screen
...
Update the definition of "closest screen" to take into account that a
screen is a rectangle and not just the top-left corner.
Closes https://github.com/awesomeWM/awesome/pull/507 .
2015-10-26 23:07:43 +01:00
Uli Schlachter
0060ea9d63
Fix awful.screen.focus
...
This is broken since 23b2fae6a9
.
Closes https://github.com/awesomeWM/awesome/pull/516 .
Signed-off-by: Uli Schlachter <psychon@znc.in>
2015-10-11 17:10:16 +02:00
Uli Schlachter
b1b2852887
awful.screen.getbycoord: Use the same algorithm as in C
...
We recently changed the C function screen_getbycoord() and this commit makes
awful.screen.getbycoord() use the same algorithm.
Signed-off-by: Uli Schlachter <psychon@znc.in>
2015-10-10 20:25:26 +02:00
lesell_b
4003331b41
fix missing scope on the mouse position table
2015-10-09 21:27:17 +02:00
lesell_b
f2b6aa105c
Update saved mouse position on screen focus change
...
Signed-off-by: lesell_b <lesell_b@epitech.eu>
2015-10-08 04:40:59 +02:00
lesell_b
23b2fae6a9
Remember mouse position per screen
...
The mouse position is saved and restored when focusing another screen
If the target screen has no saved mouse position, the relative position
of the current screen is used
Signed-off-by: lesell_b <lesell_b@epitech.eu>
2015-10-08 03:52:03 +02:00
Daniel Hahler
cbe684efd1
Add awful.screen.focused [FS#1029]
...
This allows to configure / override what gets considered to be the
"focused screen".
Ref: https://awesome.naquadah.org/bugs/index.php?do=details&task_id=1029
Closes https://github.com/awesomeWM/awesome/pull/94 .
2015-07-21 12:51:45 +02:00
Daniel Hahler
cb7f4b06eb
Use `hints` table argument with `request::activate` signal
2015-06-25 06:47:39 +02:00
Daniel Hahler
ed09d8ed4f
Use request::activate with raise=false instead
...
Ref: https://github.com/awesomeWM/awesome/pull/224#issuecomment-101790416
2015-06-25 06:47:39 +02:00
Daniel Hahler
401f21f8e2
Add request::focus signal, with ewmh.focus being the default handler
...
This still does `client.focus = c` by default, but allows to customize
it.
This was initially suggested in #194 , but by using `request::activate`
instead, which would not be the same. Therefore a new signal is being
used instead.
Helped-by: Samir Benmendil <samir.benmendil@gmail.com>
2015-06-25 06:47:39 +02:00
Julian Wollrath
6cc7be512c
Remove the *.in from all files.
...
Signed-off-b: Julian Wollrath <jwollrath@web.de>
2015-06-19 22:33:32 +02:00