Commit Graph

4369 Commits

Author SHA1 Message Date
Julien Danjou 0c4fb9fa26 change codename
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-09-07 12:39:09 +02:00
Julien Danjou c006ce10dd luaa: replace os.execute()
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-09-03 10:32:42 +02:00
Uli Schlachter 34d37c00c8 spawn: add spawn_system() which works like system()
This adds a small function which behaves exactly like libc's system(), but also
clears the masked signal set in the child process.

This is needed because libev 3.8 masks signals. :(

Signed-off-by: Uli Schlachter <psychon@znc.in>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-09-03 10:32:39 +02:00
Julien Danjou 42fe7f7949 client: remove transient_for intelligence in manage
awful does that well.

Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-28 16:40:43 +02:00
Arnaud Fontaine a8ce6ee2ae update to libxcb 1.4 and xcb-util 0.3.6
These new versions provide similar fields to Xlib for errors
(major_code, minor_code and resource_id).
2009-08-25 13:46:30 +02:00
Julien Danjou 1c74815512 change codename
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-25 11:37:43 +02:00
Uli Schlachter 47f3a4b3df Clear the signal mask for child processes
This adds a callback function which glib calls after it fork()'d and did all the
necessary setup. This callback function clears our signal mask.

This is necessary because libev 3.8 and later use signalfd and therefor have to
add those signals to the signal mask. Processes started through awesome would
inherit this signal mask and I can tell you, some app which ignores ctrl-c
confuses people a lot.

Signed-off-by: Uli Schlachter <psychon@znc.in>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-25 11:34:45 +02:00
Uli Schlachter 7e5097aa09 Inline g_spawn_command_line_async() into awesome
This adds a new function spawn_proc_helper() which just contains a copy of
g_spawn_command_line_async()'s source code. This means that there should be no
behavior change at all here.

Signed-off-by: Uli Schlachter <psychon@znc.in>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-25 11:34:41 +02:00
Julien Danjou 2f35046262 client: add a limit to the loop (FS#573)
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-24 16:56:23 +02:00
Julien Danjou e00e5374e2 change codename
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-07-27 15:01:35 +02:00
Julien Danjou fc99a4a831 dbus: do not exit on bus disconnection
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-07-27 14:52:03 +02:00
Julien Danjou d61ca1b4f8 awful.util: fix typo in spawn description
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-06-22 17:45:43 +02:00
Julien Danjou c89bec9ff9 client: fix key array leak
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-06-22 17:18:24 +02:00
Julien Danjou 4477dd82ad change codename
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-06-18 16:12:11 +02:00
Julien Danjou f9f6e78aa5 client: fix icon value on changes
Sometimes we unref the icon image, but we did not reset NULL, which
can make the client refering to a not-refed image.

Signed-off-by: Julien Danjou <julien@danjou.info>
2009-06-18 12:15:15 +02:00
Katherine McKinley 382dc83eb0 draw: fix NULL pointer passed to pango_parse_markup()
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-06-15 11:25:31 +02:00
Julien Danjou 318907efa4 spawn: fix crash with command starting with white space
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-06-09 15:59:38 +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
koniu d0d4598ae6 awesomerc: allow 'false' in floatapps
Signed-off-by: koniu <gkusnierz@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-05-18 08:33:54 +02:00
Johan Kiviniemi acd6c64f55 themes: Generate unfocused/inactive icons automatically
Additionally, use the alpha channel so that the unfocused icons look
good on any background, not just black.

This adds ImageMagick as a build dependency.

Signed-off-by: Johan Kiviniemi <devel@johan.kiviniemi.name>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-05-18 08:30:21 +02:00
Julien Danjou 7a6b340dbb build: remove ncurses stuff
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-05-15 19:52:43 +02:00
Julien Danjou f5591745a6 spawn: fix sequence ref count again
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-05-12 08:11:35 +02:00
Julien Danjou 18fd559da7 root: fix arguments in fake_input
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-05-11 08:19:15 +02:00
Julien Danjou 309932be32 root: fix screen in fake_input
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-05-11 08:16:40 +02:00
Julien Danjou 0ca7a0fd71 widget: use orientation rather than position
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-05-10 16:17:39 +02:00
Julien Danjou aa324d6e2b swindow: fix draw_context_update for north and south orientation
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-05-10 16:09:19 +02:00
Uli Schlachter 7bd08e683c awesome-client: Use /bin/sh instead of /bin/bash
All bashisms should be fixed (hopefully).

Signed-off-by: Uli Schlachter <psychon@znc.in>
2009-05-10 10:54:27 +02:00
Uli Schlachter b04aaa8ad5 awesome-client: Fix bashism
Signed-off-by: Uli Schlachter <psychon@znc.in>
2009-05-10 10:48:38 +02:00
Uli Schlachter 9e49865d3f awesome-client: Properly exit when dbus-send isn't found
Signed-off-by: Uli Schlachter <psychon@znc.in>
2009-05-10 10:48:27 +02:00
Uli Schlachter d3eaaf7b50 Remove a wrong space
Thanks to damjan for finding this.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2009-05-10 10:48:15 +02:00
Uli Schlachter 57b717aba6 Don't use obsolete table.foreach() in the default config
This replaces those repetitive calls to table.foreach() with one call to
awful.util.table.join() which gets passed all the tables returned from the
awful.key() calls.

Thanks to anrxc for testing this.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2009-05-10 10:48:03 +02:00
Uli Schlachter f931e0cb8e Get the shell for spawn_with_shell earlier
My local config got a module which denies functions from adding new functions
to the global context or to a module's local context. I use this for catching
typos (think misspelled variable names).

This patch "fixes" a false-positive which was caused by this.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2009-05-10 10:47:22 +02:00
Uli Schlachter 56d6e3726b Use _LDFLAGS instead of _LIBRARIES
The _LDFLAGS vars which pkg_check_modules() set also include -L flags which
are necessary so that the linker can find the libs it needs to find.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2009-05-10 10:46:29 +02:00
Uli Schlachter 02e39eb8e0 Use tr [:lower:] [:upper:] instead of the a-z one
The 'old' tr call produced garbled output with sun's tr.

The current common/tokenize.gperf file only uses a-z, 1-5 and _. Thus the
dropped conversions don't hurt atm. If they should ever become necessary again,
we need to find another, more portable way to doing this.

Thanks to evocallaghan aka Edward O'Callaghan for trying to build awesome on
SunOS and providing some hints on how to fix it.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2009-05-10 10:46:25 +02:00
Uli Schlachter 886d62fb59 Use 'sh' instead of 'sh -e'
'sh -e' makes the shell script die if any command returns an error which isn't
caught. While this is a nice feature, this script doesn't actually need this.
Not using this shell feature makes the script more portable.

Thanks to Edward O'Callaghan aka eocallagha for stumbling upon this.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2009-05-10 10:40:09 +02:00
Uli Schlachter 90d6c799ff Fix a bashism in gperf.sh
This (hopefully) fixes a bug reported by evocallaghan with ksh.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2009-05-10 10:39:48 +02:00