Commit Graph

488 Commits

Author SHA1 Message Date
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
Julien Danjou 5a47c01381 fix initstatusbar() 2007-10-15 20:23:45 +02:00
Julien Danjou 17bc4dc9a7 drawstatusbar does not need display as arg 2007-10-15 18:19:33 +02:00
Julien Danjou 5b130bd18d grabkeys does not need display/screen as arg 2007-10-15 18:17:33 +02:00
Julien Danjou 3592e8e448 save and loadawesomeprops do not need display as arg 2007-10-15 18:14:43 +02:00
Julien Danjou b1e22e1d8b cosmetic 2007-10-15 17:33:28 +02:00
Julien Danjou a74ca1d1de tabswidth is 4 not 6 2007-10-15 13:56:24 +02:00
Julien Danjou 4e0acfa99a add coding style stuff 2007-10-15 13:40:52 +02:00
Julien Danjou 4a7acf821e remove Regs struct, use Rules 2007-10-15 12:40:45 +02:00
Julien Danjou 77609263dc move txtlenwidth initlization in initstatusbar() 2007-10-15 12:06:43 +02:00
Julien Danjou 4f8accb8df bugfix: reopen fifo on EOF 2007-10-12 17:41:54 +02:00
Julien Danjou a6781157b6 allow to execute uicb function via awesome control fifo 2007-10-12 17:10:36 +02:00
Julien Danjou 03e1b35d44 cosmetic 2007-10-12 13:19:32 +02:00
Julien Danjou 33b0e65b56 don't read anymore on stdin, read from fifo file 2007-10-12 13:10:43 +02:00
Julien Danjou 863714f501 use p_delete instead of XFree for our own pointers 2007-10-11 23:44:35 +02:00
Julien Danjou c4e130d7d9 remove Display as param for uicb 2007-10-11 23:32:29 +02:00
Julien Danjou 0899432059 remove stack 2007-10-11 23:17:12 +02:00
Julien Danjou c3986a5937 sel is no more extern 2007-10-11 23:12:05 +02:00
Julien Danjou 12ef66b79a clients list is no more global 2007-10-11 21:50:32 +02:00
Julien Danjou 1fa1ce1c93 dont't close STDIN in cleanup() 2007-10-11 18:56:22 +02:00
Julien Danjou e22b1e2a73 set statusbar->height in initstatusbar() 2007-10-11 18:43:42 +02:00
Julien Danjou e733af41ec remove drawcontext everywhere 2007-10-10 14:09:36 +02:00
Julien Danjou f57d275df1 move font to awesomeconf 2007-10-10 13:34:25 +02:00
Julien Danjou 2d0526696c move cursors in awesome config 2007-10-10 13:29:46 +02:00
Julien Danjou c4b1867a4d remove h attribute of drawcontext 2007-10-09 22:29:44 +02:00
Julien Danjou 99ef84e621 bugfix: don't do stuff RootWindow() with non existent screen (Xinerama) 2007-10-03 20:58:00 +02:00
Julien Danjou 97a2085705 cosmetic: remove lines with empty spaces at end 2007-10-03 17:26:14 +02:00
Julien Danjou 272f4b1c2a Xft support 2007-10-01 19:22:57 +02:00
Julien Danjou 9c747d1986 store display in awesomeconf 2007-10-01 15:31:43 +02:00
Julien Danjou 8c531e2a81 store phys_screen 2007-10-01 15:23:05 +02:00
Julien Danjou 659adaab5e use get_real_screen() in a lot of places 2007-09-28 11:55:08 +02:00
Julien Danjou d3ace8b9e8 make scan() aware of Xinerama 2007-09-27 19:21:47 +02:00
Julien Danjou ecf79693a2 use real_screen for X functions, not logical screen 2007-09-27 17:13:31 +02:00
Julien Danjou bdd408cd6c use get_screen_count instead of ScreenCount where needed 2007-09-27 17:13:31 +02:00
Julien Danjou 9dad2fd85c add -c option to specify configuration file 2007-09-26 21:22:30 +02:00
Julien Danjou 256717c792 add a_strncmp() to util.h and use a_str*() functions everywhere 2007-09-24 17:58:50 +02:00
Julien Danjou 894b341feb simplfiy drawstatus() remove screen useless arg 2007-09-24 16:23:49 +02:00
Julien Danjou 595eba78d7 create a Tag struct type and use it 2007-09-24 15:37:52 +02:00
Julien Danjou 40384806fd use a_strcmp() instead of strcmp() 2007-09-21 17:32:00 +02:00
Julien Danjou 92e8fb4cfb bug fix: rewrite handler allocation dynamicly to correctly add shape and xrandr events 2007-09-19 20:36:24 +02:00
Julien Danjou 1cd4ba0086 stop using get_window_area* fct, and remove it 2007-09-18 23:16:27 +02:00
Julien Danjou d9523d3436 simplify load/saveawesomeprops 2007-09-18 19:53:52 +02:00
Julien Danjou dcec6aa749 remove screen arg from uicb* 2007-09-18 19:53:52 +02:00
Julien Danjou ef69814e29 simplify manage(), remove screen arg 2007-09-18 19:53:52 +02:00
Julien Danjou edf76900c4 juste change 0 with EXIT_SUCCESS 2007-09-17 12:42:48 +02:00
Julien Danjou c3bb58f47a stop making awesomelibconf global and store screen number in awesome_configs
we strdup elems and p_delete them in cleanup
2007-09-16 23:13:34 +02:00
Julien Danjou c74c9c80a4 cleanup 2007-09-16 22:51:11 +02:00
Julien Danjou 360488ec18 move netatom localy 2007-09-16 17:29:40 +02:00
Julien Danjou fd1fa80641 move this fucking netatom stuff elsewhere or we overflow 2007-09-16 14:56:46 +02:00
Julien Danjou d06785f599 delete conf+elem and dc on cleanup 2007-09-16 14:56:46 +02:00
Julien Danjou dbc0860ddb fix: do have_randr/shape copy in all conf 2007-09-16 14:56:46 +02:00
Julien Danjou ccd5e28240 cosmetic 2007-09-16 14:56:46 +02:00
Julien Danjou 1ca3c565ee enhance multihead support, with N conf/dc 2007-09-16 14:56:08 +02:00
Julien Danjou 933b0413ea add screen arg to uicb* 2007-09-16 01:05:43 +02:00
Julien Danjou 3ab80f68b8 first multihead support 2007-09-16 00:36:56 +02:00
Julien Danjou 53e5630c6c add screen to drawstatusbar 2007-09-15 22:57:37 +02:00
Julien Danjou bf4007eef5 add screen args to grabkeys() 2007-09-15 22:45:08 +02:00
Julien Danjou 5c78f4785f load and save awesome props now take screen as arg 2007-09-15 22:40:52 +02:00
Julien Danjou c02be2ab82 store screen of client, first step to multi head support 2007-09-15 22:36:23 +02:00
Julien Danjou 48f17aa9f1 add initstatusbar() to init statusbar! 2007-09-15 22:25:49 +02:00
Julien Danjou 9dce41e194 simplify 2007-09-15 21:17:30 +02:00
Julien Danjou 9cdc7c3ef9 fix vlc bug 2007-09-15 20:24:40 +02:00
Julien Danjou 56a387ec5c move updatebarpos to statusbar.c 2007-09-15 15:26:51 +02:00
Julien Danjou fe89aa31b0 create statusbar.c and move things from draw.c 2007-09-15 15:16:53 +02:00
Julien Danjou 6a11f10764 move drawable to statusbar struct 2007-09-15 14:58:41 +02:00
Julien Danjou 01b2785587 rename drawstatus to drawstatusbar 2007-09-15 13:54:02 +02:00
Julien Danjou 80a6b27c26 fix barbot displaying 2007-09-15 12:45:55 +02:00
Julien Danjou b509d5cbcf add support for XRandR 2007-09-13 16:00:23 +02:00
Julien Danjou c8abcf33fb add XShape support 2007-09-13 15:58:08 +02:00
Julien Danjou c96d88975f move cursor in DC 2007-09-12 18:16:20 +02:00
Julien Danjou 2c6a71f358 add DC to uicb_*() args 2007-09-12 18:11:27 +02:00
Julien Danjou 95a5bb3cdd scan() and cleanup take DC as arg 2007-09-12 17:43:14 +02:00
Julien Danjou e0994f834e setup() now take DC as arg 2007-09-12 17:41:11 +02:00
Julien Danjou 9897e5a839 remove DC from global in draw.c 2007-09-12 16:55:47 +02:00
Julien Danjou d6c63bd086 remove wa(x,y,h,w) from global vars, add functions to compute them 2007-09-12 16:03:42 +02:00
Julien Danjou 28df49c3cb rename gettextprop to xgettextprop and move it to util.c 2007-09-12 15:01:35 +02:00
Julien Danjou 57785860b7 remove otherwm 2007-09-12 14:32:24 +02:00
Julien Danjou 7659289b9e chance license to GPLv2 2007-09-12 14:29:51 +02:00
Julien Danjou 2b5141b05a move things away from doc 2007-09-11 17:48:20 +02:00
Julien Danjou 9f56ade4e9 use more safe functions and update #inlcude 2007-09-11 14:00:49 +02:00
Julien Danjou f726e475e3 export netatom or we die 2007-09-11 10:17:38 +02:00
Julien Danjou abef4969c2 fix regression 2007-09-10 17:20:17 +02:00
Julien Danjou 1ad4adf901 change compileregs proto, simplify 2007-09-10 17:07:07 +02:00
Julien Danjou fc686750eb move some netatom back but only in setup() 2007-09-10 16:55:33 +02:00
Julien Danjou c95c4173a6 remove NetWMName 2007-09-10 16:49:54 +02:00
Julien Danjou a6a91757c1 remove wmatom 2007-09-10 16:48:00 +02:00
Julien Danjou 56b92a20b4 remove WMState 2007-09-10 16:47:20 +02:00
Julien Danjou 9485e7305c remove WMName 2007-09-10 16:45:42 +02:00
Julien Danjou 58dac78b87 remove WMProtocols 2007-09-10 16:44:23 +02:00
Julien Danjou deadd850ae remove WMDelete 2007-09-10 16:43:20 +02:00
Julien Danjou 6f528063be rename jdwm to awesome 2007-09-10 12:06:54 +02:00