Kristian Høgsberg
42b4f80116
window.c: Do resize work from the repaint idle callback
...
This way we always make sure we handle any resizing before we start drawing.
13 years ago
Tiago Vignatti
9a206c4da5
config-parser: consolidate shell files into weston.ini only
...
The shell choice happens in the configuration file now.
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
13 years ago
Kristian Høgsberg
6bd4d97271
window.c; Only redraw once per frame
...
Based on a patch from Martin Minarik <minarik11@student.fiit.stuba.sk> who
tracked down the excessive redraw problem.
13 years ago
Scott Moreau
56456d6578
Secure screenshooter protocol.
13 years ago
Scott Moreau
210d079817
Hook up axis events.
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
Kristian Høgsberg
b8abe7e9ae
window.c: Tweak window decoration appearance
...
The old orange decorations were starting to look like clown shoes.
13 years ago
Bill Spitzak
d273e28567
weston: Don't ask for EGL depth buffer if not needed
...
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.
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
Kristian Høgsberg
bcacef19b0
Add an option parser
...
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.
13 years ago
Rob Clark
6396ed36f4
clients/window: fix build issues w/ gles
13 years ago
Kristian Høgsberg
b435e84d5a
window: Compute frame boundary for all windows except fullscreen
...
We were only computing it for toplevel type windows, which broke
the unlock dialog size allocation and repainting.
13 years ago
Kristian Høgsberg
41c5c4ee9a
desktop-shell: Simplify unlock dialog redraw function
13 years ago
Kristian Høgsberg
63e5e06d82
window: Only set opaque and input regions if they change
...
Setting these regions damages the entire window or causes a repick, which
we don't want to trigger if we don't need to.
13 years ago
Kristian Høgsberg
067fd60534
window.c: Drop support for rgb contexts
13 years ago
Kristian Høgsberg
8dbc4b3586
wscreensaver: Use the argb config, rgb is not compatible with window.c
...
Fixes the config/surface mismatch, spotted by Scott Moreau.
13 years ago
Kristian Høgsberg
f10df85cd7
window: Set opaque region after child widget adjusts size
13 years ago
Rodney Lorrimar
99ff01b816
weston: Change path for default terminal launcher to ${prefix}/bin
...
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>
13 years ago
Kristian Høgsberg
fcfc83f6ae
clients: Use wl_display_disconnect()
13 years ago
Kristian Høgsberg
9dd1ed24db
terminal: Don't queue a resize after setting fullscreen
...
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.
13 years ago
Kristian Høgsberg
010f98b083
window: Track and report input and opaque regions
...
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.
13 years ago
Kristian Høgsberg
dd631c1c36
simple-touch: Update to enter/leave changes
13 years ago
Kristian Høgsberg
06d58b74af
Update to enter/leave events for pointer and keyboard
13 years ago
Kristian Høgsberg
2675dc1c8d
window: Don't draw decorations in fullscreen mode
13 years ago
Kristian Høgsberg
1517defe13
window: Set window type as it changes, not on every attach
...
It was always a bit sloppy, and the new fullscreen request doesn't work
that way.
13 years ago
Kristian Høgsberg
66c0880c58
view: Don't schedule resize after setting fullscreen
...
window_set_fullscreen will schedule a resize or wait for the configure
event as needed.
13 years ago
Daniel Stone
0d5a509ae5
window: Use constant keycode offset of 8
...
The X11 compositor currently posts its key presses as keycode - 8; this
is due to X11 having a historical minimum keycode of 8, whereas evdev is
numbered starting from 1. So while the KEY_* constants begin with
KEY_ESC at 1, the corresponding keycode in both X11 and the XKB keymaps
is 9.
window, on the other hand, was relying on xkb->min_key_code being 8 to
translate its keycodes back to useful values in the XKB 'evdev' keycode
map. min_key_code may not always be 8, for restricted subsets of the
keycode map.
Perhaps not the best solution, but at least consistent.
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
13 years ago
Daniel Stone
9d4f030c0b
window: Use new xkbcommon include path
...
xkbcommon in current git has moved its include files.
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
13 years ago
Pekka Paalanen
b29f412eb8
protocol: remove absolute coordinates from pointer
...
This change depens on the Wayland core commit:
"protocol: remove absolute coordinates from pointer".
Remove the absolute coordinates from pointer motion and pointer_focus
events.
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
13 years ago
Pekka Paalanen
dfb93a9e71
window: do not store absolute coordinates
...
These were not used for anything, anyway.
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
13 years ago
Ander Conselvan de Oliveira
e47c3a342b
clients/dnd: adapt to new data_device icon protocol
...
Signed-off-by: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
13 years ago
Kristian Høgsberg
f856fd2f93
Follow set_fullscreen protocol change
13 years ago
Kristian Høgsberg
d6bcd7daa7
window: Toggle maximized with super-f5
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
Tiago Vignatti
c5528d8dc8
window: simplify a bit widget_set_size and widget_set_allocation
...
Signed-off-by: Tiago Vignatti <vignatti@freedesktop.org>
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
13 years ago
Tiago Vignatti
a571e75cc1
window: explicitly set TYPE_TOPLEVEL for new windows
...
Signed-off-by: Tiago Vignatti <vignatti@freedesktop.org>
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
13 years ago
Kristian Høgsberg
0212723185
smoke: Use normal window resize mechanism
13 years ago
Kristian Høgsberg
09a96b5394
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.
13 years ago
Juan Zhao
6665063328
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>
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
Peter Hutterer
035ac94c17
terminal: run $SHELL if set
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
13 years ago
Kristian Høgsberg
2ad3b7f866
window: Fold window_resize into idle_resize
13 years ago
Kristian Høgsberg
0d1c062913
window: Don't overwrite window->allocation until we've done the resize
...
This way we can actually detect whether or not a window resizes.
13 years ago
Kristian Høgsberg
009ac0a965
window: Dont take width and height in window constructor
...
Always set this by scheduling an initial resize.
13 years ago
Kristian Høgsberg
8e054f76cc
flower: Dont allow resizing
13 years ago
Kristian Høgsberg
c25a1d73fc
flower: Redraw flower on middle click, pop up window menu on right click
13 years ago
Kristian Høgsberg
d31fcab989
window: Make window frame menu available to client
13 years ago