Commit Graph

4387 Commits

Author SHA1 Message Date
koniu 3c08a7621b awful.tag: viewidx ignores hidden tags
This prevents viewprev/viewnext from cycling to tags not shown in the
taglist.

Signed-off-by: koniu <gkusnierz@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-06-05 14:45:04 +02:00
koniu eae6b8066f awful.widget.taglist: support for 'hide' property
This allows setting 'hide' property for a tag to prevent it from
showing in the taglist.

Signed-off-by: koniu <gkusnierz@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-06-05 14:44:58 +02:00
koniu 7f828b5db3 awful.util: add linewrap()
Signed-off-by: koniu <gkusnierz@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-06-05 14:44:47 +02:00
Julien Danjou c00aa8fd5e util: import a_strhash()
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-06-05 14:44:38 +02:00
koniu e69f80caf6 client: allow setting skip_taskbar
Signed-off-by: koniu <gkusnierz@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-06-05 14:33:16 +02:00
Uli Schlachter a264acb1f0 Also track opacity for unattached wibox
Before this, setting w.opacity of a wibox that was not attached to some screen
had no effect, now this is cached and applied when the wibox is attached to
some screen.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2009-06-05 14:33:02 +02:00
Uli Schlachter c56453347e Only set a simplewindow's opacity if there is a window
Technically setting the opacity of an invalid window doesn't hurt, but
still it's nicer to catch this instead.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2009-06-05 14:32:56 +02:00
Uli Schlachter 0b93a6a6a8 swindow: cache the opacity
Signed-off-by: Uli Schlachter <psychon@znc.in>
2009-06-05 14:32:45 +02:00
Uli Schlachter b2ad584c7b Add window_opacity_get_from_reply()
Signed-off-by: Uli Schlachter <psychon@znc.in>
2009-06-05 14:32:07 +02:00
Uli Schlachter 6b5e5f352c Use the new simplewindow functions for managing a wibox' opacity
Signed-off-by: Uli Schlachter <psychon@znc.in>
2009-06-05 14:32:00 +02:00
Uli Schlachter 56fae6ede1 Add functions for managing a simple_window's opacity
Signed-off-by: Uli Schlachter <psychon@znc.in>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-06-05 14:31:54 +02:00
Uli Schlachter 8d30ef7d43 Add a border_color parameter to simplewindow_init()
All callers immediately called simplewindow_border_color_set() anyway.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2009-06-05 14:31:15 +02:00
Julien Danjou ac2d026d59 root: add wiboxes() method to get wiboxes
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-06-04 17:51:41 +02:00
Julien Danjou 3f6ab274c0 wibox: all wiboxes go into one and only one array
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-06-04 17:51:35 +02:00
Julien Danjou 7cc0b13eae wibox: move position handling to Lua
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-06-04 17:51:30 +02:00
Julien Danjou 1ef09fa8e6 luaa: add font_height in awesome module
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-06-04 17:51:17 +02:00
Julien Danjou e15aab73bf screen: move padding in Lua
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-06-04 17:51:13 +02:00
Julien Danjou 0c564079b5 wibox: add property hook on screen and visible changes
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-06-04 17:51:07 +02:00
Julien Danjou f4e77bcab9 luaa: rename and change hooks_property macro()
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-06-04 17:51:04 +02:00
koniu 2920ed71d7 naughty: environment cleanup
Makes naughty environment handling same as awful modules:
- relevant capi members all go to local capi = {}
- relevant awful members are all explicitly required

Signed-off-by: koniu <gkusnierz@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-06-04 17:23:52 +02:00
koniu d397d72a8d naughty: simplify width/height calculations
This also fixes an issue with spacing calculation which previously
disregarded border_width.

Signed-off-by: koniu <gkusnierz@gmail.com>
2009-06-04 17:23:46 +02:00
koniu 4d60ad7e36 naughty: simplify notify and preset parameters
This makes all parameters available to notify() to be available in
preset table (and vice versa) and simplifies value selection.

Adds new config option: config.default_preset.

Also cleans up some comment redundancy.

Signed-off-by: koniu <gkusnierz@gmail.com>
2009-06-04 17:23:43 +02:00
koniu 80685be123 naughty: add vertical margin
Signed-off-by: koniu <gkusnierz@gmail.com>
2009-06-04 17:23:38 +02:00
Gregor Best a4de60b23f naughty: resize naughtifications to the minimum needed space
This commits adds support for :extents() to naughty. It changes the
behaviour of naughty.config.presets.*.width so that if it's set to nil,
the notification gets resized automagically. Else the value of width is
used for the notification's width.
The meaning of naughty.config.presets.*.height changed similarly, now,
if set, it means the literal height of the notifications. If unset, the
notification gets resized automagically as well.

Signed-off-by: Gregor Best <farhaven@googlemail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-06-04 17:23:34 +02:00
Gregor Best 0f2da4b9bf widgets: export extents() function
This commit adds a function called extents() to widgets. In the case of
a systray, it takes the systray's screen as its argument to correctly
calculate the width. By default, 1 is assumed. For all other widgets,
the argument can be ommitted.
The function doesn't return the geometry as drawn, instead it returns
the geometry the widget _wants_ to be drawn at, for example an imagebox
always has (image width, image height) as the return values even if it's
drawn with a smaller width and height on a smaller wibox.

