Commit Graph

56 Commits

Author SHA1 Message Date
Arnaud Fontaine 71e9100927 Remove useless xutil_root_window() 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 ed00d300ab Translate properly a KeyCode to a KeySym and a string (XKB support
missing ATM).
2008-05-03 12:01:00 +02:00
Arnaud Fontaine dafafd077c Port Awesome to XCB 2008-05-03 12:00:59 +02:00
Nikos Ntarmos ef60378754 [common] remove and getline and strndup usage
There is no getline() on FreeBSD, nor any strndup().

Signed-off-by: Julien Danjou <julien@danjou.info>
2008-04-19 23:08:18 +02:00
Julien Danjou 7a220718d2 [awesome-menu] Grab keyboard earlier if stdin is not a tty
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-04-01 16:43:18 +02:00
Julien Danjou ce117df401 [awesome-menu] Map when finished to draw
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-03-31 15:50:29 +02:00
Julien Danjou 99c9e00d99 [awesome-menu] Remember the last completion request (FS#136)
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-03-31 15:32:41 +02:00
Julien Danjou ff44fc44ca [awesome-menu] Documente code
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-03-31 14:25:59 +02:00
Julien Danjou d5d1319821 Do not start to OpenDisplay before reading command line options
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-03-25 16:56:47 +01:00
marco candrian b92a292e43 additional line width argument to draw_rectangle[_gradient] in draw.c
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-03-23 15:52:22 +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 accf223bb1 Use warn() instead of perror()
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-03-23 15:52:21 +01:00
Julien Danjou c7e821a54a Remove sizeof() usage
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-03-23 15:52:21 +01:00
Arnaud Fontaine 77dfdd2928 Remove PATH_MAX usage from awesome-menu
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-03-23 15:52:21 +01:00
Julien Danjou 9204066788 Begin to use validate function in config handling 2008-03-23 15:52:21 +01:00
Arnaud Fontaine 7743e71837 Add missing includes
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-03-23 15:52:20 +01:00
Julien Danjou 74777016af Documente existing -c option of awesome-menu 2008-03-23 15:52:19 +01:00
Julien Danjou c6eec955c8 Rename Area to area_t 2008-03-23 15:52:18 +01:00
Julien Danjou d10b98c101 Make awesome-{menu,message} Xinerama aware 2008-03-23 15:52:18 +01:00
Julien Danjou fa47024714 Change colors infrastructure to style: rename colors_ctx_t to style_t and add font in it 2008-03-23 15:52:18 +01:00
Julien Danjou 9dfd488dda Change colors handling 2008-03-23 15:52:18 +01:00
Arnaud Fontaine fc9e31ff62 get rid of PATH_MAX
I  replaced  stack  memory  allocations  with PATH_MAX  by  heap  memory
allocations on post-2.2 branch  because PATH_MAX isn't necessary defined
according to  POSIX specification.   For instance GNU/Hurd  doesn't have
PATH  size restriction,  thus doesn't  defined PATH_MAX  and compilation
will fail.

Signed-off-by: Julien Danjou <julien@danjou.info>
2008-03-23 15:52:17 +01:00
Julien Danjou 6b4c9fed83 Remove useless ; after DO_SLIST macro 2008-03-23 15:52:17 +01:00
Julien Danjou 0a980095b3 Rework colors stuff, add a common colors_ctx_t containing colors and shadow options 2008-03-23 15:52:17 +01:00
Julien Danjou cbc5ec8060 Use common/xscreen infra to get screens info 2008-03-23 15:52:17 +01:00
Julien Danjou 8db08ea43e [awesome-menu] Fix a problem with XK_Tab completion and with "." listing 2008-03-23 15:52:17 +01:00
Julien Danjou f3652aaca6 Add a pointer to SLIST struct to store previous element
This will make back cycling faster
2008-03-23 15:52:17 +01:00
Julien Danjou 6d5d2e68d6 [awesome-menu] Add a final / to directory names 2008-03-23 15:52:17 +01:00
Julien Danjou 6b06e6808a [awesome-menu] Add support for ~user path 2008-03-23 15:52:17 +01:00
Julien Danjou 33560c393d [awesome-menu] Check that we have enough width to draw our items 2008-03-23 15:52:17 +01:00
Julien Danjou 4a41a50a39 [awesome-menu] Better handling of selected item that are drawn in the end of the list 2008-03-23 15:52:17 +01:00
Julien Danjou e668bf8dc3 [awesome-menu] Fix problem with filling via stdin was overwritten 2008-03-23 15:52:17 +01:00
Julien Danjou e6b3aa92f5 [awesome-menu] Remove a bunch of useless keybindings and add support for ISO_Left_Tab 2008-03-23 15:52:17 +01:00
Julien Danjou f00008938f [awesome-menu] Fix wrong size in a_strcpy() 2008-03-23 15:52:17 +01:00
Julien Danjou 5b2e9c0139 [awesome-menu] Fix infinite loop on bad completion 2008-03-23 15:52:16 +01:00
Julien Danjou a5f0df0c95 [awesome-menu] Add support for empty prompt 2008-03-23 15:52:16 +01:00
Julien Danjou 1fb61f54df [awesome-menu] Remove command line option and add support for menu {} in conffile 2008-03-23 15:52:16 +01:00
Julien Danjou cb525dd4ba [awesome-menu] rewrite handling of ~ which was too buggy 2008-03-23 15:52:16 +01:00
Julien Danjou df8e3abf50 [awesome-menu] item_list_fill_file() now returns a Bool and support for ~ as directory 2008-03-23 15:52:16 +01:00
Julien Danjou 9d14cca8e0 [awesome-menu] Make compute_match() take an arg, and rewrite conditions 2008-03-23 15:52:16 +01:00
Julien Danjou 7cbd82011b [awesome-menu] Change item_list_fill_file() proto to take directory as arg 2008-03-23 15:52:16 +01:00
Julien Danjou 5b7200daf2 [awesome-menu] Try harder to grab keyboard
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-03-23 15:52:16 +01:00
Julien Danjou cd28b2357b [awesome-menu] Make completion cyclic 2008-03-23 15:52:16 +01:00
Julien Danjou 6ebf5b5032 [awesome-menu] Fix some completion error 2008-03-23 15:52:16 +01:00
Julien Danjou f3c632aebf [awesome-menu] Complete file completion 2008-03-23 15:52:16 +01:00
Julien Danjou b5ad123e60 [awesome-menu] Add preliminary support for file completion 2008-03-23 15:52:16 +01:00
Julien Danjou 6c88ddc63e [awesome-menu] Cosmetic changes; init var with nice value and remove else statement 2008-03-23 15:52:16 +01:00
Julien Danjou 6161fc2130 Fix regression, set selected_item_is_drawn to True when selected has been drawn. 2008-03-23 15:52:15 +01:00