Add DMZ cursor theme

Some day we can make this parse X cursor themes
dev
Kristian Høgsberg 15 years ago
parent 77a4a79559
commit 4219a407ae
  1. 1
      .gitignore
  2. 6
      Makefile
  3. 2
      clients/Makefile
  4. 23
      compositor.c
  5. 2
      config.mk.in
  6. 6
      data/COPYING
  7. 21
      data/Makefile
  8. BIN
      data/bottom_left_corner.png
  9. BIN
      data/bottom_right_corner.png
  10. BIN
      data/bottom_side.png
  11. BIN
      data/grabbing.png
  12. BIN
      data/left_ptr.png
  13. BIN
      data/left_side.png
  14. BIN
      data/right_side.png
  15. BIN
      data/top_left_corner.png
  16. BIN
      data/top_right_corner.png
  17. BIN
      data/top_side.png
  18. BIN
      data/xterm.png
  19. 2
      spec/Makefile

1
.gitignore vendored

@ -4,7 +4,6 @@
*.pc
compositor
*.jpg
*.png
*~
aclocal.m4
autom4te.cache/

@ -1,6 +1,6 @@
include config.mk
subdirs = clients spec
subdirs = clients spec data
libs = libwayland-server.so libwayland-client.so
all : $(libs) compositor subdirs-all scanner
@ -60,10 +60,10 @@ scanner : \
scanner : LDLIBS += $(EXPAT_LIBS)
subdirs-all subdirs-clean :
subdirs-all subdirs-clean subdirs-install:
for f in $(subdirs); do $(MAKE) -C $$f $(@:subdirs-%=%); done
install : $(libs) compositor
install : $(libs) compositor subdirs-install
install -d $(libdir) $(libdir)/pkgconfig ${udev_rules_dir}
install $(libs) $(libdir)
install wayland-server.pc wayland-client.pc $(libdir)/pkgconfig

@ -21,3 +21,5 @@ view : view.o window.o wayland-glib.o cairo-util.o
terminal : LDLIBS += -lutil
view : CFLAGS += $(POPPLER_CFLAGS)
view : LDLIBS += $(POPPLER_LIBS)
install :

@ -24,7 +24,6 @@
#include <sys/ioctl.h>
#include <fcntl.h>
#include <unistd.h>
#include <cairo.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <math.h>
#include <time.h>
@ -202,17 +201,17 @@ static const struct {
const char *filename;
int hotspot_x, hotspot_y;
} pointer_images[] = {
{ "resources/bottom_left_corner.png", 6, 30 },
{ "resources/bottom_right_corner.png", 28, 28 },
{ "resources/bottom_side.png", 16, 20 },
{ "resources/grabbing.png", 20, 17 },
{ "resources/left_ptr.png", 10, 5 },
{ "resources/left_side.png", 10, 20 },
{ "resources/right_side.png", 30, 19 },
{ "resources/top_left_corner.png", 8, 8 },
{ "resources/top_right_corner.png", 26, 8 },
{ "resources/top_side.png", 18, 8 },
{ "resources/xterm.png", 15, 15 }
{ DATADIR "/wayland/bottom_left_corner.png", 6, 30 },
{ DATADIR "/wayland/bottom_right_corner.png", 28, 28 },
{ DATADIR "/wayland/bottom_side.png", 16, 20 },
{ DATADIR "/wayland/grabbing.png", 20, 17 },
{ DATADIR "/wayland/left_ptr.png", 10, 5 },
{ DATADIR "/wayland/left_side.png", 10, 20 },
{ DATADIR "/wayland/right_side.png", 30, 19 },
{ DATADIR "/wayland/top_left_corner.png", 8, 8 },
{ DATADIR "/wayland/top_right_corner.png", 26, 8 },
{ DATADIR "/wayland/top_side.png", 18, 8 },
{ DATADIR "/wayland/xterm.png", 15, 15 }
};
static void

@ -1,10 +1,12 @@
CFLAGS = @GCC_CFLAGS@ -O -g -Wall -MMD -MF .$*.deps
CPPFLAGS = -DDATADIR=\"$(datadir)\"
prefix = @prefix@
exec_prefix = @exec_prefix@
udev_rules_dir = @sysconfdir@/udev/rules.d
libdir = @libdir@
includedir = @includedir@
datadir = @datadir@
COMPOSITOR_CFLAGS = @COMPOSITOR_CFLAGS@
COMPOSITOR_LIBS = @COMPOSITOR_LIBS@

@ -0,0 +1,6 @@
(c) 2007-2010 Novell, Inc.
This work is licenced under the Creative Commons Attribution-Share Alike 3.0
United States License. To view a copy of this licence, visit
http://creativecommons.org/licenses/by-sa/3.0/ or send a letter to Creative
Commons, 171 Second Street, Suite 300, San Francisco, California 94105, USA.

@ -0,0 +1,21 @@
include ../config.mk
cursor_images = \
bottom_left_corner.png \
bottom_right_corner.png \
bottom_side.png \
grabbing.png \
left_ptr.png \
left_side.png \
right_side.png \
top_left_corner.png \
top_right_corner.png \
top_side.png \
xterm.png
all :
install :
install -d $(datadir)/wayland
install $(cursor_images) $(datadir)/wayland

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 994 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1004 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 615 B

@ -7,3 +7,5 @@ main.pdf : main.tex
clean :
rm -f main.pdf main.aux main.log
install :

Loading…
Cancel
Save