Commit Graph

871 Commits

Author SHA1 Message Date
Adrian C. (anrxc) 003369e649 awful.wibox: take wibox border into account when updating struts
Function wibox_update_strut would not take the border width into
account when calculating struts. When a wibox border was in use
clients would overlap the wibox. With a border of 1px we loose 1px of
the wibox, but as the wibox border increases it is "pushed" by the
border nearest the screen edge and clients steal more and more space.

Signed-off-by: Adrian C. (anrxc) <anrxc@sysphere.org>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-12-30 19:51:48 +01:00
Uli Schlachter 8857f73ce6 Implement the GetCapabilities call in naughty
This call is required by the freedesktop specification.

Signed-off-by: Uli Schlachter <psychon@znc.in>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-12-28 10:41:57 +01:00
Sébastien Gross ea4967fef4 tooltip: force place() if tooltip is not visible
Commit 6c5d0ca9 introduced a side effect. If tooltip text isn't changed
place() function is not called. To prevent multiple place() set_geometry
calls that function when tooltip is not visible (before it appears to the
user).

Signed-off-by: Sébastien Gross <seb•ɱɩɲʋʃ•awesome•ɑƬ•chezwam•ɖɵʈ•org>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-12-03 14:22:28 +01:00
Adrian C. (anrxc) 39a0fba7a8 awful.menu: add keygrabber support to clients menu
Functions show() and toggle() accept a boolean parameter controlling
keyboard navigation. In case of the clients menu neither is called
directly, instead the clients menu is always re-created in case any
new clients appeard since the last invocation. This patch adds a
keygrabber parameter to the clients() function as well.

Signed-off-by: Adrian C. (anrxc) <anrxc@sysphere.org>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-12-03 14:22:06 +01:00
Robert Lehmann fcee5fb828 naughty: fix CloseNotification argument usage
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-12-01 14:13:52 +01:00
Matthias Schröder 87070cadac awful.menu: support for access keys
You can define a menuitem like before:

