Commit Graph

3919 Commits

Author SHA1 Message Date
Julien Danjou 7349fb56a8 awful.placement: add centered placement
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-13 23:56:26 +01:00
Gregor Best b5db8032f9 lib/awful/menu.lua: fix widget buttons
Signed-off-by: Gregor Best <farhaven@googlemail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-13 23:49:36 +01:00
steffoz fc394d61fc Added fg_minimize and bg_minimize to properly color tasklist minimized clients
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-13 23:00:36 +01:00
Gregor Best 3f418ba79a lib/awful/menu.lua: fix item buttons
Signed-off-by: Gregor Best <farhaven@googlemail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-13 22:57:14 +01:00
Gregor Best 10bfb36d4b wibox: add mouse_enter and mouse_leave for wibox
Signed-off-by: Gregor Best <farhaven@googlemail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-13 22:54:36 +01:00
Julien Danjou d2fc646590 change codename
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-13 13:56:38 +01:00
Julien Danjou 76b081622b awesomerc: enhance button 1 on tasklist (FS#450)
This will make it work with alltags label function.

Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-13 11:31:20 +01:00
Julien Danjou ada983d08e ewmh: add missing window types
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-13 11:25:38 +01:00
Julien Danjou af95800df1 ewmh: add support for _NET_DESKTOP_GEOMETRY
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-13 10:57:42 +01:00
Mariusz Ceier 96ea073fc6 ewmh.c: Fix array size
If all state bits are set, ewmh_client_update_hints state buffer overflows.

Signed-off-by: Mariusz Ceier <mceier@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-11 19:27:44 +01:00
Gregor Best 050a6bbb61 client: add client_seturgent() and remove urgent hint on focus
According to EWMH, the window manager is responsible for removing the
urgent state of a client. Also, this commit adds a new
client_seturgent(client_t *, bool) function to set the urgent state if
needed.

Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-11 19:04:09 +01:00
Mariusz Ceier 01eff69bf4 client: fix focus subsystem
We don't need to unfocus currently selected client.
Added WM_TAKE_FOCUS atom, so we can implement correct ICCCM,
focus behavior, in relation to Input Models ( sections 4.1.7 [1],
4.2.7 [2] ).
Currently correctly implemented are, "No Input", and "Passive"
models, and additionally works "Locally Active".
To test focus-in and focus-out events I used program from [3].

[1] http://tronche.com/gui/x/icccm/sec-4.html#s-4.1.7
[2] http://tronche.com/gui/x/icccm/sec-4.html#s-4.2.7
[3] http://mail.gnome.org/archives/gtk-devel-list/2001-November/msg00334.html

Signed-off-by: Mariusz Ceier <mceier@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-11 18:54:02 +01:00
Maarten Maathuis 93386ff08f mouse: only reserve "docking space" along the largest dimension of the window.
- This avoids a nasty issue with fullheight toolbars.

Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-11 01:56:58 +01:00
Maarten Maathuis fdee06fe31 client: fix titlebar stacking
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-11 01:56:57 +01:00
Maarten Maathuis 8e58460109 client: add above and below to capi + related fixes
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-09 12:30:19 +01:00
Julien Danjou f24ddbd159 awful.hooks: disallow 0 timer value
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-09 12:14:15 +01:00
Maarten Maathuis bd6e568083 event: fix configurerequest
- We have to be careful with geometry around protocol code.

Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-08 14:10:17 +01:00
Maarten Maathuis 0626d42396 client: change border handling slightly + remove some old cruft
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-08 14:07:18 +01:00
Maarten Maathuis 62b2273b53 client: client_isvisible_exclude_banned() isn't needed anymore.
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-08 14:06:15 +01:00
Julien Danjou 21e6db0049 client: reset transient_for on unmanage
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-08 14:00:30 +01:00
Maarten Maathuis 703fd1077d mouse: allow utility, toolbar and dock windows to snap to the edge of the window
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-08 13:21:54 +01:00
Maarten Maathuis 41b892291d client: implement client struts in the capi.
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-08 13:21:20 +01:00
Mariusz Ceier be28925fb6 Fix killproperty and floating.delete
Use new API, so they don't emit lua errors:

W: awesome: luaA_dofunction:317: error running function:
/usr/share/awesome/lib/awful/client.lua:595: attempt to index field
'floating' (a nil value)

W: awesome: luaA_dofunction:317: error running function:
/usr/share/awesome/lib/awful/client.lua:761: attempt to index field
'property' (a nil value)

Signed-off-by: Mariusz Ceier <mceier@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-08 12:21:55 +01:00
Julien Danjou ef565076d7 build: remove useless dep
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-07 16:40:15 +01:00
Maarten Maathuis 247852f4de titlebar: remove some old/unneeded code
- This fixes the resize upon titlebar removal issue.

Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-07 15:45:07 +01:00
Julien Danjou a47d0d9924 awful.mouse: be smarter when moving between screens (FS#419)
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-07 15:40:50 +01:00
Julien Danjou b294eb990e screen: do arrange, even if we do not resize
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-07 15:39:35 +01:00
Julien Danjou ee382dc5a8 awful.client: use property for floating registering
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-07 15:26:46 +01:00
Julien Danjou fa9e31a2d4 awful.client: add property system
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-07 15:19:27 +01:00
Maarten Maathuis 24599aa198 client: update client geometry when adding and removing titlebars
- This fixes titlebars again.

Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-06 22:46:25 +01:00
Maarten Maathuis 2e8071efae titlebar: don't resize window when adding titlebar.
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-06 22:46:25 +01:00
Gregor Best ef6d6dd12c awful.hooks: finally and for the last time fix timer removal
Signed-off-by: Gregor Best <farhaven@googlemail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-06 22:23:47 +01:00
Julien Danjou 90241e4076 change codename
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-06 17:43:56 +01:00
Gregor Best 321741b0ac awful.hooks: repair fix for timer removal
Signed-off-by: Gregor Best <farhaven@googlemail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-06 17:24:10 +01:00
Gregor Best bc1a2f5448 awful.hooks.timer: fix timer removal
Signed-off-by: Gregor Best <farhaven@googlemail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-06 15:52:59 +01:00
Julien Danjou dd2c62721c tag: add compatibility with old constructor proto
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-06 11:55:09 +01:00
Julien Danjou e0754de9cb naughty: set icon valign to center
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-05 18:10:19 +01:00
Julien Danjou 2c6dc1048d titlebar: correctly ban/unban (FS#443)
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-05 17:55:59 +01:00
Julien Danjou a13f3fe553 client: handle tags assignment in awful (FS#441)
This also deactivate group management. This can be done in Lua now.

Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-03 12:20:17 +01:00
Maarten Maathuis b8a371864b client, titlebar: fix some issues involving titlbars and dialogs.
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-03 10:32:00 +01:00
Maarten Maathuis 88713851ab event: Prevent seeing banned clients on the visible screen.
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-03 10:30:23 +01:00
Julien Danjou 6c963a6eed client: check tags even after transient/group tag copy (FS#434)
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-03 10:24:04 +01:00
Julien Danjou ae6a598911 awful.titlebar: document modkey argument
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-02 09:51:28 +01:00
Julien Danjou e0a5995fe6 awful.titlebar: allow titlebar on dialogs (FS#439)
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-02 09:28:45 +01:00
Julien Danjou 2a2ce6e83e client: switch to xcb-icccm 0.3.3
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-01-31 16:03:06 +01:00
Julien Danjou 5536d8e78b wibox: reparent systray only if needed (FS#436)
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-01-30 16:13:34 +01:00
Julien Danjou f45cdee4eb event: do not store resize events of banned clients
This should fix the problem seen with Firefox. When clicking on a
file that will launch a "Save as" dialog, and switching tag quickly,
the client is banned and move off of the viewport.
Then FF send a ConfigureRequest to re-move it to this negative
coordinates, which we did handle and set as its geometries.
Now we just honor the (bad and useless) move but we do not use
client_resize()

Signed-off-by: Julien Danjou <julien@danjou.info>
2009-01-30 15:29:33 +01:00
Julien Danjou b878e1491f client: reset height and width on unbanning
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-01-30 15:07:49 +01:00
Julien Danjou 9e89753018 client: change stacking order
We had:
ontop clients -> ontop wiboxes -> fs clients
Now:
fs clients -> ontop clients -> ontop wiboxes

Signed-off-by: Julien Danjou <julien@danjou.info>
2009-01-30 12:46:37 +01:00
Julien Danjou f82ac1972f client: make `ontop' windows under fullscreen
`ontop' wiboxes will also be on top of `ontop' clients.

Signed-off-by: Julien Danjou <julien@danjou.info>
2009-01-30 10:47:54 +01:00