Pierre Habouzit
14f4e02e66
Replace tag_t lists with arrays.
...
This improves lots of code efficiency (we *know* how many tags we have
now, YA'RLY).
Also fix a \todo in client.c: since knowing the number of tags is cheap,
ignore props that don't match it.
Use many p_alloca for things that depends on the number of tags (no sane
user will have *thousands* of tags. This saves a few more mallocs.
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
2008-06-23 17:37:19 +02:00
Julien Danjou
a5478e5438
ewmh: add support for _NET_WM_WINDOW_TYPE_DESKTOP
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-19 19:51:58 +02:00
Julien Danjou
b800cffd5b
ewmh: fix _NET_WORKAREA setting
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-19 13:05:19 +02:00
Julien Danjou
92f369e3aa
lua: userdata_new is now macro
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-18 18:31:35 +02:00
Julien Danjou
8753a54c65
ewmh: s/NetWMIcon/netwm_icon_t/
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-18 09:29:57 +02:00
Julien Danjou
24860ac3cb
ewmh: add support for _NET_WM_PID
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-18 08:55:31 +02:00
Julien Danjou
93d4031a69
ewmh: add support for _NET_WM_DESKTOP
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-18 00:08:04 +02:00
Julien Danjou
e0905b2183
ewmh: fix stacking change property
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-17 23:00:48 +02:00
Julien Danjou
f13f09b4da
ewmh: add support for _NET_WM_STATE_DEMANDS_ATTENTION
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-17 22:57:54 +02:00
Julien Danjou
f99e069a65
ewmh: add fake _NET_WM_VISIBLE_ICON_NAME support
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-17 22:49:28 +02:00
Julien Danjou
77140598d7
ewmh: add fake _NET_WM_VISIBLE_NAME support
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-17 22:48:34 +02:00
Julien Danjou
54190db14f
ewmh: set _NET_WM_NAME
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-17 22:47:31 +02:00
Julien Danjou
baa82ac867
ewmh: cosmetic
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-17 22:14:14 +02:00
Julien Danjou
9490c0c3fd
ewmh: add support for _NET_WORKAREA
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-17 22:12:30 +02:00
Julien Danjou
63ab310585
ewmh: add support for _NET_CLIENT_LIST_STACKING
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-17 21:47:57 +02:00
Julien Danjou
b3d969f4e1
ewmh: add _NET_SUPPORTING_WM_CHECK support
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-17 21:25:23 +02:00
Arnaud Fontaine
b9e1ec69d0
Replace xcb_aux_get_screen() by a safer function
2008-06-17 17:14:00 +02:00
Julien Danjou
e5e379656a
systray: import widget
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-14 18:12:16 +02:00
Julien Danjou
45d8e16afb
ewmh: add support for _NET_WM_STATE_HIDDEN
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-13 17:33:59 +02:00
Julien Danjou
008cf2b340
ewmh: add modal windows support and a modal layout
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-13 14:41:42 +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
816b5d16bc
[focus] Fix bogus arguments
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-09 18:18:27 +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
Julien Danjou
6ba90facb0
[client] Various documentation update and fixes
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-05 09:27:16 +02:00
Julien Danjou
24176ba8c7
[screen] s/screen_get_area/screen_area_get/
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-04 15:35:48 +02:00
Julien Danjou
aecc3c0e45
[titlebar] Store titlebar inside client
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-04 11:50:21 +02:00
Julien Danjou
1e08a992b8
[titlebar] Rewrote titlebar based on widgets
...
This is the new titlebar handling code, based on widgets.
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-03 18:41:54 +02:00
Julien Danjou
3ab739553c
[client] Add and honor the noborder attribute
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-28 14:33:45 +02:00
Julien Danjou
d9dd1fba8e
Revert "[client] Remove ismax attribute."
...
This reverts commit fb822997b3
.
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-25 17:42:20 +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
fb822997b3
[client] Remove ismax attribute.
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-23 13:11:47 +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
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
e4d091ab2e
[tag] Rename Tag type to tag_t
...
Signed-off-by: Julien Danjou <julien@danjou.info>
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
ea7c1ceeb3
[ewmh/awesome] Comsmetics
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-03 12:01:01 +02:00
Arnaud Fontaine
1309287ead
Cleanup of TODO messages
2008-05-03 12:01:01 +02:00
Arnaud Fontaine
71e9100927
Remove useless xutil_root_window()
2008-05-03 12:01:00 +02:00
Arnaud Fontaine
da5236d57a
Cosmetic
2008-05-03 12:01:00 +02:00
Julien Danjou
75926a6039
[ewmh] Fix data type in EWMH icon
...
Actually, it should be CARD32 in Xlib, but somehow this did not work
until I used unsigned long. This seems to be fixed in xcb, I'm
impressed.
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
dafafd077c
Port Awesome to XCB
2008-05-03 12:00:59 +02:00
Wolfgang Kroener
3af77fd56e
add ewmh stacking layers
...
Add layers for ewmh stacking order
http://standards.freedesktop.org/wm-spec/wm-spec-1.3.html#STACKINGORDER
desktop, below, tile, float, above, fullscreen
Signed-off-by: Wolfgang Kroener <wk@azog.de>
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-03 12:00:25 +02:00
Julien Danjou
afdc57bc97
[titlebar] Add proper interface to set titlebar position
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-04-24 22:58:25 +02:00
Julien Danjou
0a9b206fc0
[ewmh] Use premul alpha for net_wm_icons
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-03-26 10:26:08 +01:00
Julien Danjou
5cabcab2f5
Fix a bug in NET_WM icon, blue and red were reversed
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-03-25 19:30:31 +01:00
Julien Danjou
b946119d46
Disable titlebar on fullscreen/maximize
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-03-24 14:44:11 +01:00
Julien Danjou
0a6c6e017b
Store physical screen id in statusbar and client, change get_phys_s() to screen_virttophys()
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-03-23 15:52:22 +01:00
Julien Danjou
8774c2d85b
Revert "don't draw the border of skip'ed windows"
...
This reverts commit a1437fb66c
.
Conflicts:
ewmh.c
2008-03-23 15:52:21 +01:00
Julien Danjou
e22d57a0ca
Change the way to do resize
...
Go back to old school
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-03-23 15:52:20 +01:00
Julien Danjou
a6b203f8a6
Disable titlebar for dock and panels
2008-03-23 15:52:19 +01:00
Julien Danjou
3c3015fd76
Remove resize_hints args to client_resize(), force usage of client_geometry_hints()
2008-03-23 15:52:18 +01:00
Julien Danjou
c6eec955c8
Rename Area to area_t
2008-03-23 15:52:18 +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
2ca938e18e
set skip focus on skip taskbar
2008-02-12 10:06:19 +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
d9298f6edb
rename get_current_tags to tags_get_current()
2008-01-29 08:31:13 +01:00
Julien Danjou
ee1214846e
rename some client functions
2008-01-29 08:21:05 +01:00
Julien Danjou
7ba97b3630
fullscreen respect padding
2008-01-23 17:01:39 +01:00
Julien Danjou
668702b777
move list.h and util.[ch] to common/
2008-01-21 18:14:59 +01:00
Julien Danjou
c2e6e87bac
init geometry, and do not need to set need_arrange, setfloating() does it
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
7f4dc5a871
use client_setfloating() to change floating attribute
2008-01-21 16:31:15 +01:00
Julien Danjou
6fc766a847
clean some tag stuff
2008-01-21 16:31:14 +01:00
Julien Danjou
45ac9d24f4
rename tag_view to tag_view_byindex
2008-01-21 16:31:14 +01:00
Nikos Ntarmos
a1437fb66c
don't draw the border of skip'ed windows
...
Teaching ewmh_process_window_state_atom(...) to clear the border for
windows that are to be skipped from the taskbar, much like skip'ed
windows.
2008-01-18 08:35:12 +01:00
Julien Danjou
72338dc74f
does not set only floating, also resize
2008-01-11 13:37:45 +01:00
Julien Danjou
5c9291ff0b
use a cache system for status bar
2008-01-07 18:12:38 +01:00
Julien Danjou
29a5cda54f
fix some weird conditions with fullscreen/max/arrange
2008-01-06 23:27:47 +01:00
Julien Danjou
7faa483e89
add support for _NET_WM_WINDOW_TYPE_DIALOG
2008-01-06 22:28:27 +01:00
Julien Danjou
af708d2fbc
Rewrite everything about client geoemtry, resize, etc.
2008-01-06 20:36:39 +01:00
Julien Danjou
62d5711a7e
move NetWMIcon get to ewmh.c
2008-01-03 19:02:23 +01:00
Julien Danjou
d7484fddfb
remove debug printf
2008-01-03 13:17:01 +01:00
Julien Danjou
11da7412b3
add support for _NET_WM_STATE_SKIP_TASKBAR
2008-01-03 13:15:15 +01:00
Julien Danjou
10c257d57a
get rid of Client phys_screen
2008-01-02 19:26:55 +01:00
Julien Danjou
437bc5c22c
add 2008 copyright notice
2008-01-02 16:59:43 +01:00
Julien Danjou
6701d0d2be
add a borders option to client_maximize() to (not) handle border removal
2008-01-02 11:36:06 +01:00
Julien Danjou
4f65aa8f51
rework headers inclusion
2008-01-01 18:02:36 +01:00
Julien Danjou
909f92d500
replace UICB_PROTO macro by a typedef
2008-01-01 17:25:48 +01:00
Julien Danjou
f8300c5523
add support for _NET_CURRENT_DESKTOP messages
2007-12-28 22:16:27 +01:00
Julien Danjou
9ec91d37c0
add support for _NET_WM_WINDOW_TYPE_SPLASH
2007-12-28 22:01:22 +01:00
Julien Danjou
3a8e2c70ba
add support for _NET_WM_ICON_NAME
2007-12-28 21:58:21 +01:00
Julien Danjou
8c36b49f7f
add support for _NET_WM_WINDOW_TYPE_DOCK
2007-12-28 21:26:02 +01:00
Julien Danjou
f37c71c162
add support for _NET_WM_STATE_FULLSCREEN
...
This commit also drop the handle_event_configurerequest() because it seems
totally unuseful now. This can cause problem, and if so, report it.
2007-12-28 18:31:31 +01:00
Julien Danjou
e95dc4b4cd
simplify tag_client() and untag_client() proto
2007-12-27 22:43:59 +01:00
Julien Danjou
2287c0ff7c
add support for NET_WM_STATE and NET_WM_STATE_STICKY
2007-12-27 22:39:29 +01:00
Julien Danjou
87fce96644
add support for NET_CLOSE_WINDOW
2007-12-27 20:49:38 +01:00
Julien Danjou
5f92667773
simplify sel handling
2007-12-27 19:57:46 +01:00
Julien Danjou
50e7595a0c
add support for _NET_ACTIVE_WINDOW
2007-12-27 19:33:01 +01:00
Julien Danjou
a1f5e2ee22
add support for _NET_DESKTOP_NAMES
2007-12-27 19:11:18 +01:00
Julien Danjou
3de4814910
add support for _NET_CURRENT_DESKTOP
2007-12-27 18:42:20 +01:00
Julien Danjou
502f502e23
add support for _NET_NUMBER_OF_DESKTOPS
2007-12-27 18:26:50 +01:00
Julien Danjou
423659d401
move ewmh_update_net_client_list() into ewmh.c
2007-12-27 18:01:36 +01:00
Julien Danjou
73691143af
externalize EWMH handling
2007-12-27 17:27:20 +01:00