Commit graph

2659 commits

Author SHA1 Message Date
Drew DeVault
d466cc117f Don't reset exclusive between layer shell passes
This is not the intended behavior of exclusive zones, the second pass is
meant to respect the usable area.
2018-04-02 14:55:17 -04:00
Drew DeVault
1f4a4a8641
Merge pull request #800 from emersion/untie-gles2-renderer-texture
Untie wlr_gles2_renderer and wlr_gles2_texture
2018-04-02 10:32:04 -04:00
Drew DeVault
8b37e8f67a
Merge pull request #792 from emersion/x11-backend-blank-cursor
backend/x11: hide cursor
2018-04-02 10:21:07 -04:00
Drew DeVault
7a1e02be78
Merge pull request #802 from emersion/examples-remove-egl
examples: get wlr_renderer from the backend
2018-04-02 10:12:19 -04:00
Drew DeVault
ee1a2f2f8a
Merge pull request #799 from acrisci/annotate-output-layout-vars
annotate wlr-output-layout coord variables
2018-04-02 10:12:13 -04:00
emersion
f63a5d881d
examples: get wlr_renderer from the backend 2018-04-01 16:57:29 -04:00
emersion
f3f61bed3e
Untie wlr_gles2_renderer and wlr_gles2_texture 2018-04-01 16:07:50 -04:00
Tony Crisci
5a47da1ea6 annotate wlr-output-layout coord variables 2018-04-01 00:17:27 -04:00
emersion
0c7968d093
Merge pull request #798 from emersion/wlr-egl-image-from-wl-drm
render/egl: add wlr_egl_create_image_from_wl_drm
2018-03-31 23:55:07 -04:00
emersion
a7bb48b404
render/egl: add wlr_egl_create_image_from_wl_drm
This allows external renderers and potential future GL-based
renderers to re-use this function.
2018-03-31 23:20:00 -04:00
Drew DeVault
b60e31e5c0
Merge pull request #794 from emersion/renderer-untie-backend
Untie wlr_backend from wlr_renderer
2018-03-31 21:31:15 -04:00
Drew DeVault
1b258ffceb
Merge pull request #797 from emersion/drm-cursor-transform
Fix cursor transform on DRM backend
2018-03-31 21:30:40 -04:00
emersion
a2391a6047
Fix cursor transform on DRM backend 2018-03-31 20:55:31 -04:00
emersion
33a2eb4b77
Untie wlr_backend from wlr_renderer 2018-03-31 18:49:43 -04:00
Drew DeVault
00e12278c7
Merge pull request #793 from emersion/x11-backend-flush-destroy-window
backend/x11: flush after destroying window
2018-03-31 14:14:16 -04:00
emersion
37aae0b2cd
backend/x11: flush after destroying window
Otherwise the destroy message is kept buffered and never reaches
the X11 server. Thanks X11.
2018-03-31 13:28:50 -04:00
emersion
7b88ace557
backend/x11: hide cursor 2018-03-31 12:10:43 -04:00
Drew DeVault
96c6091f80
Merge pull request #786 from emersion/x11-backend-multiple-outputs
backend/x11: add support for multiple outputs
2018-03-31 10:13:43 -04:00
Drew DeVault
937362b552 FIx crash on touch down 2018-03-31 09:55:41 -04:00
Drew DeVault
6eb72a1ae5
Merge pull request #790 from orestisf1993/fix-build
Another gcc false positive
2018-03-31 08:48:53 -04:00
Orestis Floros
3f6823092a
Initialize roots_output to fix -Wmaybe-uninitialized
With -O2:
../rootston/desktop.c: In function ‘desktop_surface_at’:
../rootston/desktop.c:714:18: error: ‘roots_output’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
   if ((surface = layer_surface_at(roots_output,
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      &roots_output->layers[ZWLR_LAYER_SHELL_V1_LAYER_BOTTOM],
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      ox, oy, sx, sy))) {
      ~~~~~~~~~~~~~~~
2018-03-31 12:57:12 +03:00
Drew DeVault
8ed0e9f343
Merge pull request #789 from emersion/xwayland-h-style
xwyaland: fix style issues
2018-03-31 00:39:30 -04:00
emersion
90fbab6f39
xwyaland: fix style issues 2018-03-31 00:35:08 -04:00
Drew DeVault
3041612363
Merge pull request #788 from emersion/xwm-cursor-stride
xwayland: specify xwm cursor stride in bytes
2018-03-31 00:28:01 -04:00
Drew DeVault
23d357e371 Downgrade gles2 messages to L_DEBUG
L_INFO is for stuff that's useful to the user
2018-03-31 00:27:30 -04:00
emersion
692f1746cf
xwayland: specify xwm cursor stride in bytes 2018-03-31 00:22:58 -04:00
Drew DeVault
1778818a50 Don't destroying all layer surfaces on client d/c 2018-03-31 00:22:09 -04:00
emersion
5111f7df84
backend/x11: fix extra output 2018-03-30 23:51:20 -04:00
emersion
f37e8c5b6e
backend/wayland: cleanup input transform code 2018-03-30 23:51:20 -04:00
emersion
aa6ae710f7
backend/x11: fix input events 2018-03-30 23:51:19 -04:00
emersion
0a7a8cbd1c
backend/x11: add WLR_X11_OUTPUTS support 2018-03-30 23:51:19 -04:00
emersion
d4f7ced6e2
backend/x11: refactor, prepare support for multiple outputs 2018-03-30 23:51:16 -04:00
emersion
f133170ff0
Merge pull request #787 from swaywm/input-point
Add wlr_surface_point_accepts_input
2018-03-30 23:05:49 -04:00
Drew DeVault
e19ee6d469 Add wlr_surface_point_accepts_input
Ref https://github.com/swaywm/sway/pull/1674
2018-03-30 23:02:11 -04:00
Drew DeVault
2053a4c144 Add more exotic cursor for layer shell example
So it's more obvious that it's being set
2018-03-30 21:02:28 -04:00
Drew DeVault
2701a964cf
Merge pull request #783 from swaywm/layer-input
Add pointer input to layer surfaces
2018-03-30 20:37:57 -04:00
Drew DeVault
746e3759b7 Address review feedback 2018-03-30 20:34:00 -04:00
emersion
c4666918fa
Merge pull request #782 from orestisf1993/fix-build
Fix build error with -O2
2018-03-30 19:13:07 -04:00
Drew DeVault
168f65fb7a Minor bugfixes 2018-03-30 18:28:21 -04:00
Drew DeVault
e3eb487dc2 Add pointer support to layer shell example 2018-03-30 18:23:57 -04:00
Orestis Floros
c9ed6fed59
Fix build error with -O2
../render/gles2/renderer.c: In function ‘gles2_render_texture_with_matrix’:
../render/gles2/renderer.c:140:2: error: ‘target’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
  glBindTexture(target, tex_id);
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../render/gles2/renderer.c:145:2: error: ‘prog’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
  glUseProgram(prog);
2018-03-31 01:05:33 +03:00
Drew DeVault
dc412c514b Find layer surfaces for input events 2018-03-30 17:27:10 -04:00
Drew DeVault
662f40b8ae Refactor cursor event passhtrough 2018-03-30 17:27:10 -04:00
Tony Crisci
212d957c69
Merge pull request #779 from emersion/xwayland-map-consistency
xwayland: rename map_notify to map for consistency
2018-03-30 16:16:52 -04:00
emersion
e8cb5e89e9
Merge pull request #780 from emersion/output-damage-box-include
output-damage: fix missing wlr_box include
2018-03-30 13:37:43 -04:00
emersion
47a529a69c
output-damage: fix missing wlr_box include 2018-03-30 12:31:16 -04:00
emersion
865b0aa123
xwayland: rename map_notify to map for consistency 2018-03-30 11:01:23 -04:00
Drew DeVault
8ada41c272
Merge pull request #777 from emersion/fix-surface-buffer-not-updated
surface: fix texture not updated on commit
2018-03-29 20:48:10 -04:00
emersion
6bbf507082
surface: fix texture not updated on commit
When a client attaches a wl_drm or a linux_dmabuf buffer, we only
update it if the size is different from the one of the old buffer.
This means that if the client attaches a new, updated buffer with
the same size as the old buffer, the texture won't get updated.

This commit changes this behavior and re-creates the texture if
the client attaches a new buffer, without requiring the size to be
different.
2018-03-29 19:44:57 -04:00
emersion
cadfccf1fd
xwayland: use a separate window for drag'n'drop 2018-03-29 17:53:47 -04:00