Emmanuel Lepage Vallee
c88c51f74d
layout: Fix delayed arrange regression
2015-02-22 22:32:16 +00:00
Daniel Hahler
d1984a7a1f
Merge pull request #95 from blueyed/signal-client-property-screen-old
...
Send old_screen with "property::screen" client signal
2015-02-20 23:25:38 +01:00
Emmanuel Lepage Vallée
aa0b9becf7
Merge pull request #101 from silverhammermba/drylayouts
...
DRY off layout code
2015-02-19 19:33:36 +00:00
Max
52ec0ebd93
Don't create borders/set client geometry in layouts
...
Instead, layouts simply store client geometries in a table.
awful.layout.arrange corrects these for border widths and applies them.
2015-02-15 11:25:11 -05:00
Daniel Hahler
5140ef1764
Send old_screen with "property::screen" client signal
...
This should improve layout re-arranging with 2+ screens.
2015-02-15 13:26:46 +01:00
Daniel Hahler
17776051ec
layout.arrange: delay a call per screen
...
This is a followup / fix for 7410646
, which did not handle multiple
arrange calls to different screens per main lopp.
2015-02-15 12:09:16 +01:00
Daniel Hahler
74106462ac
Do layout.arrange only once per main loop
...
This uses timer.delayed_call to arrange the layouts only once per main
loop.
2015-02-14 15:10:31 +01:00
Uli Schlachter
dcc348d75e
Fix some random ldoc warnings
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2014-04-13 18:06:49 +02:00
Uli Schlachter
271f084735
screen: Turn into proper lua object
...
This makes the screen objects use our existing infrastructure for implementing
classes and objects with lua instead of hand-rolling an own version.
This results in some small API change: Screen objects no longer have an
add_signal() function and instead this function exists on the parent screen
class.
Signed-off-by: Uli Schlachter <psychon@znc.in>
2014-03-30 16:37:19 +02:00
Uli Schlachter
3cbdc2a79f
Use awful.layout.layouts for implementing optional parameters
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2014-03-28 13:29:16 +01:00
Emmanuel Lepage Vallee
bfc6065ad9
Make 'layouts' global
2014-03-28 13:24:04 +01:00
Daniel Hahler
31e3399abe
Fallback to comparing layout names in awful.layout.inc
...
This helps in cases where you have accidentally cloned an entry from
`layouts`.
Previously, no current index would be found and the function would
silently fail.
Signed-off-by: Daniel Hahler <git@thequod.de>
2014-03-14 20:37:24 +01:00
Poggles
bd05219a72
Make awful.layout.inc() accept a screen number
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2013-02-19 19:49:07 +01:00
Uli Schlachter
96e03cb45d
Lots of random documentation fixes
...
This is mostly about mis-named parameters, but also other small things.
Signed-off-by: Uli Schlachter <psychon@znc.in>
2012-11-19 14:09:10 +01:00
Uli Schlachter
8348d44444
Tags: Remove screen property
...
A tag's screen is now implemented purely in lua and it is no longer C's
business.
Signed-off-by: Uli Schlachter <psychon@znc.in>
2012-10-23 10:05:34 +02:00
Uli Schlachter
5d95559977
layout: Remove duplicate capi definition (FS#1032)
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2012-08-24 21:57:10 +02:00
Arvydas Sidorenko
4ca0298564
Ported awful.layout to lua 5.2
...
Tested with lua 5.1: all good
Signed-off-by: Arvydas Sidorenko <asido4@gmail.com>
Signed-off-by: Uli Schlachter <psychon@znc.in>
2012-06-16 17:37:30 +02:00
Gregor Best
c2ea920ca0
remove encoding=utf-8 from modelines
...
This option is no longer valid in modelines, so it has been removed from
all modelines using the following shellscript:
#!/bin/ksh
git ls-tree -r HEAD | cut -f2 | while read f; do
egrep -e '^(//|--) vim: .*encoding=' $f >/dev/null || continue
sed -E -e '/^(\/\/|--) vim:/s/:encoding=utf-8//' $f > /tmp/foo
mv /tmp/foo $f
done
Signed-off-by: Gregor Best <gbe@ring0.de>
Signed-off-by: Uli Schlachter <psychon@znc.in>
2011-09-11 17:34:09 +02:00
Uli Schlachter
1ce0b7915b
Use signal emitions on classes
...
Since 3fbb5f1535
"luaobject: emit signals on class too" when a signal
is emitted on some object, it will also be emitted on the class. This means that
we don't have to connect our signals via the "new" signal anymore, but can
instead connect to the signal on the class.
(Of course, the signal on the class gets as first argument the object on which
the signal was emitted)
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-08-26 18:31:06 +02:00
Uli Schlachter
ab4c151ed8
Add signals before using them
...
This commit makes it an error if an unknown signal is connected, disconnected or
emitted. All signals have to be added before they can be used.
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-08-25 23:00:36 +02:00
Julien Danjou
6d332f07a0
lua{class,object}: rename signals functions
...
I knew this was wrong at the beginning, f*ck.
Signed-off-by: Julien Danjou <julien@danjou.info>
2010-08-25 20:28:20 +02:00
Julien Danjou
64becbc047
awful.layout: emit arrange signal
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-11-06 12:40:13 +01:00
Julien Danjou
371ee3e8cc
titlebar: remove
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-10-20 20:42:05 +02:00
Gregor Best
851889f2b7
awful.screen: fix padding
...
Signed-off-by: Gregor Best <gbe@intepi.net>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-10-09 20:05:42 +02:00
Julien Danjou
9c21ce8907
awful.layout: listen to geometry signal and lock arrange (FS#625)
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-09-18 11:31:49 +02:00
Julien Danjou
26e2e2f375
awful.layout: use attached_add_signal
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-21 15:30:48 +02:00
Julien Danjou
ef588bf8b8
awful.layout: listen for workarea size changes
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-21 15:30:48 +02:00
Julien Danjou
d6fd7f1116
awful.wibox: update strut on wibox attachement
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-21 15:30:48 +02:00
Julien Danjou
65825bdd22
awful: move hooks to signals
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-21 15:30:47 +02:00
Julien Danjou
fc035005ba
client: emit signal on list changes
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-21 15:30:47 +02:00
Julien Danjou
cb2cad6b09
client: emit class signal on focus
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-19 16:05:59 +02:00
Julien Danjou
5a70fb6395
awful.layout: do not pass specific param in arrange (FS#541)
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-07 15:51:32 +02:00
Gregor Best
7a73227108
awful.layout: fix call to :isvisible()
...
Signed-off-by: Gregor Best <farhaven@googlemail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-07-15 09:40:44 +02:00
Gregor Best
c0f7c38237
awful.layout: also arrange on client tag change
...
Signed-off-by: Gregor Best <farhaven@googlemail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-07-13 11:23:07 +02:00
Julien Danjou
3926f62ea3
hooks: remove arrange
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-06-10 11:44:00 +02:00
Julien Danjou
2b80d94453
awful.layout: register layout property change
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-06-10 11:43:37 +02:00
Julien Danjou
5922eb1fc1
awful.client: register property windowfact and floating for arrange
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-06-10 11:43:29 +02:00
Julien Danjou
ef2b18949c
awful.tag: call property hooks on properties changes
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-06-10 11:43:08 +02:00
Julien Danjou
e59f28a556
awful.layout: call layout hook on layout set
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-06-10 11:42:46 +02:00
Julien Danjou
38400cd026
titlebar: call property hook on visible, not need_arrange
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-06-10 11:42:25 +02:00
Julien Danjou
f46559e239
titlebar: execute property hook rather than setting need_arrange
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-06-10 11:42:09 +02:00
Julien Danjou
25b3e718d1
wibox: do not set need_arrange on wibox detach
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-06-10 11:41:58 +02:00
Julien Danjou
87c56359bc
awful.layout: arrange on tags list modification
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-06-10 11:41:26 +02:00
Julien Danjou
f9f5b2068b
screen: client move triggers property hooks, no need_arrange
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-06-10 11:41:19 +02:00
Julien Danjou
c06a58a581
awful.layout: re-arrange on hide property change
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-06-10 11:33:57 +02:00
Julien Danjou
e6e4b9f3b1
client: swapping does not set need_arrange
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-06-10 11:33:49 +02:00
Julien Danjou
a7b6c6bbd7
client: border_width does not set need_arrange
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-06-10 11:33:40 +02:00
Julien Danjou
a8300f635d
client: maximized does not set need_arrange
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-06-10 11:33:32 +02:00
Julien Danjou
d6ff48a108
client: fullscreen does not set need_arrange
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-06-10 11:33:18 +02:00
Julien Danjou
1c92023a12
layout: arrange on sticky
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-06-10 11:33:08 +02:00