Pekka Paalanen
9ef3e012d6
desktop-shell: screen locking protocol
...
Add protocol and functions for supporting screen locking, triggered by
activity timeout.
After activity timeout, compositor starts the fade to black, and then
enters SLEEPING state. At that point it calls lock() in the shell
plugin.
When input events trigger a wakeup, unlock() in the shell plugin is
called. This sends prepare_lock_surface event to the desktop-shell
client. The screen stays locked while the compositor starts fade-in.
At this point, desktop-shell client usually creates a surface for the
unlocking GUI (e.g. a password prompt), and sends it with the
set_lock_surface request. The compositor supposedly shows and allows
interaction only with the given lock surface (not yet implemented).
When desktop-shell has authenticated the user, or instead of issuing
set_lock_surface, it sends the unlock request. Upon receiving the unlock
request, the shell plugin unlocks the screen.
If desktop-shell client dies, the screen is unlocked automatically.
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
13 years ago
Pekka Paalanen
09d65d0e64
config: fix boolean parsing
...
The rest of the line contains the newline, so cannot match simply 'true'
or 'false'.
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
13 years ago
Kristian Høgsberg
fc32c394e7
config: Don't print warning when XDG_CONFIG_HOME isn't set
...
According to the spec, it's ok for this not to be set and just means that
we should default to $HOME/.config.
13 years ago
Pekka Paalanen
668dd56918
window: add a helper for config file paths
...
Add a helper function, that constructs a path to a config file from
XDG_CONFIG_HOME environment variable, by the rules of
http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
Make desktop-shell find its config file from XDG_CONFIG_HOME. This
allows to have a personal config file without continuously fighting with
git about wayland-desktop-shell.ini.
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
13 years ago
Kristian Høgsberg
ac3a59a0d1
window: Add a cheesy parser for ini-files, use it in desktop-shell
13 years ago
Kristian Høgsberg
c4693c4ab4
Install desktop-shell in $prefix/libexec
13 years ago
Pekka Paalanen
6cd281a023
desktop-shell: launch from the compositor
...
Fork and exec desktop-shell in the compositor. This is a way to create
an authenticated client. Later, the desktop-shell interface will be
reserved for this client only.
For exec to work, the compositor should be started from the
wayland-demos' root directory.
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
13 years ago
Casey Dahlin
fb39963cc9
Update .gitignores
13 years ago
Rob Bradford
8bd35c7770
window: Avoid setting an invalid surface for the pointer
...
If we failed to load the pointer image to the surface then do not create a
buffer from a NULL surface and do not attach that to the device.
13 years ago
Rob Bradford
21223bf6d1
window: Report an error if we cannot load the pointer files
13 years ago
Eugeni Dodonov
397b908d7b
Add missing include for gio.h.
...
This is needed by GFile, used by view.c.
Signed-off-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
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
Kristian Høgsberg
9ef9e0ecf9
simple-egl: Remove leftover wl_visual variable
13 years ago
Kristian Høgsberg
bcee9a4b25
desktop-shell: Add beginning of pop-up menu to panel
13 years ago
Benjamin Franzke
1a89f28c7d
gears: Fail if compiled without cairo-egl
13 years ago
Benjamin Franzke
0c99163d9b
window: Create a cairo device for each egl config
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
e4fb78de8f
Handle compositors without wl_shell
13 years ago
Kristian Høgsberg
41abb2865e
view: Fix reference to wayland-glib.h
13 years ago
Kristian Høgsberg
e28d05b0ad
window.c: Move window items to window.c
13 years ago
Kristian Høgsberg
3a69627f43
window: Stop using glib mainloop in toy toolkit
13 years ago
Kristian Høgsberg
1e164b9afd
Move rounded_rect() to cairo-util.c
13 years ago
Kristian Høgsberg
547da5afc9
terminal: Make -f (fullscreen) option work again
13 years ago
Kristian Høgsberg
7e69000556
desktop-shell: Scale background image to output size
13 years ago
Kristian Høgsberg
f8ab46e149
window: Default to toplevel windows
13 years ago
Kristian Høgsberg
67680c122d
desktop-shell: Add launcher for the Wayland terminal
13 years ago
Kristian Høgsberg
0c29eb292e
clients: Add a simple desktop-shell app
...
This just provides the background surface and the top panel.
13 years ago
Kristian Høgsberg
900b226ac1
window: Add enter/leave handlers
13 years ago
Benjamin Franzke
4b87a13974
clients: Fix typos
...
And forgotten display_create conversion in view.c.
13 years ago
Benjamin Franzke
e8e0e6e2db
Update gitignore
13 years ago
Benjamin Franzke
91eacca38b
Remove egl display type setenv hack
...
No longer needed with mesa 7.12-devel egl display autodetection.
13 years ago
Kristian Høgsberg
f389cacc20
Move away from visuals and just use EGLConfigs or shm format tokens
13 years ago
Kristian Høgsberg
6da3812f0a
gears: Don't schedule redraw, just draw from frame callback
13 years ago
Kristian Høgsberg
2821aaaf9c
simple-shm: Fix inverted logic
13 years ago
Kristian Høgsberg
2415990461
clients: Remove a few unused variables
13 years ago
Kristian Høgsberg
26130866c6
terminal: Fix unused return value warnings
13 years ago
Kristian Høgsberg
9de79a92a6
window.c: Drop global handler argument
...
We can just register a global handler directly on the wl_display now.
13 years ago
Kristian Høgsberg
a8d1fa762e
clients: Bring clients up to date
13 years ago
Kristian Høgsberg
f790c79ec7
Use wl_display_bind() for binding to globals
13 years ago
Kristian Høgsberg
334182062f
Use the new wl_callback interface
13 years ago
Kristian Høgsberg
8417d432f5
screenshot: A couple of minor tweaks
13 years ago
Tiago Vignatti
4d0d2037ea
screenshot: use gdk-pixbuf for writing png images
...
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
13 years ago
Kristian Høgsberg
2669f72e95
clients: Rename simple-client to simple-egl
14 years ago
Tiago Vignatti
93165e3e23
configure: set up simple clients independently from the others
...
Namely, simple-client and simple-shm.
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
14 years ago
Tiago Vignatti
e81fe8346c
clients: simple-shm: remove unused libraries and headers
...
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
14 years ago
Tiago Vignatti
79caa757c9
simple-shm: assert display conection
...
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
14 years ago
Benjamin Franzke
22d5481f91
window.c: Fix compile/run using cairo without egl
14 years ago
Kristian Høgsberg
97ba2e6015
clients: Add a simple shared memory client
14 years ago
Benjamin Franzke
14f7ff91ad
window: Set egl_window_resize late and once
...
Previously we resized in attach_surface and create_surface.
THe second resize overwrote dx or dy from the first.
14 years ago