awful.menu({ items = { { "&awesome", myawesomemenu,
	 		    beautiful.awesome_icon },
                       { "open &terminal", terminal },
	   })

and the letters following the ampersand in itemname can be used as
access key. (at least former fvwm users might find this familiar)

When there are submenus open awesome ascends during the search from the
current menu to the top level menu.

The access key is shown underlined.

There is no warning for multiple used keys, only the first one found
gets the price.

Signed-off-by: Julien Danjou <julien@danjou.info>
2009-11-26 19:56:04 +01:00
perry cb8eac8ccf Revert "awful.autofocus: fix multiple screens autofocus"
This reverts commit 7575f64993.

As seen on ML:

Switching tags with multiple heads causes focus to change
screens with this commit

Signed-off-by: perry <perry.hargrave@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-11-23 19:28:10 +01:00
Hiltjo Posthuma cb262809dd awful.menu: use actual wibox border width
We check the wibox border width for inappropiate values now, if we set
border_width to a negative value (invalid) in our theme and draw it, the
actual border_width will be 0 so the menu will be drawn incorrectly.
This fixed this.

Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-11-21 10:47:57 +01:00
Levin Du e2f292d869 Fix awful.util.table.reverse
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-11-17 10:25:12 +01:00
Tomi Belan 7575f64993 awful.autofocus: fix multiple screens autofocus
There might be multiple screens with visible windows. When closing the
last window of the current screen, try to focus them as well.

If no window has focus and yet some windows are visible (e.g. on another
screen), awesome misbehaves: it uses sloppy keyboard focus (as is the X11
default), but doesn't refresh their border colors or tasklists etc.

Signed-off-by: Tomi Belan <tomi.belan@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-11-16 15:14:55 +01:00
Adrian C. (anrxc) a502e19bad awful.tooltip: call set_geometry on show()
Function set_geometry was never called if the timer_function argument
was omitted. show function only called place() which would not display
a tooltip since it didn't have proper geometry.

Signed-off-by: Adrian C. (anrxc) <anrxc@sysphere.org>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-11-11 17:48:27 +01:00
Hiltjo Posthuma 0a9f7985f8 Rules: change example
change example since the example with a centered client doesnt work
on the default config (due to no_overlap).

Signed-off-by: Julien Danjou <julien@danjou.info>
2009-11-09 20:24:45 +01:00
Hiltjo Posthuma 3e3395a6a0 Rules: check if properties of a rule exist
Actually check if properties are set now, since we can also only
apply callbacks now.

Signed-off-by: Julien Danjou <julien@danjou.info>
2009-11-09 20:24:16 +01:00
bob 4aaf39a899 awful.rules: add "callback" option when a rule matches
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-11-09 10:25:40 +01:00
Julien Danjou f3509f745a naughty: convert <br> tag to \n
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-11-06 12:45:46 +01: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
Lukas Hrazky 19971c4610 taglist: don't pad name with space, use margin
Signed-off-by: Lukas Hrazky <lukkash@email.cz>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-11-05 18:07:37 +01:00
Lukas Hrazky a085a26d99 widget layouts: always set widgets.height as total
Signed-off-by: Lukas Hrazky <lukkash@email.cz>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-11-05 18:07:00 +01:00
lukash 717efb9ae4 awful.widget: few formal fixes for widget layouts
Signed-off-by: Lukas Hrazky <lukkash@email.cz>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-11-05 18:05:27 +01:00
Lukas Hrazky f2800d96fd naughty: update to new widget layouts
Signed-off-by: Lukas Hrazky <lukkash@email.cz>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-10-27 09:34:29 +01:00
Lukas Hrazky 8eece559b9 progressbar: remove minimum size limit
Signed-off-by: Lukas Hrazky <lukkash@email.cz>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-10-26 17:27:09 +01:00
Lukas Hrazky 5f38aadc25 progressbar/graph: fix rounding and graph drawing
Signed-off-by: Lukas Hrazky <lukkash@email.cz>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-10-26 17:27:09 +01:00
Julien Danjou 7f7ffca497 awful.tag: fix new when layout is nil
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-10-26 11:11:17 +01:00
Lukas Hrazky a4f8935509 wibox: remove implicit orientation change
Signed-off-by: Lukas Hrazky <lukkash@email.cz>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-10-26 11:08:28 +01:00
Lukas Hrazky a7c5668a92 update simple widgets to new widget layouts
Signed-off-by: Lukas Hrazky <lukkash@email.cz>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-10-26 11:07:43 +01:00
Lukas Hrazky 9a51955279 update taglist and tasklist to new widget layouts
Signed-off-by: Lukas Hrazky <lukkash@email.cz>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-10-26 11:07:42 +01:00
Lukas Hrazky a079ab654d awful.util: change table.clone to do deep copies
Signed-off-by: Lukas Hrazky <lukkash@email.cz>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-10-26 11:07:41 +01:00
Lukas Hrazky c09582dca3 widget layouts: rewrite
Signed-off-by: Lukas Hrazky <lukkash@email.cz>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-10-26 11:07:40 +01:00
Zsolt Udvari eb7ae0fb20 awful.tag: allow table as layout argument (FS#670)
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-10-26 10:58:39 +01:00
Anton Bobrov ad50440d5c awful.rules: apply accumulated rule properties (FS#669)
To avoid the screen flickering, when two rules have different tags
with true switchtotag.

Signed-off-by: Julien Danjou <julien@danjou.info>
2009-10-26 10:27:44 +01:00
Damjan 3f565f1a3d awful.menu: fix gap (FS#665)
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-10-26 10:07:15 +01:00
Julien Danjou 371ee3e8cc titlebar: remove
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-10-20 20:42:05 +02:00
Julien Danjou a6de1608a5 awful.wibox: remove useless deprecation-pass code
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-10-20 20:42:04 +02:00
Julien Danjou 4c178d5441 hooks: remove
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-10-20 20:42:04 +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 8c109794d9 awful.titlebar: set a default name if client's nil (FS#653)
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-10-09 16:14:42 +02:00
dmitriy 9a9c3d12d7 naughty: upgrade to notification spec 1.0 (FS#652)
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-10-07 19:57:01 +02:00
Felix Herrmann b6e731b566 awful.widget.graph: fix typo in documentation
Signed-off-by: Felix Herrmann <felix@herrmann-koenigsberg.de>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-09-30 15:47:43 +02:00
Julien Danjou 9c651933a4 Revert "awful.layout.suit.magnifier: simplify"
This reverts commit f3c57faf1d.
2009-09-28 14:41:54 +02:00
Julien Danjou 67e5346956 Revert "beautiful: init default theme by default" and "awesomerc: stop handling beautiful"
This reverts commit 42c47eecce.
This reverts commit 4823a12541.

Signed-off-by: Julien Danjou <julien@danjou.info>
2009-09-28 13:43:49 +02:00
Julien Danjou 9166584b96 awful.tag: fix view{only,more}
Now they do not select multiple tags at once, and they do not flicker.

Signed-off-by: Julien Danjou <julien@danjou.info>
2009-09-28 11:24:39 +02:00
koniu 52c4461169 awful.tag: fix typo in viewmore
Signed-off-by: koniu <gkusnierz@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-09-28 10:14:36 +02:00
Julien Danjou 61d2712076 awful.completion: use sort -u to sort (FS#621)
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-09-22 17:15:49 +02:00
Gregor Best ae0bf17af2 awful.tag: fix screen in viewonly
Signed-off-by: Gregor Best <gbe@intepi.net>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-09-22 16:33:53 +02:00
Julien Danjou 7c5ba1fcef awful.tag: filter out window before switching screens (FS#633)
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-09-22 16:09:44 +02:00
Julien Danjou 9388dc5a1e awful.client: fix initial geometry storage (FS#608)
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-09-22 15:56:58 +02:00
Julien Danjou d4e6411971 awful.tag: make viewmore smarter
This avoids flickering.

Signed-off-by: Julien Danjou <julien@danjou.info>
2009-09-22 15:11:40 +02:00
Julien Danjou 743603d24d awful.tag: make viewonly more smart (FS#634)
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-09-22 14:09:56 +02:00
Julien Danjou f347876af4 awful.tag: fix client auto-tag on startup (FS#618)
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-09-22 11:57:40 +02:00
Julien Danjou f3c57faf1d awful.layout.suit.magnifier: simplify
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-09-18 13:40:29 +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
Cedric GESTES 9a0ae64840 placement: import center_horizontal and center_vertical
Signed-off-by: Cedric GESTES <ctaf42@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-09-14 11:53:45 +02:00
Jacob Winther 808be1d9b8 variable set twice in client.lua
Very small fix.

From 6933b43bd3d00baba661b367db5450a9179da0c7 Mon Sep 17 00:00:00 2001
From: Jacob Winther <jacob.winther@gmail.com>
Date: Sat, 12 Sep 2009 06:59:58 +1200
Subject: [PATCH 1/2] awful.client: remove duplicate variable

Signed-off-by: Jacob Winther <jacob.winther@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-09-13 14:33:31 +02:00
Sébastien Gross e196826415 awful.tooltip: ensure tooltip is attached to a screen
Signed-off-by: Sébastien Gross <seb•ɱɩɲʋʃ•awesome•ɑƬ•chezwam•ɖɵʈ•org>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-09-11 18:21:28 +02:00
Julien Danjou 4e35145ee3 remove bad files
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-09-11 14:21:19 +02:00
Julien Danjou 8588e2d594 awful.mouse: load finder
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-09-11 13:43:02 +02:00
Sébastien Gross 4d1ca7bc18 awful: Add a mouse finder capability
Signed-off-by: Sébastien Gross <seb•ɱɩɲʋʃ•awesome•ɑƬ•chezwam•ɖɵʈ•org>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-09-11 13:38:38 +02:00
Julien Danjou 1d595fe507 awful.mouse: move into a directory
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-09-11 13:31:33 +02:00
Sébastien Gross 2faa2c1d2d awful: add tooltip module
Signed-off-by: Sébastien Gross <seb•ɱɩɲʋʃ•awesome•ɑƬ•chezwam•ɖɵʈ•org>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-09-09 20:27:47 +02:00
Uli Schlachter 7fc0c24f4f awful.wibox: Error out on invalid positions
Signed-off-by: Uli Schlachter <psychon@znc.in>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-09-09 19:50:52 +02:00
Julien Danjou 444edf1d03 awful.wibox: update documentation
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-09-08 17:02:56 +02:00
Julien Danjou c0cb4203a9 awful.tag: fix withcurrent screen choice (FS#616)
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-09-08 16:41:23 +02:00
Julien Danjou 17226e5a61 telak: remove
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-09-08 11:04:43 +02:00
Julien Danjou 3617c4d43e invaders: remove
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-09-08 11:04:15 +02:00
Stephen Sugden 24a614f8d0 awful.menu: fix wibox height computing
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-09-08 10:24:32 +02:00
Cedric GESTES 62b0a9d8f1 rules: define geometry properties
Signed-off-by: Cedric GESTES <ctaf42@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-09-07 18:04:23 +02:00
Cedric GESTES 9bfc4b0017 titlebar: fix title and appicon position in the layout
Signed-off-by: Cedric GESTES <ctaf42@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-09-04 18:18:52 +02:00
Sébastien Gross 4a7dba0198 tag.lua: fix new client screen
Prevent from blinking the first screen in multiheads by using
the mouse-focused screen tag list for a new client instead of
screen 1.

Signed-off-by: Sébastien Gross <seb•ɑƬ•chezwam•ɖɵʈ•org>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-09-04 13:40:12 +02:00
Cedric GESTES ae6d09edc1 titlebar: add support for a custom widget
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-09-04 13:33:14 +02:00
Cedric GESTES 1df4f1c66c rules: if a client has not the property we search: dont match
Signed-off-by: Cedric GESTES <ctaf42@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-09-04 13:32:42 +02:00
Sébastien Gross 6511042f82 client: Fix get_client_in_direction
Both is_in_direction() and calculate_distance() expect clients
instead of geometries.

Signed-off-by: Sébastien Gross <seb•ɱɩɲʋʃ•awesome•ɑƬ•chezwam•ɖɵʈ•org>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-09-04 13:31:28 +02:00
Gregor Best aca7afd519 awful.wibox: fix position for right and bottom
Signed-off-by: Gregor Best <gbe@intepi.net>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-09-02 10:34:20 +02:00
koniu 1b7c822ed3 awful.prompt: word delete splits by separators
Instead of separating only by spaces we also look for:

   { [ ( , . : ; _ - + = @ /

Signed-off-by: koniu <gkusnierz@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-09-01 14:24:13 +02:00
koniu 2b0de2f23e awful.prompt: reset 'selectall' correctly
Signed-off-by: koniu <gkusnierz@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-09-01 14:24:12 +02:00
koniu 4c835b5ef9 awful.prompt: add 'font' to run() args
Also changes prompt_text_with_cursor() to take a table instead of
list of arguments allowing to incorporate font setting and
'prettyprompt' settings into the function.

Signed-off-by: koniu <gkusnierz@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-09-01 14:24:11 +02:00
Julien Danjou d8fae99de1 awful.titlebar: add signals for various properties (FS#609)
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-31 11:17:40 +02:00
koniu 8ff69e3529 awful.tag: add viewtoggle function
Helper function to toggle tag selection whilst updating history.

Signed-off-by: koniu <gkusnierz@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-31 10:44:34 +02:00
koniu 529502ffbf awful.tag: fix and improve tag history
This fixes a long standing tag history breakage. To store history
of tag switching we rely on a special signal "tag::history::update"
which needs to be emitted by any function which deals with tag
selection.

History is multi-level with a configurable limit:
awful.tag.history.limit = 20 (by default).

awful.tag.history.restore function gets a new argument 'idx' which can
be either 'previous' (default) which will revert to the previously
selected set of tags, or a numerical index in the tag history table.

Signed-off-by: koniu <gkusnierz@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-31 10:44:33 +02:00
Julien Danjou 35ff4203d8 magnifier: fix then no tiled client
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-31 10:32:53 +02:00
Julien Danjou 95f3f8bdf9 telak: fix new proto and update description
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-28 17:02:16 +02:00
Julien Danjou f04ba72908 awful.tag: enhance description
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-28 15:40:01 +02:00
Julien Danjou 1029a3cb69 awful.remote: enhance description
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-28 15:36:34 +02:00
Julien Danjou d9fff4da2c awful.placement: enhance description
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-28 15:35:51 +02:00
Julien Danjou 642a3f454b awful.menu: enhance description
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-28 15:34:52 +02:00
Julien Danjou c9085905e8 awful.hooks: deprecate in description
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-28 15:34:03 +02:00
Julien Danjou 91806b03ac awful.dbus: enhance description
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-28 15:33:18 +02:00
Julien Danjou 8b1b894cdf awful.completion: enhance description
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-28 15:32:38 +02:00
Julien Danjou 905dddafe6 awful.client: fix direction functions
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-28 15:31:16 +02:00
Julien Danjou a14e9eb18d awful.{button,key}: enhance documentation
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-28 15:26:41 +02:00
Gregor Best 523fcb1690 widget.layout.horizontal: fix y coordinate
Signed-off-by: Gregor Best <gbe@intepi.net>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-27 17:06:13 +02:00
Julien Danjou 69999fee93 awful.widget.prompt: change ellipsize to start
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-27 14:45:42 +02:00
Julien Danjou 107f1cf1dc widget.layout.horizontal: simplify .resize handling
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-27 14:37:18 +02:00
Cedric GESTES ddc159f57e rules: add a switchtotag rule to select the tag after setting it for a client
Signed-off-by: Cedric GESTES <ctaf42@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-27 14:01:07 +02:00
Julien Danjou f32e6a9b13 awful.widget.tasklist: add label.focused (FS#595)
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-27 11:21:32 +02:00
Cedric GESTES 36180b9a41 tasklist: update tasklist when a client is hidden
Signed-off-by: Cedric GESTES <ctaf42@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-27 11:08:57 +02:00
Uli Schlachter ab6cd898c1 awful.widget: Don't use a resizable imagebox
awful.widget.graph and progressbar both create an imagebox. The default is
resize = true which means the image is scaled up inside the wibox if
:set_height() is used.

Setting widget.resize = false avoids this.

Signed-off-by: Uli Schlachter <psychon@znc.in>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-27 11:08:14 +02:00
Uli Schlachter ac60bbd147 progressbar: set_value() should update()
set_value() didn't call update() and thus had no visible effect on the
progressbar.

Signed-off-by: Uli Schlachter <psychon@znc.in>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-27 11:04:18 +02:00
Uli Schlachter 1c57970dd9 awful.widget.{graph,progressbar}: Un-local functions
This code accesses these functions via _M['set_height'], but if these are local
functions they aren't available this way. Un-local-ing helps here.

This was noticed by anrxc when he set a widget's height to 0.9. These functions
should have caught this invalid height and ignore it, but because they weren't
actually used this error checking was bypassed.

Signed-off-by: Uli Schlachter <psychon@znc.in>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-27 11:04:05 +02:00
Cedric GESTES cbaefeed9d rules: accept rule if regexp is ok or value is equal
correct problem matching expression with - or special regexp character

Signed-off-by: Cedric GESTES <ctaf42@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-27 10:58:58 +02:00
Uli Schlachter 023a216f67 awful.client: Emit correct signal
When awful.client.property.set() was called it always emitted property::floating
on the client. Instead it should emit propert::<name of the property> of course!

Signed-off-by: Uli Schlachter <psychon@znc.in>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-27 10:54:05 +02:00
Gregor Best efbba53507 awful.client: fix local function idx
Signed-off-by: Gregor Best <gbe@intepi.net>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-27 10:53:31 +02:00
koniu 105a4ce41f naughty: fix margin when using icon
Signed-off-by: koniu <gkusnierz@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-26 09:14:57 +02:00
Julien Danjou a71c5efd10 awful.util: pread return error
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-25 20:16:48 +02:00
koniu 58eb27a99b naughty: port sizing to the new widget margin code
Signed-off-by: koniu <gkusnierz@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-25 19:17:18 +02:00
Julien Danjou 5f43d178f7 awful.menu: use iconbox widget rather than bg_image
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-25 18:13:19 +02:00
Julien Danjou 53ca058ebb awful.widget.layout: add support for margins
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-25 16:42:54 +02:00
Julien Danjou 8389b8c5d6 awful.hooks: deprecate
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-25 16:28:59 +02:00
Gregor Best df07681109 awful.tag: fix viewidx()
Signed-off-by: Gregor Best <gbe@intepi.net>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-25 14:49:53 +02:00
Julien Danjou 8ec1f4f49c awful.rules: set focus as last property
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-25 11:40:35 +02:00
koniu 312355416f awful.autofocus: restore focus on hide/minimize
Signed-off-by: koniu <gkusnierz@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-25 09:52:33 +02:00
koniu 194f6b2050 naughty: fix hover_timeout
Fixes regression since e899ca7696.

Signed-off-by: koniu <gkusnierz@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-25 09:48:44 +02:00
Julien Danjou af5037104c awful.rules: document matching, support non-string rules
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-24 16:43:00 +02:00
Julien Danjou e293a69982 screen: move the tagging on screen change to Lua
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-24 16:32:19 +02:00
Julien Danjou 6d65106c36 awful.rules: import
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-24 16:27:28 +02:00
Julien Danjou 6bad89fc2c awful.client: movetotag() move client to the screen tag
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-24 16:09:56 +02:00
Julien Danjou 62d0d08caf awful.titlebar: set correct height
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-24 11:49:05 +02:00
Julien Danjou e298353583 awful.tag: view{next,prev} take screen as argument
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-24 08:31:44 +02:00
Julien Danjou c43e40c05b awful.widget.tasklist: fix double signal
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-22 15:04:34 +02:00
Julien Danjou 2b68f6df5e awful.widget.taglist: refresh on tag name changes
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-21 21:29:56 +02:00
Julien Danjou ba8ca594e8 beautiful: be safer with dofile()
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-21 21:26:50 +02:00
Julien Danjou b3214e589e Partial revert of "awful.client: use signal and geometry attributes"
Partial revert of 1da49640b5.

Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-21 21:15:19 +02:00
Julien Danjou e25a8ba6f4 awful.widget.tasklist: fix hide usage
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-21 21:03:57 +02:00
Christopher Eatinger 933c958220 awful.screen.focus: Prevent focusing a screen that doesn't exist
Signed-off-by: Christopher Eatinger <christopher.eatinger@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-21 21:01:06 +02:00
Julien Danjou f848fb7844 wibox: update strut on visible change
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-21 20:04:29 +02:00
Julien Danjou 973b19aba0 awful.menu: fix default key handling
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-21 16:35:12 +02:00
Julien Danjou 435716af73 awful.menu: allow more keys than only one in menu bindings
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-21 16:28:55 +02:00
Julien Danjou 0f6125a3f6 awful.screen.focus: make focus() absolute and add focus_relative()
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-21 16:05:02 +02:00
Julien Danjou 42c47eecce beautiful: init default theme by default
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-21 15:54:14 +02:00
Julien Danjou a800696a65 awful.tag: add a new() helper function
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-21 15:50:01 +02:00
Julien Danjou 630748ef61 awful.menu: only listen mouse::enter on wibox
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-21 15:30:48 +02:00
Julien Danjou 2fda9f5a2e naughty: fix timeout = 0
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-21 15:30:48 +02:00
Julien Danjou 2d72e2477f awful.autofocus: import and use
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-21 15:30:48 +02:00
Julien Danjou 1692496fce awful.widget.taglist: use attached_add_signal
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-21 15:30:48 +02:00
Julien Danjou c66be3aa82 awful.widget.tasklist: use attached_add_signal
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-21 15:30:48 +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 d7a961175f awful.widget.layoutbox: use attached_add_signal
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-21 15:30:48 +02:00
Julien Danjou 121a229492 awful.tag: add attached_add_signal()
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-21 15:30:48 +02:00
Julien Danjou 282cd0b3ca awful.wibox: do not arrange when changing attribute
awful.layout now listen for workarea size changes.

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 5e2fbb3684 awful.wibox: update struts on size change
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-21 15:30:48 +02:00
Julien Danjou ff906a8529 awful.wibox: update position on border_width change (FS#563)
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-21 15:30:47 +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 7e92901d76 awful.widget.layoutbox: use signals rather than hooks
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-21 15:30:47 +02:00
Julien Danjou 974272ee4d awful.titlebar: replace hooks by signals
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-21 15:30:47 +02:00
Julien Danjou 85b3dedb60 naughty: remove useless hooks
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-21 15:30:47 +02:00
Julien Danjou 1da49640b5 awful.client: use signal and geometry attributes
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-21 15:30:47 +02:00
Julien Danjou 84839d456d wibox: port to new object system
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 b58d0f848a client: emit signal on unmanage
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-21 15:30:47 +02:00