weston: Changes to 'debian-experimental'
New branch 'debian-experimental' available with the following commits:
commit 5877c75e8c4ee566386c013717b51b5b06ee70f1
Author: Cyril Brulebois <kibi@debian.org>
Date: Tue Feb 21 23:58:23 2012 +0100
Upload to experimental.
commit d70b88a1bf1e691d77fe44f1c194cf70034ae8c9
Author: Cyril Brulebois <kibi@debian.org>
Date: Tue Feb 21 23:58:16 2012 +0100
Bump run-time dependencies.
commit 28bd6581062a91080798ac27820ba6a724cd55e2
Author: Cyril Brulebois <kibi@debian.org>
Date: Tue Feb 21 23:26:22 2012 +0100
Restrict to linux-any since wayland isn't as portable as X.
commit 3a9f36e57375b99ef63db4a06aa57c7b6f73b96c
Author: Cyril Brulebois <kibi@debian.org>
Date: Tue Feb 21 23:25:46 2012 +0100
Tiny/toy clients will be shipped in a later upload.
commit 97bf688ffd6c7af8a6fc8185c0db8b065e8cdb72
Author: Cyril Brulebois <kibi@debian.org>
Date: Tue Feb 21 23:25:03 2012 +0100
Fix Build-Depends.
commit 82dc189677018d15b9b2cead39903d2b954585d1
Author: Cyril Brulebois <kibi@debian.org>
Date: Tue Feb 21 22:41:10 2012 +0100
Set Build-Depends.
commit 8c2db4c226ab632e64bbe1d81e1cdbfdefdcac2d
Author: Cyril Brulebois <kibi@debian.org>
Date: Tue Feb 21 21:08:24 2012 +0100
Automatically clean generated PNG files.
commit 0cb0268b6870a73f25a5094e19cc2ec9fbf3e3ca
Author: Cyril Brulebois <kibi@debian.org>
Date: Tue Feb 21 21:06:12 2012 +0100
Add gentarball target.
commit 08ec8c7f35361fb5d9126be43ce7fab9567ca097
Author: Cyril Brulebois <kibi@debian.org>
Date: Tue Feb 21 19:36:11 2012 +0100
Give up on the setuid bit for now.
commit 349a7bca635e0ec97cc56ff23635d9d28caad73a
Author: Cyril Brulebois <kibi@debian.org>
Date: Tue Feb 21 19:25:57 2012 +0100
Be explicit in install file.
commit 08702ca6e55b848ed915ab9a1f5172ed84c0827b
Author: Cyril Brulebois <kibi@debian.org>
Date: Tue Feb 21 19:20:46 2012 +0100
Add README.Debian about the setuid bit for KMS.
commit 6e64ce7142b6b57f7f707c508831fe995fc56506
Author: Cyril Brulebois <kibi@debian.org>
Date: Tue Feb 21 18:52:07 2012 +0100
Add basic packaging.
commit 5f5fb3181e78f3990f872e9cff91dcb0b30e0d46
Author: Cyril Brulebois <kibi@debian.org>
Date: Tue Feb 21 17:47:47 2012 +0100
Add copyright information.
commit cc3c79553a200c45df07a183e57903a0b1b02ab7
Author: Eric Anholt <eric@anholt.net>
Date: Thu Feb 9 08:36:03 2012 -0800
configure: Fix build on debian by avoiding bashisms in the test command.
commit 66b71a9f1bfd694096d7b6cc1856b335628aec93
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Thu Feb 9 11:01:06 2012 -0500
configure: Set release version 0.85.0
commit 1a2dd7cc4f658ad802b506576023b2fd6f92c842
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Thu Feb 9 11:18:16 2012 -0500
Use dist-xz for tarballs
commit 29589e9880279dbb1e9d28fa261ad6802d4f996d
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Thu Feb 9 09:20:44 2012 -0500
Disable setuid install for distcheck
commit d0e6c6715c7f4a9d48f8776c378c5b4065adde14
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Wed Feb 8 16:35:12 2012 -0500
configure: Change project to weston, set version to 0.85
commit 1f6e3164113e3e48122cbc238bd2d993a37840b6
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Wed Feb 8 14:47:53 2012 -0500
smoke: Use normal window resize mechanism
commit 7ff7838a55092bf4c7adc8b77ce8bf6abd52032e
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Wed Feb 8 14:45:02 2012 -0500
window: Don't set the window size in widget_set_size()
We propagate the toplevel widget size to the window size in the
window.c resize code.
commit fd143aa2f6f26513249d0628d0e953b9ef26fa8c
Author: Juan Zhao <juan.j.zhao@linux.intel.com>
Date: Thu Feb 2 16:02:06 2012 -0800
smoke: fix the segment fault error
Add widget_set_size in the initiate time to allow smoke get the
correct surface later. Or it will report segment fault error because
of the null surface.
Also add resize_handler to not allow resizing just like flower.
Signed-off-by: Juan Zhao <juan.j.zhao@linux.intel.com>
commit 9e3aa72835353381078aec703efd562766189539
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Wed Feb 8 10:11:42 2012 -0500
cairo-util: Only look at first two bytes for jpegs
The next two bytes aren't fixed.
commit d724526db23d1b49d8dc5b1aacb74a54a5ca7a9a
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Fri Feb 3 20:58:19 2012 +1000
terminal: run $SHELL if set
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit 097b13ec159641090747866c51a841bc9c997e48
Author: Jesse Barnes <jbarnes@virtuousgeek.org>
Date: Tue Feb 7 12:42:28 2012 -0800
configure.ac: fix cairo-glesv2 help text
Finally figured out why --enable-cairo-gles2 wasn't working like
configure --help said it should.
commit 8b0f045b04a28e1918dba140d714a2869eb68d92
Author: Pekka Paalanen <ppaalanen@gmail.com>
Date: Wed Feb 1 11:31:31 2012 +0200
configure: add libpng to client libs
http://lists.freedesktop.org/archives/wayland-devel/2012-January/001975.html
reports a linking problem:
/usr/bin/ld: libtoytoolkit.a(cairo-util.o): undefined reference to
symbol 'png_set_filler@@PNG12_0'
/usr/bin/ld: note: 'png_set_filler@@PNG12_0' is defined in DSO
/usr/lib/i386-linux-gnu/libpng12.so.0 so try adding it to the linker command line
/usr/lib/i386-linux-gnu/libpng12.so.0: could not read symbols: Invalid
operation
collect2: ld returned 1 exit status
make[3]: [weston-terminal] Error 1 (ignored)
A similar problem is diagnosed here:
http://lists.fedoraproject.org/pipermail/devel/2010-March/133601.html
As some distros are shipping linkers, that do not resolve symbols from
implicitly linked libraries, check and link libpng explicitly.
Cc: nerdopolis <bluescreen_avenger@verizon.net>
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
commit efa58a94722ecdff7b971300927dcf8afb7890c5
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Tue Feb 7 09:56:51 2012 -0500
compositor-wayland: Hide cursor for compositor surfaces
commit eff9c0d2ead5076ca888fc7df9a0430804b2e650
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Tue Feb 7 09:56:15 2012 -0500
compositor-wayland: Destroy wl_callback in callback function
commit f673994dc58d0c1f9deee036f362e352522dd117
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Tue Jan 31 22:17:25 2012 -0500
compositor: Drop setuid when launching clients
commit 89d714f7c590116b0163e6f1499c66c01600b401
Author: Pekka Paalanen <ppaalanen@gmail.com>
Date: Tue Jan 31 16:35:18 2012 +0200
configure: toytoolkit GL apps depend on cairo-egl
Do not build toytoolkit applications that use GL, if Cairo-egl is not
available. These applications (which happen to be also the full GL
clients) do not work at all without Cairo-egl, and fail at runtime with
"unable to acquire window surface".
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
commit 26fdb6d0cd83d316de71906530d29c32d415f149
Author: Scott Moreau <oreaus@gmail.com>
Date: Mon Jan 30 07:05:14 2012 -0700
Update config files to reflect new terminal name, weston-terminal
krh: Updated to use /usr/bin/weston-terminal.
commit ec4db94e9c6ec49cb4c0eb7abb4c91af4bd9457b
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Mon Jan 30 09:10:14 2012 -0500
compositor: Allow attaching null buffer
Attaching a null buffer is allowed and takes the surface back to the
unattached state it starts in.
commit c03f96b5b0567915c204a437c4573304b202ba46
Author: Scott Moreau <oreaus@gmail.com>
Date: Fri Jan 27 13:25:49 2012 -0700
Implement CONFIG_KEY_UNSIGNED_INTEGER
strtol() does not work when trying to assign 32 bits of data into a
regular signed int on 32 bit systems. Use corresponding strtoul()
instead.
commit 0226011f589a18f9d9c6506359d06f66f1747b30
Author: Pekka Paalanen <ppaalanen@gmail.com>
Date: Fri Jan 27 09:50:02 2012 +0200
desktop-shell: print what failed on exec
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
commit fe0e155eb5cf8224f8c8ea6104d02714d46497a9
Author: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Date: Fri Jan 27 17:17:39 2012 +0200
window: fix resizing of windows backed by shm buffers
When window_attach_surface() calls window_get_resize_dx_dy(),
window->resize_edges is cleared. However if there is already a pending
surface to be attached, the resize won't be done until the following
call to window_attach_surface(). In this next call, since resize_edges
is now zero, the top-left corner of the window will be unchanged. If
the user is resizing from the top or left border, this causes the
resize to happen in the wrong direction.
This patch changes window_attach_surface() to call
window_get_resize_dx_dy() only if an attach will actually happen.
Signed-off-by: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
commit 4ca85dccbb31013cf166b1c3403648af33a6bc11
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Fri Jan 27 11:04:18 2012 -0500
window: Handle data_device.selection events with offer=NULL
This happens when the current selection data_offer is removed.
commit 7a407678b3e38125cc72e36f024556d3631bc6a5
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Thu Jan 26 11:32:30 2012 -0500
cairo-util: Don't anger png.h by including setjmp.h
Older libpngs are a bit fussy about this, apparently.
commit ed7bc3b2d87f4c0daf81fa611d3988d89af10779
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Thu Jan 26 11:09:20 2012 -0500
window: Don't crash when window with focus_widget is destroyed
We would try to deliver a leave event to a widget in a destroyed window.
commit 6af8eb9c7f32799ddc75e1732c50fbd23fb56994
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Wed Jan 25 16:57:11 2012 -0500
desktop-shell: Build in sensible defaults
This adds a default background pattern and a terminal launcher in case
we don't have a config file.
commit 07f729441ea1e9a6b17fff0bd2453677190b6643
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Wed Jan 25 16:34:36 2012 -0500
desktop-shell: Support tiling of background images
commit d6548765109d12335171599dfe4e480a5e73ee05
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Wed Jan 25 15:43:48 2012 -0500
cairo-util: Add png loader and image type sniffing
commit 8129bc0fb9700e014455702446f21eb004ce448a
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Wed Jan 25 14:55:33 2012 -0500
desktop-shell: Fall back to solid color if there's no background image
commit ffe3bba13ee143e479f67b10e96e7d9bc3f55407
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Wed Jan 25 14:54:26 2012 -0500
cairo-util: Return NULL instead of exit() on jpeg load failure
commit a97eca95d0b53255dfacab26984671a4b4109dbc
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Wed Jan 25 14:02:05 2012 -0500
Install terminal as weston-terminal
commit bcecca49b875d96e4e6d007ce09a45b2ea301d9d
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Tue Jan 24 12:37:17 2012 -0500
Revert "weston: Drop priviledges early, and seteuid when needed"
This reverts commit fc6ccb868fa735ee9c6592806f381aa1262bf0b2.
We still need root permissions for drmDrop/SetMaster. Without
integration with ConsoleKit or systemd we also don't have access
to /dev/dri/cardX in the case where we open a new VT.
commit fc6ccb868fa735ee9c6592806f381aa1262bf0b2
Author: Benjamin Franzke <benjaminfranzke@googlemail.com>
Date: Tue Jan 24 16:37:15 2012 +0100
weston: Drop priviledges early, and seteuid when needed
commit ef548fd3cad98ea98220f59eb7ce8b41afb2305a
Author: Benjamin Franzke <benjaminfranzke@googlemail.com>
Date: Tue Jan 24 10:29:44 2012 +0100
setuid: Operate relative to $(DESTDIR)
commit 6b28aadd479377f390eb0e5c596d8b576b429643
Author: Neil Roberts <neil@linux.intel.com>
Date: Mon Jan 23 19:11:18 2012 +0000
window: Fix sending button events when there's no grab
The code which sends the button events was checking whether there is a
focus widget with a button handler but then always sending the button
event to the grab widget. If the grab widget is different from the
focus widget at this point then it will check the wrong widget for a
button handler and potentially crash. It is also possible for there to
be no grab widget here in the following situation:
1. Press and hold down the left mouse button
2. Press and hold down the right mouse button
3. Release the left mouse button
4. Release the right mouse button
In this case the grab will be released at step 3 because the code only
keeps track of the grab for one button. Then it will try to send the
release event for the right mouse button to a NULL widget so it will
crash.
commit a12d6113cee529e5c3e20ea182163e512305e867
Author: Tiago Vignatti <tiago.vignatti@intel.com>
Date: Fri Jan 20 18:47:46 2012 +0200
evdev: fix uninitialised pointer value
==30224== Conditional jump or move depends on uninitialised value(s)
==30224== at 0x40EE3A0: evdev_flush_motion (evdev.c:284)
==30224== by 0x40EE6DC: evdev_input_device_data (evdev.c:352)
==30224== by 0x4034710: wl_event_source_fd_dispatch (event-loop.c:76)
==30224== by 0x4035171: wl_event_loop_dispatch (event-loop.c:462)
==30224== by 0x4032F76: wl_display_run (wayland-server.c:785)
==30224== by 0x8050972: main (compositor.c:2183)
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
commit 5f5324e0988cd287f931c2fa6b66410a008d9be2
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Thu Jan 19 14:05:21 2012 -0500
gears: Make window transparent
We need this for the window decorations.
commit 824c6d0e3843fab3bdb0717782c6b4621ad3dc8c
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Thu Jan 19 13:54:09 2012 -0500
window: Use CAIRO_OPERATOR_OVER for rendering the menu
We forgot to switch back from CAIRO_OPERATOR_SOURCE, which is broken,
but also hits a broken fallback in cairo-gl.
commit 44d4de656b90a10afa92df2c73b56ed9faed2053
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Thu Jan 19 13:32:17 2012 -0500
configure: Add --enable-setuid-install
This adds support for installing the compositor setuid.
commit 8423a89d41408462d3574f38627fbb3929288366
Author: Pekka Paalanen <ppaalanen@gmail.com>
Date: Thu Jan 19 16:48:37 2012 +0200
compositor: initialise segv_action.sa_mask
Valgrind complained sa_mask member is not initialised, fix that.
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
commit 9e30a82e250b5214c44593f5692f334b66f7aba3
Author: Pekka Paalanen <ppaalanen@gmail.com>
Date: Thu Jan 19 16:40:28 2012 +0200
desktop-shell: don't crash on menu
Add dummy menu callback function, so we don't crash after every time
someone opens the menu.
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
commit cb108439d2cb2ea688391c2b2e0eff508bf5a6bd
Author: Pekka Paalanen <ppaalanen@gmail.com>
Date: Thu Jan 19 16:25:40 2012 +0200
shell: deal with weston_compositor_pick_surface() = NULL
I could crash Weston by trying to open another menu from a panel while
one menu from it was already showing.
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff40a9872 in popup_grab_focus (grab=0x761968, time=4130706528, surface=0x0, x=-227, y=15) at shell.c:440
440 if (surface->resource.client == client) {
(gdb) bt
0 0x00007ffff40a9872 in popup_grab_focus (grab=0x761968, time=4130706528, surface=0x0, x=-227, y=15) at shell.c:440
1 0x0000000000406977 in weston_device_repick (device=0x70b4e0, time=4130706528) at compositor.c:360
2 0x0000000000406a36 in weston_compositor_repick (compositor=0x619960) at compositor.c:382
3 0x0000000000406ac8 in destroy_surface (resource=0x6fc6f0) at compositor.c:397
4 0x00007ffff7bd33d8 in destroy_resource (element=0x6fc6f0, data=0x7fffffffd9fc) at wayland-server.c:355
5 0x00007ffff7bd8d98 in for_each_helper (entries=0x757808, func=0x7ffff7bd332c <destroy_resource>, data=0x7fffffffd9fc)
at wayland-util.c:264
6 0x00007ffff7bd8dd4 in wl_map_for_each (map=0x757808, func=0x7ffff7bd332c <destroy_resource>, data=0x7fffffffd9fc)
at wayland-util.c:270
7 0x00007ffff7bd34dc in wl_client_destroy (client=0x7577d0) at wayland-server.c:385
8 0x00007ffff7bd2e36 in wl_client_connection_data (fd=17, mask=1, data=0x7577d0) at wayland-server.c:187
9 0x00007ffff7bd5bde in wl_event_source_fd_dispatch (source=0x74cda0, ep=0x7fffffffdae0) at event-loop.c:76
10 0x00007ffff7bd665b in wl_event_loop_dispatch (loop=0x618900, timeout=-1) at event-loop.c:462
11 0x00007ffff7bd42a9 in wl_display_run (display=0x6188b0) at wayland-server.c:785
12 0x000000000040b1e1 in main (argc=1, argv=0x7fffffffdef8) at compositor.c:2182
Modify popup_grab_focus() to deal with a NULL surface.
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
commit 6d174cff7ab6af525319e5e12ef8930e648a4b3c
Author: Pekka Paalanen <ppaalanen@gmail.com>
Date: Thu Jan 19 15:17:59 2012 +0200
window: menu leak fixes
When a menu self-destructs, free also the widget and struct menu.
As menus are self-destructing, it does not make sense to store the
window pointer, since we cannot clear it automatically. Therefore,
rename window_create_menu() to window_show_menu() that does not return
the window pointer. It also calls window_schedule_redraw() internally.
Fixes Valgrind reported memory leaks.
The alternative would be to explicitly destroy the menu in application's
menu callback.
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
commit 84d62dc9993d746cbbf110c2b212dd8325b7e9be
Author: Pekka Paalanen <ppaalanen@gmail.com>
Date: Thu Jan 19 14:21:35 2012 +0200
resizor: free the widget on destroy
Plugs a memory leak.
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
commit e156fb681e658e7817063fee91f94858cfff1f57
Author: Pekka Paalanen <ppaalanen@gmail.com>
Date: Thu Jan 19 13:51:38 2012 +0200
window: remove pointers to widget on destroy
Input devices may hold a pointer to the widget being destroyed. Reset
such pointers in widget_destroy().
This fixes a use-after-free in window_destroy(), if an application
destroys its widgets before the window.
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
commit 4dde2fc6f6d788f681645a3711a513085e07dc7c
Author: Pekka Paalanen <ppaalanen@gmail.com>
Date: Thu Jan 19 13:33:50 2012 +0200
window: destroy frame in window_destroy()
Fix a memory leak reported by Valgrind, by destroying the window
decorations widget, if it exists.
All widget pointers returned from toytoolkit to the application should
be destroyed by the application explicitly.
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
commit 90b53815ba4d6711878430c4df360f62b8eac080
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Wed Jan 18 21:41:37 2012 -0500
compositor: Flush surface damage to surface below on destroy
When we destroy a surface, we damage the surface below so that the area
exposed by the disappearing surface will be repainted. However, if that
surface also is destroyed, the damage information is lost and we fail to
repaint that area.
This commit introduces weston_surface_flush_damage(), which flushes the
surface damage the the surface below when a surface is destroyed. When
multiple surfaces are destroyed at the same time, the damage now accumulates
and sinks down through the surface stack as it should.
commit 6916d9cb6f9cba8742b953847ea665a44bc0ab30
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Wed Jan 18 15:11:07 2012 -0500
drm: Don't print warning if cursor stride isn't right
gbm_bo_create_from_egl_image() should catch this based on the
GBM_BO_USE_CURSOR_64X64 flag. It currently doesn't so we end up with
a cursor buffer with invalid stride.
commit 2d5743959278a12347f92cc389905dfb5bf39ee6
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Wed Jan 18 14:50:58 2012 -0500
clients: Allow compiling with the cairo glesv2 backend
This disables gears and wscreensaver, which use full GL.
commit 40e49ac7b52713fef8cc8b623ad78a4ef0cd55e3
Author: Pekka Paalanen <ppaalanen@gmail.com>
Date: Wed Jan 18 16:51:30 2012 +0200
desktop-shell: fix the unlock dialog decorations
The decorations were not responding, could not move or resize the
dialog, and it painted with a black shade.
When the dialog is created, schedule a resize instead of a repaint. The
resize will initialise the widget tree, and let everything draw and work
as it should.
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
commit 08fcbf0f3d1995b8b895a8811845b2f30ad21a40
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Wed Jan 18 12:42:16 2012 -0500
tty: Use SIGUSR1 for both enter and leave signals
Now that we track has_vt, we can use the same handler for both enter and leave.
commit 62d2774956c9ae2845bcebd29f681f5211b4f8fd
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Wed Jan 18 12:38:33 2012 -0500
tty: Switch back to launch tty if we switched away
commit 34f80ff8133e1be19c6e80a64b79aa3b5ed3592f
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Wed Jan 18 11:50:31 2012 -0500
drm: Cancel any scheduled repaints in the leave vt handler
If we don't cancel the repaint, we end up pointlessly redrawing the output.
What's worse is that pageflipping to the new buffer eventually fails and
we miss the finish_frame callback, leaving the compositor stuck when we
re-enter the vt.
commit 835cd497723d92cc4db80e934e5fc21698434ff5
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Wed Jan 18 11:48:46 2012 -0500
drm: Reset kms mode on vt enter
Normally the repaint will trigger a pageflip, which flips back to our
fb, but that doesn't work if the kms output has been turned off or
set to a different mode.
commit 54f14c3c3ebc28f4fe5249474b3ae7edd47ea066
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Wed Jan 18 11:47:41 2012 -0500
drm: Complain if pageflip fails
We still don't handle the error in any way, but there's not much we can do.
It's typically a case of not having drm master."
commit f03a616c21c50ebfe75892627956f05fdb77b544
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Tue Jan 17 11:07:42 2012 -0500
shell: Set desktop-shell deathstamp at initial launch
Timestamp 0 is a valid timestamp and we can't use that as an uninitialized
timestamp.
commit 57cd0ed9164a325ef87aee55b21ac317dc0e6c9e
Author: Pekka Paalanen <ppaalanen@gmail.com>
Date: Tue Jan 17 16:10:41 2012 +0200
wscreensaver: get decorations back
In the great toytoolkit widget revolution, wscreensaver demo mode lost
its window decorations. Bring them back.
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
commit 4d733ee246798a838e4fa625b355fd058eddf3dc
Author: Pekka Paalanen <ppaalanen@gmail.com>
Date: Tue Jan 17 14:36:27 2012 +0200
shell: respawn desktop-shell if it dies
If the desktop-shell client goes away for any reason, respawn it. To
avoid harmful looping, limit the respawning to 5 times within 30
seconds, and then give up.
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
commit 39d908e63a98a6b70a708f6693dd20a7744a6d69
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Mon Jan 16 22:42:22 2012 -0500
tty: Open a new vt if not running on a VT
This is typically when launcing from a pty such as an X (or Wayland)
terminal or from an ssh session. Opening a new vt typically requires root
priviledges, so weston must be setuid root or laucnhed as root for this
to work.
commit 0bd892750d3b743a54a0645d1fde5280cbf5d12d
Author: Pekka Paalanen <ppaalanen@gmail.com>
Date: Thu Jan 12 14:52:09 2012 +0200
window: remove duplicate widget_resize_handler_t
Fixes the following build failure:
In file included from window.c:58:0:
window.h:194:16: error: redefinition of typedef 'widget_resize_handler_t'
window.h:178:16: note: previous declaration of 'widget_resize_handler_t' was here
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
commit 0690da60d483bd74b9ae22258cc760be29333c5f
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Mon Jan 16 11:53:54 2012 -0500
compositor: Install a SEGV handler to try and clean up the VT if we crash
commit 353e57f908d291d5ce9b7b64263c75a2c47afcda
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Mon Jan 16 10:57:14 2012 -0500
tty: Fix order of VT ack/release ioctls and the vt handler
We can only set up once we've acquired the VT and we shouldn't release the
VT until we've cleaned up. Before we would release the VT first, and then
race to drop drm master as X tried to get drm master. Which would kill X.
commit 23a47a80e203ee6eed705eaccad23e8a2f183d6a
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Mon Jan 16 10:54:07 2012 -0500
evdev: Drop noisy debug messages on vt swtich
commit a018fb0dbf9d6fffceb63e226939065d2e18b318
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Mon Jan 16 10:52:52 2012 -0500
compositor-drm: Exit if we failed to get drm master
We can do anything without drm master. Also log an error in case we
fail to drop it, which will be trouble for whoever we're switching to.
commit 5743010af02b5fa44560cff852601fe9c15fd3d7
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Sun Jan 15 22:16:11 2012 -0500
xserver: Create WM window, handle client messages
commit 643eac56e7b0a77165e7b9d5bdb41df6f306fbd1
Author: Olivier Le Thanh Duong <olivier@lethanh.be>
Date: Sat Jan 14 15:57:34 2012 +0100
evdev: Correct warning on missing input device
commit de13448c9260d58795ca7cd10e6045212940c9b2
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Sun Jan 15 16:05:28 2012 -0500
xserver: Just dup fd instead of two fcntls to get a non-O_CLOEXEC fd
Yeah, it's the same number of lines of code, but this actually checks
the error return.
commit 1760ebb2365df861d5513097024f2727c09f4f15
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Sun Jan 15 16:04:33 2012 -0500
xserver: Set DISPLAY for clients launched by the compositor
commit ea093d4883eb4a664f24b0da55d92744d980f3c9
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Sun Jan 15 15:51:12 2012 -0500
xserver: Don't set -logfile option, only available to root user
commit 92734c567382633f81c3f7c30044ef292a4ead03
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Sun Jan 15 15:17:58 2012 -0500
tty: Leave tty in KD_GRAPHICS mode during vt switches
Part of the point of KD_GRAPHICS mode is that the kernel doesn't try
to restore the VT contents when we switch bach, but leaves that
to the user mode process. This avoids ugly flicker of text mode contents
before the compositor takes over.
commit c5b9ddb610611d236acde27c9d017bd92c5be52e
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Sun Jan 15 14:29:09 2012 -0500
compositor-drm: Fail, and fail early if we can't set up the tty
Typically a permissions problem. Weston should be setuid root or
be launched by a setuid helper.
commit 00513ab7ccb892aa71653b1e799466d85fd370db
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Sun Jan 15 15:20:53 2012 -0500
tty: Close tty fd on exit
commit 1201b75bec3404a7e250b21928fe748e2d51813a
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Sun Jan 15 14:27:10 2012 -0500
tty: If no tty option is given, use stdin and make sure it's a vt
commit 2f6219f12738555104161a6fc37d8d4edb35f62b
Author: Richard Hughes <richard@hughsie.com>
Date: Fri Jan 13 10:07:01 2012 +0000
Explicitly add GIO to the client libs
This prevents a build warning on Fedora 16 of:
undefined reference to symbol 'g_file_get_basename'
commit ab5dacdac887e68fc6d3d691b58de040b9f0d39f
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Thu Jan 12 10:48:51 2012 -0500
view: Make view compile again
commit 8e81df4503669ef30fb2518bad1611ce4a5c018d
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Wed Jan 11 14:24:46 2012 -0500
Use new format codes
commit 62444800e1600ae6ce14525bcafac7668748c5bb
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Wed Jan 11 11:18:14 2012 -0500
window: Don't deref focus widget if there isn't one
commit f0993f61c0c8b40bd037a5085587852d76702b8d
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Wed Jan 11 00:09:42 2012 -0500
window: Remove a few unused struct fields
commit b63235142df846be19efbddc957b8c553e320b11
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Wed Jan 11 00:04:42 2012 -0500
window: Move focus widget to struct input
commit 831dd52aa0de11d0d46cc58eeadfead14c499bce
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Tue Jan 10 23:46:33 2012 -0500
window: Implement input device grabbing
With all input events going to widgets now, we can grab an input device
to a widget, so that all events are delivered to that widgets handlers.
This lets us implement the last bit of the menu behaviour, that is
the client side grabbing of events. The result is that we can now pop down
the menu when we receive clicks in the clients own windows and we
don't send motion and button events to other widgets.
commit 29af3ebce676b3cdd516dedc0cbedc47f70ce425
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Tue Jan 10 22:41:05 2012 -0500
window: Make decorations just a widget
Woohoo, only took 25 commits of refactoring to get to this point.
commit bb97700474968d3a0d1869cb777b092b6d46637b
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Tue Jan 10 19:11:42 2012 -0500
window: Get rid of the window child allocation concept
commit 27ff086b8edb6387c8710013a41ce631babc3e1a
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Tue Jan 10 14:28:58 2012 -0500
window: Break widget grab before shell surface move or grab
commit 5e41f0975220b9b76baf8a4a33dfe8d8ea4b1bf7
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Tue Jan 10 13:59:23 2012 -0500
wscreensaver: Use a widget and a redraw handler
commit 441338cb75202f6def0619bdecc3cc15fd1e5cb0
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Tue Jan 10 13:52:34 2012 -0500
window: Keep widgets in a tree instead of a list
commit 30948989ee3cef1c4eccba551ba0b9fcb4ae88f6
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Tue Jan 10 12:25:04 2012 -0500
window: Use surface coordinates for looking up widgets
commit b67e94b17083e014085c582ebb4b691aa700ea5e
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Tue Jan 10 12:23:19 2012 -0500
window: Make resize and redraw handlers widget vfuncs
commit 5d12990dbecea205f095a17d02fdb952ba22cf13
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Tue Jan 10 10:49:41 2012 -0500
window: Allocate and flush the window surface in window.c
No need to push this to the toolkit users.
commit 75bc667a709dbdda261e6ce3d6e8f3be222ebe14
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Tue Jan 10 09:43:58 2012 -0500
window: Drop the window widget
It was just a temporary convenience for moving things over.
commit cadd0f5cd9c5de37a72e61011ccaa452a151a70e
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Mon Jan 9 18:56:37 2012 -0500
clients/image: Delete old old key code
commit 9ca2d08fb0bb2c481ae560ac9b32ebcc2db61940
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Mon Jan 9 18:48:14 2012 -0500
window: Run deferred tasks before blocking for initial iteration
The first iteration of the while loop wouldn't run the deferred tasks
before blocking in epoll_wait(). Move things around so we do.
commit bb901fac90064ba58d5d82332eeac3c8e860a2e0
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Mon Jan 9 11:22:32 2012 -0500
window: Return pointer type from widget enter handler
commit 5388080949dabd8bb4d27c60898080d9817b64f2
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Mon Jan 9 11:16:50 2012 -0500
desktop-shell: Rename panel_widget to panel_launcher
commit a8a0db3497280b50d3b1546a4dbbc3c840bd1637
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Mon Jan 9 11:12:05 2012 -0500
window: Move button handler to widget
commit 19dd1d7eb1dc99528028dac0a3b7650d786614ca
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Mon Jan 9 10:42:41 2012 -0500
window: Use the window widget instead of adding a window sized widget
commit 87a57bbd7359926baac2c1d8db3315ab43fa2846
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Mon Jan 9 10:34:35 2012 -0500
window: Create a widget for the window, drop window motion handler
commit 5f190ef96a742af51c6fb6dfe9ed82cdcb51a355
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Mon Jan 9 09:44:45 2012 -0500
window: Convert a few clients to use widget motion handler
commit 04e98344cf918b1ae4d9ee3947bafa13d82f1418
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Mon Jan 9 09:36:16 2012 -0500
window: Add a widget motion handler
commit ab9e79ffc27b02b949c9bccda8c47cce20028b1f
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Mon Jan 9 09:32:07 2012 -0500
window: Remove window enter/leave handlers
commit ac7619f3f491d73a8d3c5bc643b5390f5a6de900
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Mon Jan 9 09:26:38 2012 -0500
dnd: Use a widget for enter/leave handling
commit 391649b0dcc5d4e1dc8e3977faccc97825cc9e82
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Mon Jan 9 09:22:30 2012 -0500
window: Use widget enter/leave handlers for menu
commit ee143236d7fd0e2184638c9240782bf474187f7c
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Mon Jan 9 08:42:24 2012 -0500
window: Replace widget focus handler with a enter/leave handler pair
commit 21eabf60b0d99aad113f6d50f36c632889f80fac
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Sun Jan 8 15:41:52 2012 -0500
window: Use display_exit() instead of exit() in window menu
commit 9a13dab8a989a81828cba6491ffd545f598d242a
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Sun Jan 8 15:18:19 2012 -0500
window: Move widget focus handler to the widget
commit c51f79954b0f54d15551d0f3ac55fc3fbdf35086
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Sun Jan 8 15:09:53 2012 -0500
window: Rename item to widget
It's a widget.
commit 4f7dcd6eb18ea708f172a9e0239992f49c6860d2
Author: Kristian Høgsberg <krh@bitplanet.net>
Date: Fri Jan 6 21:59:05 2012 -0500
Reply to: