Uli Schlachter
085bc00a24
Emit property::geometry only if something changed
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2015-10-14 19:40:18 +02:00
Uli Schlachter
6adeafdec3
Test if cairo-xcb is usable during startup
...
Create a pixmap of size 1x1 and a cairo-xcb surface for this pixmap. If the
surface ends up in an error state, awesome will refuse to start.
This turns a "awesome is unusable and prints lots of errors on X11 servers where
the root window has a depth of 8bpp and no one knows where exactly the problem
is" into "awesome refuses to start on such X11 servers and prints an error that
helps Uli to say immediately what the problem is".
Signed-off-by: Uli Schlachter <psychon@znc.in>
2015-02-18 21:23:47 +01:00
Uli Schlachter
bb304c80a3
draw: Add function for finding a visual by id
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2013-09-16 11:59:00 +02:00
Uli Schlachter
f8e6a3a909
draw.h: Include lua.h
...
This header uses lua_State*, but doesn't actually include lua.h
Signed-off-by: Uli Schlachter <psychon@znc.in>
2012-10-14 17:03:00 +02:00
Uli Schlachter
9fef3dd07c
Move some helper functions to draw.h
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2012-07-29 15:25:40 +02:00
Uli Schlachter
e57af377bb
Don't pass cairo surfaces around on the lua stack
...
Now that the C code uses lightuserdata for passing around cairo surfaces, they
are no longer automatically garbage collected. To avoid memleaks, this commit
compares the C code to use cairo_surface_t pointers instead of the lua stack.
This also fixes a memleak were a client's icon was leaked.
Signed-off-by: Uli Schlachter <psychon@znc.in>
2012-05-28 09:29:47 +02:00
Uli Schlachter
4f30dfd198
Switch from oocairo to lgi.cairo
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2012-05-27 19:20:34 +02:00
Uli Schlachter
9451fec6f1
Add awesome.load_image()
...
This uses imlib2 for loading the image and thus supports more image formats than
just PNG.
Almost fixes: FS#958
Signed-off-by: Uli Schlachter <psychon@znc.in>
2012-01-29 14:08:57 +01:00
Gregor Best
c2ea920ca0
remove encoding=utf-8 from modelines
...
This option is no longer valid in modelines, so it has been removed from
all modelines using the following shellscript:
#!/bin/ksh
git ls-tree -r HEAD | cut -f2 | while read f; do
egrep -e '^(//|--) vim: .*encoding=' $f >/dev/null || continue
sed -E -e '/^(\/\/|--) vim:/s/:encoding=utf-8//' $f > /tmp/foo
mv /tmp/foo $f
done
Signed-off-by: Gregor Best <gbe@ring0.de>
Signed-off-by: Uli Schlachter <psychon@znc.in>
2011-09-11 17:34:09 +02:00
Uli Schlachter
b3ebab0a7e
draw: Remove some now-unused stuff
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-10-06 20:06:49 +02:00
Uli Schlachter
db3b1fe431
Image: Remove
...
Everything now uses oocairo instead.
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-09-29 19:36:58 +02:00
Uli Schlachter
7b53a73b0f
Add a function for drawing a cairo surface
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-09-29 12:36:38 +02:00
Uli Schlachter
97f66c57b5
Add drawing functions that will be needed later on
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-09-09 16:55:03 +02:00
Uli Schlachter
56fd77139e
draw: Stop using a_tokenize
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-09-02 19:04:48 +02:00
Uli Schlachter
32d9a5b2ab
Remove support for zaphod mode
...
This makes awesome support only a single X11 protocol screen. If you are still
using zaphod mode, you can run multiple instances of awesome on the single
screens, e.g.:
DISPLAY=:1.0 awesome & DISPLAY=:1.1 awesome &
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-08-16 13:47:40 +02:00
Uli Schlachter
5992a6929f
Clear a draw_text_context_t during wipe()
...
This fixes a bug where pango was called with already-freed arguments because
wipe() didn't zero out those variables and a later init() failed.
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-07-16 19:52:42 +02:00
Julien Danjou
4717feb02b
image: move into objects
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-10-27 12:16:36 +01:00
Julien Danjou
be09012c08
graph, progressbar: remove
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-10-20 20:42:04 +02:00
Julien Danjou
1442687830
font: split out of draw
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-09-07 17:51:40 +02:00
Julien Danjou
1060470b3f
draw: stop requesting extents
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-27 15:38:17 +02:00
Julien Danjou
7ecf1afdfd
draw: move padding stuff inside textbox
...
This is only used by textbox.
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-25 20:24:38 +02:00
Julien Danjou
26c446fa82
textbox: add valign
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-25 17:56:48 +02:00
Julien Danjou
176fa70916
draw: remove useless AlignFixed
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-04 14:35:20 +02:00
Gregor Best
aa9a7b1fc8
widgets: get rid of align attribute
...
Signed-off-by: Gregor Best <farhaven@googlemail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-07-17 16:46:49 +02:00
Julien Danjou
16376a9f7c
screen: store default visual
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-07-10 16:26:49 +02:00
Uli Schlachter
b7f05f32c0
draw_context_t's depth member is unused, remove it
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-06-11 12:54:42 +02:00
Julien Danjou
073c658418
draw: remove area_array_t type
...
Not used anymore.
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-06-04 17:20:01 +02:00
Uli Schlachter
37862c83c0
Make the draw_*() functions take a color_t*
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2009-04-18 14:02:21 +02:00
Uli Schlachter
5dadaa59a9
Move xcolor into its own source files
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2009-04-18 13:55:38 +02:00
Uli Schlachter
40c300afed
Change xcolor_t::initialized into a bool
...
The code already assigns "true" to this, but it's not yet a boolean variable.
Signed-off-by: Uli Schlachter <psychon@znc.in>
2009-04-15 12:01:41 +02:00
Lionel Ott
970b566580
Added AlignMiddle to alignment_t structure
...
- Added AlignMiddle to denote a vertically centered element
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-03-12 11:49:58 +01:00
Michael Hofmann
39cd86f976
widget: add fixed alignment
...
This makes it possible to have fixed-width textboxes in the flexible part of a wibox.
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-14 10:28:23 +01:00
Julien Danjou
7f3e831221
draw: stop using font as argument, use global
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-14 10:28:23 +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
a4d914f0e4
draw: fix UTF-8 string len computation upon conversion
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-14 10:28:23 +01:00
Julien Danjou
9adf3fd869
draw: remove bg color markup, move to textbox
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-14 10:28:23 +01:00
Julien Danjou
b5fb612ea3
draw: remove shadow support
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-14 10:28:23 +01:00
Julien Danjou
8e9f0c8857
draw: remove margin markup, move to textbox widget
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-14 10:28:23 +01:00
Julien Danjou
1d7d3309de
draw: move padding_t inside and use it for parser data
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-14 10:28:23 +01:00
Julien Danjou
3c304bca07
draw: remove alignment markup
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-14 10:28:23 +01:00
Julien Danjou
4918614d44
draw: do not include xutil.h
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-14 10:28:23 +01:00
Julien Danjou
12a327c10f
ewmh: fix buffer.h inclusion
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-14 10:28:23 +01:00
Julien Danjou
1670088218
client: include list
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-14 10:28:23 +01:00
Julien Danjou
68f31f0629
draw: remove border markup, move it to textbox
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-14 10:28:23 +01:00
Julien Danjou
da99991223
draw: draw_text take extents as argument
...
This avoid one call of pango_layout_get_pixel_extents().
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-14 10:28:22 +01:00
Julien Danjou
a5cb98162d
textbox: add ellipsize and wrap mode support
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-11-06 17:04:23 +01:00
Julien Danjou
de9c2b1886
draw: stop exporting draw_text_markup_expand
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-11-05 13:16:02 +01:00
Julien Danjou
8e66a543bc
draw: remove phys_screen from font handling
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-11-04 17:50:10 +01:00
Julien Danjou
24a8e6d377
draw: support top and bottom as align
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-11-04 16:34:30 +01:00
Julien Danjou
2e3744de9d
widget: store supported align and use to render flex widgets
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-23 17:28:07 +02:00