Signed-off-by: Gregor Best <farhaven@googlemail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-06-04 17:23:29 +02:00
Julien Danjou 45c2ac38a4 image: only compute when needed
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-06-04 17:23:17 +02:00
Julien Danjou 1e6d4747be graph: deprecate in favor of awful widget
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-06-04 17:23:13 +02:00
Julien Danjou 348a4dca19 awful.widget.graph: import
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-06-04 17:23:10 +02:00
Julien Danjou 9e7054f3c0 progressbar: deprecate old widget
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-06-04 17:23:05 +02:00
Julien Danjou 90516497a3 awful.widget.progressbar: import
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-06-04 17:23:02 +02:00
Julien Danjou 908ba16cf9 image: add draw_rectangle_gradient()
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-06-04 17:22:55 +02:00
Gregor Best 88dd246537 image: add insert function to combine two images
Signed-off-by: Gregor Best <farhaven@googlemail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-06-04 17:22:51 +02:00
Julien Danjou 1f3fdce144 luaa: remove useless dostring()
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-06-04 17:20:12 +02:00
Julien Danjou 073c658418 draw: remove area_array_t type
Not used anymore.

Signed-off-by: Julien Danjou <julien@danjou.info>
2009-06-04 17:20:01 +02:00
Julien Danjou 42afd9636f awful.completion: remove deprecated function from 3.3
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-06-04 17:19:44 +02:00
Julien Danjou 854b59d771 change codename
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-06-04 11:46:25 +02:00
M. Dietrich 907a5379a3 fix loop over config files if none was found
if no file was found the string is just "\0" and neads a head
controled while

if no config file was found exit awesome with an error message
(fail early!)

Signed-off-by: Julien Danjou <julien@danjou.info>
2009-06-04 10:21:16 +02:00
Julien Danjou 7795f623dd change codename
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-05-26 16:51:06 +02:00
Julien Danjou 42fdee57a2 Revert "client, mouse: improve struts a bit"
This reverts commit 47efde17f5.

Conflicts:

	lib/awful/mouse.lua.in
	screen.c
2009-05-25 15:26:13 +02:00
Julien Danjou fba4accc14 Revert "client: handle struts (a lot) better"
This reverts commit 264a81f3fb.

Conflicts:

	client.c
	client.h
	lib/awful/mouse.lua.in
	screen.c
	structs.h
	wibox.c
2009-05-25 15:17:57 +02:00
Uli Schlachter df0df1bc37 Fix a couple of harmless compiler warnings
In each widget's *_geometry function, two warnings were generated, e.g.:
 warning: ‘geometry.y’ is used uninitialized in this function
 warning: ‘geometry.x’ is used uninitialized in this function

Found by gogonkt with GCC 4.2.4 on gentoo.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2009-05-25 12:07:06 +02:00
Uli Schlachter ce6eb86889 Fix a harmless compiler warning
GCC 4.2.4 on gentoo:
 awesome-3.3-rc3/mousegrabber.c: In function ‘luaA_mousegrabber_run’:
 awesome-3.3-rc3/mousegrabber.c:37: warning: ‘root’ may be used uninitialized in this function
 awesome-3.3-rc3/mousegrabber.c:37: note: ‘root’ was declared here

Thanks to gogonkt for reporting this.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2009-05-25 12:07:05 +02:00
Julien Danjou b546328ae9 lib: stop using unpack where not needed
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-05-25 11:14:08 +02:00
Johan Kiviniemi 40710e43ba themes/sky: Titlebar icons: use current default theme paths
Signed-off-by: Johan Kiviniemi <devel@johan.kiviniemi.name>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-05-20 07:43:15 +02:00
Julien Danjou e278b6cefd main: fix typo in fatal()
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-05-19 11:43:46 +02:00
Uli Schlachter 572622590a Check that the property is as long as it should be
Before this, a _NET_WM_ICON could have been 5 bytes long but still claiming
that the image it describes is 100x100 pixel in size.

Signed-off-by: Uli Schlachter <psychon@znc.in>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-05-19 08:40:58 +02:00
Uli Schlachter 3e64d05c3c Restructure the code in ewmh_window_icon_from_reply() slightly
This is just a preparation for the following commit.

Signed-off-by: Uli Schlachter <psychon@znc.in>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-05-19 08:39:45 +02:00
Johan Kiviniemi bd0a57d9f8 themes: Old ImageMagick compatibility
Verified to build with ImageMagick 6.2.4.

Signed-off-by: Johan Kiviniemi <devel@johan.kiviniemi.name>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-05-18 20:53:23 +02:00
Julien Danjou a891ffbe2d awful.tag: call property hook on icon changes
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-05-18 16:57:12 +02:00
Julien Danjou ad44a1d8dc change codename
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-05-18 11:13:21 +02:00