Commit Graph

27 Commits

Author SHA1 Message Date
Julien Danjou 527bbfa0e0 awful.titlebar: remove otable usage
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-12 15:11:33 +02:00
Julien Danjou 82dd52ad69 awful.titlebar: do not call update on changes
We have hooks to do that.

Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-12 15:05:33 +02:00
Julien Danjou d63b850b98 awful.titlebar: add floating
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-12 15:00:11 +02:00
Julien Danjou 9f34d20f08 event: titlebar are parts of client
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-12 14:29:53 +02:00
Thomas Brunko 991c795629 awful.titlebar: more buttons added
This is a new version of 'titlebar.lua'. There are now additional buttons for:
- setting the 'ontop' attribute
- setting the 'sticky' attribute
- maximizing the client
In addition to changing the state of the client the buttons also show if the
corresponding state is active for a client. All new buttons now require 4
images for:
- unfocused window, state inactive (i.e. ontop == false)
- unfocused window, state active (i.e. ontop == true)
- focused window, state inactive (i.e. ontop == false)
- focused window, state active (i.e. ontop == true)
It's not difficult to add more buttons with any kind of functionality. User
configuration is currently restricted to theming of the buttons. Buttons are
disabled simply by not configuring them in the theme.  The icons for the new
buttons are taken from kde4. They're not really pretty but they're OK to
demonstrate the new features.

Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-12 14:24:50 +02:00
Julien Danjou eac5936393 lib: use Lua implementation of otable
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-03-14 17:19:58 +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
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
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
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
Espen Wiborg 1749ef672f awful.titlebar: Only use client name in titlebar if set
Signed-off-by: Espen Wiborg <espenhw@grumblesmurf.org>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-01-15 15:11:49 +01:00
Maarten Maathuis 6e199bbd76 client, swindow: switch to a more convient definition of geometry
- In many places i see people correcting for border width and titlebars.
- This new definition is the equivilant of what used to be fullgeometry.
- The internal geometry is now contained to a few functions that few people ever touch.
- This should avoid confusion and make code easier.
- Also protect against several unsigned overflows.

Signed-off-by: Maarten Maathuis <madman2003@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-14 10:28:24 +01:00
Maarten Maathuis 630ef295a1 titlebar: resize client when adding/removing so total size remains the same
Signed-off-by: Maarten Maathuis <madman2003@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-14 10:28:24 +01:00
Julien Danjou 26da80f90a draw: remove custom markup support
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-14 10:28:23 +01:00
Julien Danjou 53a830aea1 mouse: move resize code to awful.mouse
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-12 16:51:41 +01:00
Julien Danjou 4fcf48e247 widgets: remove name property
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-12 16:51:40 +01:00
Julien Danjou a760f4b0bc awful.titlebar: do not overwrite mouse bindings on close
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-08 16:43:24 +01:00
Julien Danjou 2e97991a90 beautiful: merge awful.beautiful, stop registering system
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-11-13 11:54:23 +01:00
Julien Danjou cdc9d40f4a awful.titlebar: fix theme support
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-11-12 11:55:35 +01:00
Maarten Maathuis 3cf17a9fae titlebar: generate mouse_enter and button events for the entire titlebar (and redirect them to the client)
Signed-off-by: Maarten Maathuis <madman2003@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-11-05 16:48:45 +01:00
Julien Danjou 3005196d64 awful.titlebar: use pairs instead of ipairs
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-23 11:22:58 +02:00
Julien Danjou 4eb096e236 libs: use geometry instead of coords
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-21 16:25:06 +02:00
Julien Danjou 862fe193ee Rewrite {tag,task}list in Lua.
This removes the C implementation of taglist and tasklist widgets and
use a Lua one.

This works by letting .widgets property of wiboxes to be a table with
table, and setting a special metatable on them which notify awesome on
newindex events, updating wiboxes.

Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-20 20:06:09 +02:00
Julien Danjou 39f50d5b06 awful.titlebar: do not build args
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-12 17:14:44 +02:00
Thomas Harning Jr 946b38147e awful.titlebar: Pull in missing dependencies and grab theme details
Modules beautiful and widget are required by the titlebar:
 * beautiful to retrieve theme details
 * widget for the buttons

Signed-off-by: Thomas Harning Jr <harningt@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-09 18:45:46 +02:00
Julien Danjou 34647e4e75 awful: split in several modules
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-09-29 18:30:32 +02:00