Scott Moreau
56456d6578
Secure screenshooter protocol.
2012-03-24 14:40:21 -04:00
Scott Moreau
210d079817
Hook up axis events.
2012-03-22 11:03:41 -06:00
Kristian Høgsberg
126f85535f
window.c: Fix the stretch scaling code
2012-03-22 10:43:05 -04:00
Kristian Høgsberg
ec323d222c
window.c: Increase drop shadow fluffiness
2012-03-21 01:07:49 -04:00
Kristian Høgsberg
b8abe7e9ae
window.c: Tweak window decoration appearance
...
The old orange decorations were starting to look like clown shoes.
2012-03-20 23:56:05 -04:00
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.
2012-03-20 22:43:56 -04:00
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 >
2012-03-20 22:43:55 -04:00
Kristian Høgsberg
f02a649a3c
Consolidate image loading code and move to shared/
2012-03-12 01:40:59 -04:00
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.
2012-03-12 01:28:50 -04:00
Rob Clark
6396ed36f4
clients/window: fix build issues w/ gles
2012-03-12 01:16:12 -04:00
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.
2012-03-05 20:38:08 -05:00
Kristian Høgsberg
41c5c4ee9a
desktop-shell: Simplify unlock dialog redraw function
2012-03-05 20:37:51 -05:00
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.
2012-03-05 00:04:57 -05:00
Kristian Høgsberg
067fd60534
window.c: Drop support for rgb contexts
2012-02-29 16:15:53 -05:00
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.
2012-02-29 16:14:54 -05:00
Kristian Høgsberg
f10df85cd7
window: Set opaque region after child widget adjusts size
2012-02-29 12:43:05 -05:00
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 >
2012-02-29 12:43:05 -05:00
Kristian Høgsberg
fcfc83f6ae
clients: Use wl_display_disconnect()
2012-02-28 14:34:54 -05:00
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.
2012-02-28 09:23:23 -05:00
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.
2012-02-23 17:30:54 -05:00
Kristian Høgsberg
dd631c1c36
simple-touch: Update to enter/leave changes
2012-02-23 16:20:38 -05:00
Kristian Høgsberg
06d58b74af
Update to enter/leave events for pointer and keyboard
2012-02-23 09:59:05 -05:00
Kristian Høgsberg
2675dc1c8d
window: Don't draw decorations in fullscreen mode
2012-02-16 23:19:41 -05:00
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.
2012-02-16 23:19:41 -05:00
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.
2012-02-16 23:19:41 -05:00
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 >
2012-02-16 23:19:41 -05:00
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 >
2012-02-16 23:19:40 -05:00
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 >
2012-02-16 23:19:40 -05:00
Pekka Paalanen
dfb93a9e71
window: do not store absolute coordinates
...
These were not used for anything, anyway.
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com >
2012-02-16 23:19:40 -05:00
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 >
2012-02-16 23:19:40 -05:00
Kristian Høgsberg
f856fd2f93
Follow set_fullscreen protocol change
2012-02-16 23:19:38 -05:00
Kristian Høgsberg
d6bcd7daa7
window: Toggle maximized with super-f5
2012-02-16 23:19:38 -05:00
Tiago Vignatti
0a26641626
clients: fix spelling
...
Signed-off-by: Tiago Vignatti <vignatti@freedesktop.org >
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com >
2012-02-13 11:52:24 +02:00
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 >
2012-02-13 11:52:24 +02:00
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 >
2012-02-13 11:52:24 +02:00
Kristian Høgsberg
0212723185
smoke: Use normal window resize mechanism
2012-02-08 14:47:53 -05:00
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.
2012-02-08 14:45:02 -05:00
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 >
2012-02-08 14:17:32 -05:00
Kristian Høgsberg
3d5437c48d
Add support for webp image format
2012-02-08 12:46:57 -05:00
Kristian Høgsberg
902865c757
cairo-util: Only look at first two bytes for jpegs
...
The next two bytes aren't fixed.
2012-02-08 10:11:42 -05:00
Peter Hutterer
035ac94c17
terminal: run $SHELL if set
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2012-02-07 16:26:11 -05:00
Kristian Høgsberg
2ad3b7f866
window: Fold window_resize into idle_resize
2012-01-31 15:34:15 -05:00
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.
2012-01-31 15:30:47 -05:00
Kristian Høgsberg
009ac0a965
window: Dont take width and height in window constructor
...
Always set this by scheduling an initial resize.
2012-01-31 15:24:48 -05:00
Kristian Høgsberg
8e054f76cc
flower: Dont allow resizing
2012-01-31 11:53:20 -05:00
Kristian Høgsberg
c25a1d73fc
flower: Redraw flower on middle click, pop up window menu on right click
2012-01-31 09:54:04 -05:00
Kristian Høgsberg
d31fcab989
window: Make window frame menu available to client
2012-01-31 09:53:44 -05:00
Scott Moreau
fa1de69203
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.
2012-01-27 15:34:27 -05:00
Kristian Høgsberg
b7674a2a6c
Merge remote-tracking branch 'pq/transform-v1'
2012-01-27 11:42:18 -05:00
Pekka Paalanen
a291ae55b0
desktop-shell: print what failed on exec
...
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com >
2012-01-27 11:33:07 -05:00