Julien Danjou
803d837d88
grab server on initialization
...
That allows to not miss any window on startup.
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-09-10 16:06:32 +02:00
Arnaud Fontaine
9e426be091
awesome: get rid of unecessary malloc in scan()
2008-09-09 17:50:25 +02:00
Julien Danjou
97cf3a7719
systray: add some cleanup code
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-09-03 18:03:50 +02:00
Julien Danjou
11dfa832a8
factorize quit/exec elements, and reparent systray
...
That fixes FS#296.
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-09-02 17:12:10 +02:00
Julien Danjou
3e13545cc9
Remove 2-level polling
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-31 13:18:02 +02:00
Julien Danjou
04eff691c9
Use xcb_aux_sync to register error
...
Otherwise we get multiple awesome at the same time.
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-30 09:21:48 +02:00
Julien Danjou
87a89b6aa1
use xcb_flush; move refresh stuff in common function
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-26 19:35:37 +02:00
Julien Danjou
5cb870c7b8
scan: fix array indice
...
WTF.
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-14 21:42:36 +02:00
Arnaud Fontaine
73c4415a0a
window: make window_getstate() asynchronous and rename this function
...
according to the rest of code.
2008-08-13 19:01:36 +02:00
Arnaud Fontaine
5c9cc7857d
xutil: make xutil_lock_mask_get() asynchronous
2008-08-13 12:29:43 +02:00
Arnaud Fontaine
193a73c5d9
draw: make xcolor_init() asynchronous.
2008-08-12 14:53:57 +02:00
Julien Danjou
d310605a64
clients: fix manage on restart
...
We do not manage if they _don't_ have awesome prop.
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-12 08:47:29 +02:00
Arnaud Fontaine
b655f6348c
xutil: rename xutil functions according to the rest of code.
2008-08-11 18:05:35 +02:00
Julien Danjou
be2bfdcfc5
screen: introduce screen objects
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-11 17:14:02 +02:00
Julien Danjou
0903e21a1a
clients: manage client with _AWESOME_PROPERTIES
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-11 15:10:54 +02:00
Julien Danjou
6e5d89e4de
Revert "client: fix windows managed on startup"
...
This reverts commit f32cba6bd8
.
2008-08-11 15:04:10 +02:00
Julien Danjou
f32cba6bd8
client: fix windows managed on startup
...
We need to not take the UNVIEWABLE, but everything else should be
managed.
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-11 14:57:15 +02:00
Julien Danjou
13714a2b8b
remove useless include
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-06 20:54:20 +02:00
Julien Danjou
9cbee5b32e
remove goto statement
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-06 14:05:11 +02:00
Julien Danjou
d98c28ef86
fix memory leak in event polling
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-05 15:40:57 +02:00
Julien Danjou
5e3e968d2f
rewrite two levels polling
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-05 15:37:41 +02:00
Julien Danjou
0ea4ce4980
remove two levels polling
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-05 15:12:24 +02:00
Julien Danjou
81ae462a70
focus: remove focus history
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-07-31 17:30:01 +02:00
Julien Danjou
063bf2083d
titlebar: use need_update system (like statusbar, …)
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-07-31 14:11:07 +02:00
Kanru Chen
700ace5197
length of static string s should be sizeof(s)-1
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-07-22 10:30:53 +02:00
Kristof Provost
30aeb3f311
Reload awesome on SIGHUP
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-07-22 10:23:07 +02:00
Julien Danjou
36fd44d1a0
draw: add char len as arg of xcolor_init()
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-07-10 15:30:16 +02:00
Julien Danjou
fb13bff697
config: use XDG for loading config
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-07-08 14:07:56 +02:00
Pierre Habouzit
924078c898
Streamline xcolor_t.
...
Do not have a ->name char * field, but a char[32] instead. This isn't a
big problem, the longest color in /etc/X11/rgb.txt is 23 chars long, and
if it becomes a problem one day, one could just strip the name and
generate an hexadecimal representation on the fly instead. But allocating
the name is asking for a lot of trouble.
Since we do not allocate anything anymore, just don't allocate anything
anymore at all, it avoids the mess of xcolor_copy/_wipe and fixes a lot of
sleeping bugs (p_dup were used e.g., which is wrong).
Pass xcolor_t *, xcolor_t becomes too big to be passed by value. Add
consts at some places.
xcolor_new allocates nothing, hence is renamed xcolor_init, has xcolor_t
as a first argument (OO-style, this is self), and doesn't touch the
structure at all if it returns false, which allow us to skip a lot of
intermediates values.
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-07-02 10:36:46 +02:00
Julien Danjou
5daa38ac2d
atom: new atom infra
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-30 18:25:01 +02:00
Julien Danjou
c007cacd09
xutil: make atoms cache an array
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-27 12:08:19 +02:00
Pierre Habouzit
3f9c7aee54
actually call our xcb events setup function
...
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
2008-06-26 23:04:55 +02:00
Pierre Habouzit
585496b66a
Make event handler setup private to the event module.
...
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
2008-06-26 22:47:56 +02:00
Julien Danjou
013b2afe62
remove useless #include
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-26 18:10:45 +02:00
Julien Danjou
104df8912b
systray: set handler before ewmh/systray init
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-24 19:55:14 +02:00
Julien Danjou
f8f882d948
systray: fix scan() and stop managing XEMBED
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-24 17:39:22 +02:00
Julien Danjou
46ead6ea3f
comments fixing
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-20 08:38:00 +02:00
Julien Danjou
933e05f7b0
scan: manage withdrawn windows on start
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-20 07:24:31 +02:00
Julien Danjou
206bf49525
awesome: fix documentation position
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-19 09:46:17 +02:00
Julien Danjou
0fdc03faa4
util: rename eprint() to fatal()
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-19 09:45:08 +02:00
Pierre Habouzit
4617f0ba34
The X socket MUST keep us alive.
...
We must not unref the loop for the X socket, that's our reason to live !
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
2008-06-18 02:12:37 +02:00
Arnaud Fontaine
b9e1ec69d0
Replace xcb_aux_get_screen() by a safer function
2008-06-17 17:14:00 +02:00
Julien Danjou
26738c4dab
xshape: remove, nothing prove it's really useful
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-17 15:06:05 +02:00
Julien Danjou
5bae1f0c37
window: rework root_grabbuttons()
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-17 14:35:58 +02:00
Pierre Habouzit
9ea15fd224
And migrate the rest of the loop to the libev.
...
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
2008-06-17 00:30:53 +02:00
Pierre Habouzit
476c851510
Migrate the lua server to the libev.
...
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
2008-06-16 23:51:11 +02:00
Pierre Habouzit
38f8d2fdce
Plug dbus in the event loop.
...
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
2008-06-16 23:51:07 +02:00
Pierre Habouzit
a4953d13d5
Fix a couple of warnings.
...
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
2008-06-15 23:58:51 +02:00
Julien Danjou
f418cb0c2e
systray: attach systray to external window, not statusbar
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-15 10:33:10 +02:00
Julien Danjou
6648a1edea
init: call only once window_root_grabbuttons() on start
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-15 10:18:24 +02:00
Julien Danjou
e5e379656a
systray: import widget
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-14 18:12:16 +02:00
Michael Gehring
b16493d878
random updates/fixes
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-13 20:33:47 +02:00
Julien Danjou
13a96b6edd
[keygrab] Add keygrabbing infrastructure
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-10 17:22:36 +02:00
Julien Danjou
1049393840
Revert "Replace tags by workspaces"
...
This reverts commit 00f966ea04
.
Revert "[focus] Fix bogus arguments"
This reverts commit 816b5d16bc
.
Revert "[mouse] Fix bug with floating"
This reverts commit 89daa72790
.
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-09 21:56:03 +02:00
Julien Danjou
00f966ea04
Replace tags by workspaces
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-09 16:30:46 +02:00
Michael Gehring
244a02b2d6
[lua] Fall back to default config file
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-09 15:31:19 +02:00
Michael Gehring
4af0791499
[lua] Split luaA_parserc into luaA_init/parserc
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-09 08:52:00 +02:00
Michael Gehring
35d1bc283f
Move default color/font initialization out of luaA_parserc
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-09 08:51:46 +02:00
Julien Danjou
4f0dbdabb0
[xutil] Move cursor creation to xutil
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-08 10:08:44 +02:00
Michael Gehring
8ab1831ed6
[mouse] Use different cursors for vert./horiz. resize
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-08 09:28:11 +02:00
Julien Danjou
6d89565c8e
[mouse] Use different cursors for corners
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-07 16:38:33 +02:00
Julien Danjou
ff23b67c65
[hooks] Initialize lastrun to 0
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-01 19:00:31 +02:00
Julien Danjou
b202b22314
[hooks] Fix timer resolution
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-31 23:43:28 +02:00
Julien Danjou
01fe4e3331
[statusbar] Remove multi-threading code
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-31 16:04:46 +02:00
Michael Gehring
b7a57f2a62
remove bogus commandline options
...
-k and -s are not implemented so remove them.
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-31 08:32:23 +02:00
Michael Gehring
b62fda99c3
exit if loading/parsing of configuration file fails
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-30 19:58:21 +02:00
Julien Danjou
83534783c0
[awesomerc] Add a default hook timer to have time
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-30 18:50:09 +02:00
Julien Danjou
994f7abbc1
[lua] Add a timed hook
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-29 13:47:11 +02:00
Julien Danjou
b1467494ea
Revert "[lua] Add a hook on standard fd activity"
...
This reverts commit 785c41f089
.
Too much potential deadlock problems.
2008-05-27 16:36:06 +02:00
Julien Danjou
785c41f089
[lua] Add a hook on standard fd activity
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-27 15:56:14 +02:00
Julien Danjou
a0b24c5505
[statusbar] Implement multi-threading per statusbar
...
More more efficient than before.
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-27 11:17:51 +02:00
Julien Danjou
7cdba19a56
[layout] Stop starting a thread for layout freshing
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-27 11:01:57 +02:00
Julien Danjou
21ae849d9f
Rename VirtScreen to screen_t
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-24 09:01:49 +02:00
Julien Danjou
0bbd2d4b3e
Rename AwesomeConf to awesome_t
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-24 08:59:27 +02:00
Julien Danjou
be108acc32
[util] warn() and eprint() now print \n
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-23 22:56:05 +02:00
Julien Danjou
495b99f1c5
[focus] Rewrite focus handling on arrange.
...
Also add some documentation.
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-23 22:48:27 +02:00
Julien Danjou
7a5326e0ff
[awesome] Initialize glib thread system
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-21 18:04:44 +02:00
Julien Danjou
a953b57a87
[awesome] Make layout and statusbar refresh threaded
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-21 15:33:08 +02:00
Julien Danjou
3c6f9a8fa0
Revert "[awesome] Remove the two level event loops"
...
This reverts commit 88c9671ab1
.
Conflicts:
awesome.c
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-21 15:28:39 +02:00
Julien Danjou
819ba3f191
[layout] Change {layout,statusbar}_refresh proto
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-21 14:40:16 +02:00
Julien Danjou
88c9671ab1
[awesome] Remove the two level event loops
...
This should not be needed anymore with XCB.
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-21 12:04:50 +02:00
Julien Danjou
1f046b3c9f
[everything] Switch from libconfuse to Lua
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-20 18:01:15 +02:00
Arnaud Fontaine
162b8a690c
[all] Implement an atom cache in xutil as an ordered linked-list
2008-05-11 01:10:37 +02:00
Julien Danjou
ab321f0c17
[awesome] use EXIT_FAILURE as exit code on error
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-03 15:34:58 +02:00
Julien Danjou
effaa99b91
[awesome] Remove useless includes
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-03 12:01:35 +02:00
Julien Danjou
dc27cff8ab
[awesome] Remove checking for value before p_delete()'ing memory
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-03 12:01:35 +02:00
Julien Danjou
9058bd1fd3
[dbus] Poll on dbus connection fd
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-03 12:01:06 +02:00
Julien Danjou
de3fbffcf1
[xutil] Rewrite gettextprop() proto
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-03 12:01:06 +02:00
Julien Danjou
b348af16e2
[dbus] first support
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-03 12:01:04 +02:00
Julien Danjou
7405ff9a68
[events] resync after leaving the while loop
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-03 12:01:03 +02:00
Arnaud Fontaine
059829e37e
[xutil] check whether the error code and request are actually defined
2008-05-03 12:01:03 +02:00
Julien Danjou
d1635db59f
[client] Rename Client type to client_t
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-03 12:01:03 +02:00
Julien Danjou
a73b07f5d3
[statusbar] Rename Statusbar type to statusbar_t
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-03 12:01:03 +02:00
Julien Danjou
28ca287d7d
[uicb] Rename functions
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-03 12:01:01 +02:00
Julien Danjou
ea7c1ceeb3
[ewmh/awesome] Comsmetics
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-03 12:01:01 +02:00
Julien Danjou
a664203639
[xutil/awesome] Cosmetic
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-03 12:01:01 +02:00
Julien Danjou
ef07db2bd4
[scan] Remove alloca() usage and simplify some stuff
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-03 12:01:01 +02:00
Arnaud Fontaine
216f7f16f2
[awesome] Send geometry requests and then process the replies in scan()
2008-05-03 12:01:01 +02:00
Arnaud Fontaine
d2383012f7
Remove xsync option (no XCB equivalent of XSynchronize)
2008-05-03 12:01:00 +02:00
Arnaud Fontaine
70dafae396
Move xcb_event_handler code to xutil
2008-05-03 12:01:00 +02:00
Arnaud Fontaine
71e9100927
Remove useless xutil_root_window()
2008-05-03 12:01:00 +02:00
Arnaud Fontaine
fa5bc02103
Fix incorrect porting of XCreateFontCursor()
2008-05-03 12:01:00 +02:00
Arnaud Fontaine
6db3cd48d8
Get properly windows geometry when handling existing windows at Awesome startup
2008-05-03 12:01:00 +02:00
Arnaud Fontaine
02c99fccb8
Prefix xutil functions properly
2008-05-03 12:01:00 +02:00
Arnaud Fontaine
1eab0e44e7
* Make key symbols table, NumLock, ShiftLock and CapsLock global variables.
...
* Get CapsLock and ShiftLock masks properly and fix XLookupString() XCB equivalent.
2008-05-03 12:01:00 +02:00
Arnaud Fontaine
bcdc000e2c
Fix typo when checking GetGeometry reply
2008-05-03 12:01:00 +02:00
Arnaud Fontaine
4a1720ddca
Remove useless x_select_input() which leaded to useless requests
2008-05-03 12:01:00 +02:00
Arnaud Fontaine
dafafd077c
Port Awesome to XCB
2008-05-03 12:00:59 +02:00
Fabienne Ducroquet
b12a5235a5
[doc] Fix some typos, modify a few descriptions
...
Before awesome 2.3 release, I've decided to look for typos in the
awesome* manpages, here is the result. I've also modified some options'
descriptions that I didn't find very clear, I hope I have not
added/missed too many mistakes as I'm not a native English speaker...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-04-11 07:34:45 +02:00
Julien Danjou
68c14355af
[events] Stop handling LeaveNotify events
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-04-03 13:17:33 +02:00
Julien Danjou
680555a317
[bobmarley] Stop grabbing Motion events
...
That fails in GTK+ apps anyway
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-04-02 11:39:11 +02:00
Julien Danjou
841ce84ed9
[doc] Update a bunch of documentation for uicb; set transparency to be between 0 and 1
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-03-31 20:07:13 +02:00
Julien Danjou
507ef3c21d
Fix -c option, and make -k accept -c option better
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-03-23 21:35:34 +01:00
Julien Danjou
1d468c5583
Lot of cosmetic changes: proto change, etc.
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-03-23 15:52:22 +01:00
Julien Danjou
21277ad12b
Simplify scan() function
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-03-23 15:52:22 +01:00
Julien Danjou
accf223bb1
Use warn() instead of perror()
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-03-23 15:52:21 +01:00
Julien Danjou
2c0b68cd4e
Add --sync option
2008-03-23 15:52:20 +01:00
Julien Danjou
a0ba05b904
Oops.
2008-03-23 15:52:18 +01:00
Julien Danjou
355b7d67b3
Change screen_get_bycoord() proto to take ScreensInfo as arg, and speed up things
2008-03-23 15:52:17 +01:00
Julien Danjou
0bde5c9e29
Move some screen functions from screen.c to new common/xscreen.c
2008-03-23 15:52:17 +01:00
Julien Danjou
0cd969bfb9
Split screen_build_screen() into more generic code and type: screeninfos_new()
2008-03-23 15:52:17 +01:00
Julien Danjou
28af9e7e61
Replace perror() with warn()
2008-03-23 15:52:17 +01:00
Julien Danjou
bd2f4a212e
Move grabkeys() out of event, and move it into window; clean and remove setup() function in awesome.c
2008-03-06 16:18:01 +01:00
Julien Danjou
dd9a1b99c4
Rename events functions from handle_event... to event_handle
2008-03-06 09:09:59 +01:00
Julien Danjou
ee55e9f77a
ignore BadMatch error for XConfigureWindow() calls
2008-03-04 12:56:43 +01:00
Julien Danjou
de8dcbb724
replace drop_events arch by x,y pointer coordinates saving
2008-03-04 10:14:13 +01:00
Julien Danjou
11b0982a58
rename awclient.[ch] to socket.[ch]
2008-02-27 09:07:52 +01:00
Julien Danjou
6fd3801ef0
rename awesome-version.[ch] to version.[ch]
2008-02-27 09:04:17 +01:00
Julien Danjou
7a1208ad8a
fix argv copy
2008-02-26 17:52:56 +01:00
Julien Danjou
960d870b0b
fix screen_get_bycoord()
2008-02-25 13:40:30 +01:00
marco candrian
4ff0dae17e
trailing whitespaces removed
...
like:
find . -iname "*.txt" -o -iname "*.c" -o -iname "*.h" | xargs sed -i 's/\s\+$//'
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-02-13 09:05:10 +01:00
Julien Danjou
0b6129e625
remove {load,save}awesomeprops()
...
this is too bugged
2008-02-12 15:43:57 +01:00
Julien Danjou
83e58a3a73
check that loadawesomeprops() set view on at least one tag
2008-02-12 15:30:48 +01:00
Julien Danjou
2eeeeaf7e4
drop error about killing client already killed
2008-02-08 16:06:01 +01:00
Julien Danjou
b6a62e47ea
add --check and --config, better usage printing
2008-02-04 14:48:44 +01:00
Julien Danjou
35b4005b7a
unban() all clients before execing or quitting awesome
2008-02-04 14:43:20 +01:00
Julien Danjou
520d59e0df
simply ignore XSetInputFocus errors
2008-02-01 14:41:13 +01:00
Julien Danjou
cbf85c1902
prioritize UnmapEvent-s
2008-02-01 10:52:08 +01:00
Julien Danjou
335334225d
fix option parsing
2008-01-31 20:41:48 +01:00
Hans Ulrich Niedermann
c4345f1be4
Use getopt_long() in awesome
...
Simplify getopt_long usage in awesome-message.
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-01-31 18:34:59 +01:00
Julien Danjou
4b412d86ff
split out config stuff
2008-01-31 16:34:00 +01:00
Julien Danjou
f2e64adb59
remove awesome-check, move that to an -k option to awesome
2008-01-31 10:21:03 +01:00
Julien Danjou
606d157e31
rename some screens function
2008-01-30 09:36:52 +01:00
Julien Danjou
ab8d95f13d
rework include
2008-01-29 11:27:14 +01:00
Julien Danjou
485614f2df
rewrite focus handling
...
- arrange() does not focus() anymore
- restore dropping events infra
- add client_unfocus()
- grabbuttons() where we should and add root_grabbuttons() for root window
2008-01-25 22:37:49 +01:00
Hans Ulrich Niedermann
b457c4b4c9
Common version message for awesome and -client
...
At every build ("make", "make all"), if necessary, this
version message will be updated.
Note that "make awesome{,-client}" will NOT update the
version message.
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-01-25 12:10:33 +01:00
Hans Ulrich Niedermann
3d9c2e72fb
Compile executable with correct version number
...
Updates awesome-version.h every time the version number has
actually changed. The normal C header deps will then trigger
the appropriate rebuilds.
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-01-25 12:10:32 +01:00
Hans Ulrich Niedermann
ad28e78d13
Use pre-defined values for build infos (ifdef)
...
Use information autoconf determines anyway (machine type
building for, name of machine building on).
Only print build information if it is actually available (defined).
Add descriptions to all AC_DEFINE* macro definitions.
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-01-25 12:10:32 +01:00
Julien Danjou
8434040cb2
do not drop XSetInputFocus errors; but we can not give focus to unmapped windows
2008-01-25 09:37:41 +01:00
Julien Danjou
475a9da7af
reduce errors list allowed
2008-01-25 09:36:14 +01:00
Julien Danjou
dcde59df02
warn() on XErrors
2008-01-25 00:07:16 +01:00
Julien Danjou
7073133e66
remove drop event infrastructure
2008-01-24 23:43:46 +01:00
Julien Danjou
d6e5e810ab
add support for machine type too
2008-01-24 22:10:10 +01:00
Julien Danjou
00bf08178c
add some useless infos in version :-)
2008-01-24 21:57:55 +01:00
Julien Danjou
03bb2708b6
refresh stuff even in socket events
2008-01-24 20:43:06 +01:00
Julien Danjou
a57d81237a
stop waiting for events in queue
2008-01-24 19:14:49 +01:00
Julien Danjou
240ee786d1
rename nscreens to nscreen
2008-01-24 13:48:49 +01:00
Julien Danjou
595003b8e1
fix restart stuff
2008-01-23 20:58:05 +01:00
Julien Danjou
5c02326a1e
grab buttons on all root windows
2008-01-23 09:13:02 +01:00
Julien Danjou
d17c5c531e
detect clone screens (FS#42)
2008-01-22 20:41:10 +01:00
Julien Danjou
29eccefc44
stop using get_screen_count()
2008-01-22 18:37:48 +01:00
Julien Danjou
668702b777
move list.h and util.[ch] to common/
2008-01-21 18:14:59 +01:00
Julien Danjou
b54c405c17
cosmetic
2008-01-21 16:31:15 +01:00
Julien Danjou
83a0a4daf8
add a common infra to drop events
2008-01-21 16:31:15 +01:00
Julien Danjou
6e4d13c9dc
add a new cache system for arrange()ing
2008-01-21 16:31:15 +01:00
Julien Danjou
602d593af0
XSync after each event
2008-01-21 16:31:15 +01:00
Julien Danjou
4d117da0ec
preinit in config.c
2008-01-21 16:31:14 +01:00
Julien Danjou
5180613fe5
fix bug with statusbar recovering each others (FS#37)
2008-01-21 16:31:14 +01:00
Julien Danjou
b4793e0fef
move attribute noreturn
2008-01-21 15:57:24 +01:00
Hans Ulrich Niedermann
a34c277081
Catch too many awesome command line options
...
Also add --help option.
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-01-21 15:52:22 +01:00
Julien Danjou
542df6a3ab
do not try to guess where we should XSync(), XSync after bunch of XEvents
2008-01-11 16:17:15 +01:00
Julien Danjou
121477db61
fix comment
2008-01-11 16:01:10 +01:00
Nikos Ntarmos
a245b2c033
restart on XRandR event
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-01-11 13:41:29 +01:00
Nikos Ntarmos
956ce4ab8e
add nscreen var to store screen count
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-01-11 13:39:48 +01:00
Julien Danjou
7d4747155a
grab root buttons click on first run
2008-01-11 12:01:56 +01:00
Nikos Ntarmos
09e878a166
Locale and international text in widgets
...
I just noticed that international (reads Greek) text is not rendered at
all in widgets. I traced it down to LC_CTYPE being non-empty in my
environment. Are there any objections to adding the setlocale(...) call
back in awesome.c:main(...)? I could set up a script emptying LC_CTYPE
and then exec'ing awesome, but I guess it's harmless to have awesome do
that internally. Unless I'm missing something...
2008-01-09 09:16:19 +01:00
Julien Danjou
5c9291ff0b
use a cache system for status bar
2008-01-07 18:12:38 +01:00
Julien Danjou
44e6edf4d1
add comment about XGetWA
2008-01-07 14:11:14 +01:00
Julien Danjou
7ad579898f
simplify unmanage code
2008-01-06 21:57:53 +01:00
Julien Danjou
cc871d3391
remove cleanup stuff, we don't need them, and they are not complete
2008-01-06 21:50:32 +01:00
Julien Danjou
9fc22e9e4e
remove some get_phys_screen() calls
2008-01-02 17:41:03 +01:00
Julien Danjou
437bc5c22c
add 2008 copyright notice
2008-01-02 16:59:43 +01:00
Julien Danjou
d402ae8f69
optimize rule usage
2008-01-02 12:44:18 +01:00
Julien Danjou
52920a849b
clean some awesome.c stuff
2007-12-31 10:10:49 +01:00
Julien Danjou
f7f6951957
allow to have several statusbar
2007-12-30 21:00:34 +01:00
Julien Danjou
6f4dec78ff
remove Display as arg from window_*() fcts
2007-12-30 15:24:51 +01:00
Julien Danjou
87fce96644
add support for NET_CLOSE_WINDOW
2007-12-27 20:49:38 +01:00
Julien Danjou
502f502e23
add support for _NET_NUMBER_OF_DESKTOPS
2007-12-27 18:26:50 +01:00
Julien Danjou
73691143af
externalize EWMH handling
2007-12-27 17:27:20 +01:00
Julien Danjou
c66c6dff84
add support for _NET_CLIENT_LIST
2007-12-27 16:19:05 +01:00
Julien Danjou
0f4a9df88c
set support for _NET_WM_ICON
2007-12-27 16:07:24 +01:00
Julien Danjou
029f73ddfc
handle signals
2007-12-27 16:03:21 +01:00
Julien Danjou
c900e37843
add mouse bindings to status bar
2007-12-27 15:49:00 +01:00
Julien Danjou
2404274066
call with phys_screen and not logical screen
2007-12-27 13:53:52 +01:00
Julien Danjou
91cc5a4618
use image instead of symbols for layouts
2007-12-27 00:13:44 +01:00
Aldo Cortesi
750cf96eeb
Remove un-needed function.
2007-12-19 10:43:27 +01:00
Aldo Cortesi
4d4001b41f
Clean interface of statusbar_init.
2007-12-19 10:43:15 +01:00
Aldo Cortesi
7190e4fa48
Change awesome_config -> AwesomeConf.
...
All other struct definitions in the project follow this naming convention.
2007-12-19 10:43:02 +01:00
Aldo Cortesi
cbf5c474c1
Documentation generation fixes.
...
- Fix many instances of incorrect and incomplete doxygen annotations.
- Teach doxygen not to complain when it comes accross gcc __attribute__
specifications.
- Turn off graph generation by default.
- Make doxygen quiet, so we can actually see warnings when they occur.
2007-12-19 10:42:24 +01:00
Julien Danjou
eb57f68ed3
fix compilation errors with new globalconf stuff
2007-12-18 11:29:02 +01:00
Aldo Cortesi
ce556ec743
The preferred line length is 80 characters.
2007-12-18 11:27:26 +01:00
Aldo Cortesi
965cbb7e0b
Continue to simplify interfaces that require arguments in globalconf.
...
Today I focus on screen.c.
2007-12-18 11:26:39 +01:00
Aldo Cortesi
205f2c55ca
Make "Statusbar statusbar" the in VirtScreen "Statusbar *statusbar". This is
...
more consistent with the rest of the interface, and will make our life easier
when we have mulitiple statusbars per screen.
2007-12-18 11:26:18 +01:00
Aldo Cortesi
d5fd96dbd2
Refactor the focus.c interface to use globalconf.
2007-12-17 18:21:42 +01:00
Aldo Cortesi
b6bfd1a4d0
The arg to uicb_ functions is no longer const.
2007-12-17 18:19:44 +01:00
Julien Danjou
f0f522bd47
move things around
...
- rename parse_config to config_parse
- move KeyModList and ButtonList in their own functions
- move LayoutsList in layout.c
- move static fcts around in config.c
2007-12-16 13:24:12 +01:00
Aldo Cortesi
6e8b1383fe
Various doc comment fixes.
2007-12-16 12:13:07 +01:00
Aldo Cortesi
2f74c079aa
Massive, massive interface refactoring.
...
The big change here is that we now keep our configuration structure in a global
variable called globalconf. This radically simplifies many interfaces, since
passing awesomeconf everywhere is no longer necessary. There are also more
subtle interface effects - now we can reliably identify a screen from just a
screen ID, rather than an awesomeconf, screenid tuple.
Overall, this patch makes most of the interfaces in awesome much nicer to use -
enjoy!
Yes, this is a huge patch, but since a lot of the refactoring was done
systematically using vim macros, splitting this up would have been very hard.
2007-12-16 12:12:48 +01:00
Aldo Cortesi
f36a56cdcc
Refactor draw.c
...
This is a big patch that does not change any behaviour. We abstract the data
needed by the draw.c functions into a context object, and pass that around
instead of passing each argument every time. This results in a much cleaner API
- most functions lose 3-4 arguments.
This is a preparatory patch for further work on statusbar.
2007-12-15 09:30:29 +01:00
Julien Danjou
df2a8e1b1d
add a focus history
2007-12-14 21:51:54 +01:00
Julien Danjou
c7c1da5693
fix memory leak on exit
2007-12-14 20:18:59 +01:00
Julien Danjou
aacb020564
rename statusbar functions
2007-12-14 20:10:52 +01:00
Julien Danjou
bb1381abc2
make tags a linked list instead of array
2007-12-14 19:05:30 +01:00
Julien Danjou
b03cdbd877
remove nlayouts
2007-12-14 17:57:05 +01:00
Julien Danjou
f92772953c
fix some #include
2007-12-14 16:42:54 +01:00
Julien Danjou
e426e60801
remove my name from -v and accept --version
2007-12-14 16:32:34 +01:00
Julien Danjou
6241354fec
prefix eprint() with awesome:
2007-12-13 15:20:42 +01:00
Julien Danjou
5f811b1cf2
use VirtScreen arg for tag_client_with_current_selected()
2007-12-13 10:46:32 +01:00
Aldo Cortesi
c7a4a54b47
Use warn function throughout project.
2007-12-13 09:59:46 +01:00
Julien Danjou
5fa67c23df
split awesomeconf and screen config
...
a.k.a the big post-2.0 blind commit
2007-12-11 20:56:51 +01:00
Julien Danjou
db65eac4b8
add release name in -v
2007-12-10 17:34:32 +01:00
Nathan Hüsken
9524f15478
Adding padding
2007-11-28 11:00:48 +01:00
Nikos Ntarmos
af0eab0322
delete key->arg on cleanup
2007-11-15 17:21:38 +01:00
Julien Danjou
bf37316aad
rework Button bindings freeness
2007-11-15 12:15:14 +01:00
Julien Danjou
a0ea5bf734
move compileregs() from tag.c to rules.c
2007-11-13 22:45:46 +01:00
Julien Danjou
9f21fb3c9e
rules are now stored in a linked list
2007-11-12 19:25:10 +01:00
Julien Danjou
0c5c5ce426
remove nkeys: keys is now a linked list
2007-11-12 17:22:40 +01:00
Julien Danjou
ef7034b0b8
use linked list instead of tabs for mouse bindings
2007-11-12 13:21:28 +01:00
Julien Danjou
0753ed5fb5
statusbar drawable is no more stored but dynamicaly created; this fix a problem with statusbar on right
2007-11-11 22:27:00 +01:00
Julien Danjou
0bee56e27d
mouse buttons are now configurable for click on layout symbols
2007-11-11 16:01:49 +01:00
Julien Danjou
99370f0ccd
mouse buttons are now configurable for click on title bar
2007-11-11 15:55:13 +01:00
Julien Danjou
83f7087f13
don't forget to delete mouse bindings for tabs
2007-11-11 15:43:49 +01:00
Nikos Ntarmos
be61dcdddf
store configpath in awesomeconf
2007-11-08 11:22:25 +01:00
Nikos Ntarmos
982230c82b
add cleanup_screen() and setup_screen() functions to split init/clean ops
2007-10-30 14:59:24 +01:00
Nikos Ntarmos
bf90028edb
modify parse_config() to not take display and screen as arg
2007-10-30 14:57:00 +01:00
Julien Danjou
e98697ddfd
don't free client_sel since we don't p_new() it
2007-10-30 11:18:49 +01:00
Julien Danjou
f28f0e7407
add display name in socket path
2007-10-29 17:29:58 +01:00
Julien Danjou
7476a9712a
don't forget to delete addr pointers
2007-10-29 16:23:05 +01:00
Julien Danjou
78b3dab63e
remove unused pointer **sel in main()
2007-10-29 16:16:17 +01:00
Julien Danjou
27e7706800
move common stuff for socket com into awesome-client-common.c
2007-10-29 16:14:50 +01:00
Julien Danjou
60352e221a
remove fifo code
2007-10-29 10:58:02 +01:00
Julien Danjou
7e755c17ea
add awesome-client.h with common #define and add copyright notice in awesome-client.c
2007-10-27 18:47:13 +02:00
Julien Danjou
001f430c0c
remove global client_sel, use tag's client_sel
2007-10-26 23:19:13 +02:00
Julien Danjou
c817b07d9a
rename ban() and unban() to client_*()
2007-10-26 19:51:20 +02:00
Julien Danjou
f330cb303c
rename manage() and unmanage() to client_*()
2007-10-26 19:51:20 +02:00
Julien Danjou
ddf64e9db2
grab some window function from client.c and move them in window.c
2007-10-26 18:23:15 +02:00
Nikos Ntarmos
40e7654925
fix missing p_delete
2007-10-25 22:33:48 +02:00
Julien Danjou
e47e1a4a23
remove unmapped attribute
...
this fix a bug when fast-switching between tags and dropping
some windows management as we should not.
Use window_getstate() (moved from awesome.c's getstate()) instead.
2007-10-23 16:32:55 +02:00
Julien Danjou
f379de70ce
Remove disp arg to manage(), add comments to manage() and rename setclienttrans to window_settrans
2007-10-22 16:25:27 +02:00
daniel@brinkers.de
cb0080039e
patch for using UNIX domain sockets for control
2007-10-15 23:13:52 +02:00