Jasper St. Pierre
f11ad43ed0
cairo-util: Don't show a resize cursor on edges when we're maximized
...
This is substantially confusing to users, namely me.
krh: Edited to just set grip size to zero.
11 years ago
Jasper St. Pierre
a4d9723341
cairo-util: Kill a duplicate test
...
If !(x < margin), then clearly margin <= x. No need to test for it again.
11 years ago
Kristian Høgsberg
89f4bc4fc4
window.c: Don't put titlebars on menu windows
11 years ago
Kristian Høgsberg
c680e90489
window.c: Use frame code for drawing menus
...
This gives us a nice frame and drop shadows for the menus.
11 years ago
Kristian Høgsberg
c0bf8173dd
shared: Add out-of-memory handling to theme_create()
11 years ago
Daniel Stone
c228e23b05
configure.ac: Enable AC_USE_SYSTEM_EXTENSIONS
...
AC_USE_SYSTEM_EXTENSIONS enables _XOPEN_SOURCE, _GNU_SOURCE and similar
macros to expose the largest extent of functionality supported by the
underlying system. This is required since these macros are often
limiting rather than merely additive, e.g. _XOPEN_SOURCE will actually
on some systems hide declarations which are not part of the X/Open spec.
Since this goes into config.h rather than the command line, ensure all
source is consistently including config.h before anything else,
including system libraries. This doesn't need to be guarded by a
HAVE_CONFIG_H ifdef, which was only ever a hangover from the X.Org
modular transition.
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
[pq: rebased and converted more files]
12 years ago
Kristian Høgsberg
3c2360ff9d
Add new shared/image-loader.h to separate include dependencies
...
Before, cairo-util.h would combine pixman and cairo includes. X11 and
Wayland compositors uses this to load an image as a pixman_image_t but are
forced to include cairo headers. Clients use load_cairo_surface to
load images as cairo_surface_t's, but are forced to include pixman.h.
We move the load_image pixman prototype to its own header, so compositors
can get at the pixman prototype without including cairo.h and clients
can include the cairo based function without including pixman.h.
12 years ago
Scott Moreau
c6a7e4b277
toytoolkit: Don't draw shadows for maximized windows.
...
Add THEME_FRAME_MAXIMIZED flag so the theming system can know not to draw
shadows for maximized windows. This allows maximized surfaces' content to be
sized and placed in a more expectable fashion.
12 years ago
Martin Minarik
5f3eddc07a
weston: Clip window title text to the frame
...
Fixes an issue with text overflowing the available frame space.
13 years ago
Kristian Høgsberg
f96e6c00d9
Share code to to classify pointer location in frame
13 years ago
Kristian Høgsberg
5a315bc72d
Move cairo-util to shared/
13 years ago
Kristian Høgsberg
5adb480e60
window: Move frame rendering to cairo-util
13 years ago
Kristian Høgsberg
42abdf5c80
window: Move theme rendering code to cairo-util
13 years ago
Kristian Høgsberg
919fbf0fee
cairo-util: Use nearest filtering for rendering frame
...
We don't need bilinear filtering here, the corners aren't scaled and
the scaled edges are just stretched along one axis.
13 years ago
Kristian Høgsberg
126f85535f
window.c: Fix the stretch scaling code
13 years ago
Kristian Høgsberg
ec323d222c
window.c: Increase drop shadow fluffiness
13 years ago
Ustun Ergenoglu
6dc0f86dbd
cairo-util: load_cairo_surface returns NULL if loading the file fails.
...
Otherwise a non-existent file in the configuration crashes the desktop shell.
Signed-off-by: Ustun Ergenoglu <ego@ustun.fi>
13 years ago
Kristian Høgsberg
f02a649a3c
Consolidate image loading code and move to shared/
13 years ago
Tiago Vignatti
0a26641626
clients: fix spelling
...
Signed-off-by: Tiago Vignatti <vignatti@freedesktop.org>
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
13 years ago
Kristian Høgsberg
3d5437c48d
Add support for webp image format
13 years ago
Kristian Høgsberg
902865c757
cairo-util: Only look at first two bytes for jpegs
...
The next two bytes aren't fixed.
13 years ago
Kristian Høgsberg
804e05185b
cairo-util: Don't anger png.h by including setjmp.h
...
Older libpngs are a bit fussy about this, apparently.
13 years ago
Kristian Høgsberg
d654876510
cairo-util: Add png loader and image type sniffing
13 years ago
Kristian Høgsberg
ffe3bba13e
cairo-util: Return NULL instead of exit() on jpeg load failure
13 years ago
Kristian Høgsberg
02453dd699
cairo-util: Dont use non-standard JCS_EXT_BGRX color space
...
Everytime somebody has to write a channel swizzling loop,
God kills a kitten... and a dolphin and a unicorn.
13 years ago
Kristian Høgsberg
bf8bd5aa3a
cairo-util: Fix another last-minute typo
13 years ago
Kristian Høgsberg
27d3866045
cairo-util: Add helper to load jpeg files
13 years ago
Benjamin Franzke
47eb8f4e91
window: Remove display_flush_cairo_device
...
Rather add a flush_surface utility that
flushed the cairo_device thats associated to a surface.
13 years ago
Kristian Høgsberg
1e164b9afd
Move rounded_rect() to cairo-util.c
13 years ago
Kristian Høgsberg
0cd8f6eded
Drive-by optimization of blur_surface()
14 years ago
Kristian Høgsberg
9a686243b6
Add a drag and drop test client
14 years ago
Kristian Høgsberg
b91cd10fcb
Move cairo-util.[ch] to clients/
14 years ago
Kristian Høgsberg
dcb71b62a0
Update decoration drawing to be less cairo path happy
15 years ago
Kristian Høgsberg
49e868cb05
Fix a few bugs in blur implementation
15 years ago
Kristian Høgsberg
7d7b5dbf4d
Tweak theme a bit
15 years ago
Kristian Høgsberg
5fc96ff6e2
Dont use an image surface for the tmp
...
It may have a incompatible stride and there's no point
in using a cairo surface for this.
15 years ago
Kristian Høgsberg
0ac16f056d
Switch to cairo-drm, drop struct buffer hacks.
16 years ago
Kristian Høgsberg
ffd710e653
Put Wayland under the MIT license.
16 years ago
Kristian Høgsberg
e9d550bdd4
Optimize blur further, resize gears with window.
16 years ago
Kristian Høgsberg
873302649a
Optimize blur a bit more.
16 years ago
Kristian Høgsberg
10bdd298b8
Optimize window blur calculation.
16 years ago
Kristian Høgsberg
2f2cfae227
Factor out common cairo code, add blur function.
16 years ago