Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
These new protocol events allow us to tell which outputs a surface is on, and
potentially update where we allocate our buffers from.
Signed-off-by: Casey Dahlin <cdahlin@redhat.com>
|
|
|
|
We do this right for move and resize, but dnd and popups need the same
treatment.
|
|
|
|
|
|
|
|
Updates the .gitignore files for clients and tests to reflect a new test and a
couple of renamed applications.
Signed-off-by: Casey Dahlin <cdahlin@redhat.com>
|
|
Didn't catch these before, was compiling with sw cairo.
|
|
|
|
Memory allocated out of the resize shm pool will be unmapped when the pool
is destroyed.
|
|
We can destroy a shm wl_buffer immediately after sending it to the server.
|
|
|
|
|
|
lockscreen, homescreen and shell launchers are falling back okay already and
only lockscreen icon was missing some way to keep the shell client running in
the absence of images. This patch fix it.
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
|
|
|
|
Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
|
|
The biggest performance bottleneck while resizing is the continous
setting up and tearing down of mmaps and faulting in pages. This commit
introduces a per-window pool that we'll allocate buffers out of if it's
available. Then we set initialize it to a big shm pool when we start
resizing and free it when resizing is done.
|
|
|
|
|
|
We don't need bilinear filtering here, the corners aren't scaled and
the scaled edges are just stretched along one axis.
|
|
|
|
A couple of fixes were made: Weston tablet-shell needed to use weston_layer,
so the compositor could rebuild the surface list correctly when repainting;
homescreen and locking are using the widget + window abstration of toytoolkit;
and widget_set_redraw_handler are being set for widgets redraw.
Also, it was given some basic meaning for lockscreen_button_handler, which
was completely disabled before. As a clean up, I updated the global listener
mechanism on tablet-shell client, using the regular way of registering a
handler instead wl_display_roundtrip -> wl_display_get_global.
Switcher still without code to proper work and the same for tablet-shell
clients, which are not launched.
krh: Edited to not scale down homescreen icons, use new load_cairo_surface()
for image loading.
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
|
|
|
|
|
|
There was a lot of code here to do a lot of work we didn't need to do.
If we damage a surface with a shm buffer attached, all we need to do
is to re-upload the damaged region to the texture. As for drm buffers,
we don't assume anything changes on attach and only update the
regions the client tells us to update in the damage request.
|
|
This way we always make sure we handle any resizing before we start drawing.
|
|
The shell choice happens in the configuration file now.
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
|
|
Based on a patch from Martin Minarik <minarik11@student.fiit.stuba.sk> who
tracked down the excessive redraw problem.
|
|
|
|
|
|
|
|
|
|
The old orange decorations were starting to look like clown shoes.
|
|
This makes the compositor and demo clients work on the current nouveau
nvfx driver. Obviously does not fix any clients that actually want a
depth buffer, but this does allow more people to at least try wayland.
|
|
Otherwise a non-existent file in the configuration crashes the desktop shell.
Signed-off-by: Ustun Ergenoglu <ego@ustun.fi>
|
|
|
|
On one hand, getopt (in particular the -o suboption syntax) sucks on the
server side, and on the client side we would like to avoid the glib
dependency. We can roll out own option parser and solve both problems
and save a few lines of code total.
|
|
|
|
We were only computing it for toplevel type windows, which broke
the unlock dialog size allocation and repainting.
|
|
|
|
Setting these regions damages the entire window or causes a repick, which
we don't want to trigger if we don't need to.
|
|
|
|
Fixes the config/surface mismatch, spotted by Scott Moreau.
|
|
|
|
If you don't have anything at ~/.config/weston-desktop-shell.ini and
have weston installed somewhere other than /usr, then this patch will
help.
Cheers,
Signed-off-by: Rodney Lorrimar <rodney@rodney.id.au>
|
|
|
|
We end up doing an attach at the non-fullscreen size before resizing to
fullscreen, causing the terminal to jump to the center for a frame before we
render the fullscreen image.
|
|
We just set the input region to the bounding box of the window frame
and set the opaque region to be the opaque rectangle inside the window
if the child widget is opaque.
|
|
|