-
Notifications
You must be signed in to change notification settings - Fork 734
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
x11-toolkits/wlroots: update to 0.11.0
Changes: https://github.com/swaywm/wlroots/releases/tag/0.11.0 Reported by: GitHub (watch releases)
- Loading branch information
Showing
10 changed files
with
197 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,9 @@ | ||
TIMESTAMP = 1583848544 | ||
SHA256 (swaywm-wlroots-0.10.1_GH0.tar.gz) = b84baefbaff7bb04b3d2c43cbacef1a433e2cd65111f8fbf4bfc5faaa4b34b08 | ||
SIZE (swaywm-wlroots-0.10.1_GH0.tar.gz) = 455232 | ||
SHA256 (f0594fb73225.patch) = 18bf269fcd6831246604654dc1e229e8ed75a5d3dbb46c49600609e144404dc2 | ||
SIZE (f0594fb73225.patch) = 2971 | ||
SHA256 (144d2041adfb.patch) = e76603d04d24063182e05876313f1ac697a132771e32c50ae7cf1d962a866c40 | ||
SIZE (144d2041adfb.patch) = 1838 | ||
SHA256 (2bad34e02423.patch) = b37db858d0caaf205f35f14c23417ea411c3cd94fe78e6b185869c61919326c7 | ||
SIZE (2bad34e02423.patch) = 1116 | ||
SHA256 (8d2e8d8a0612.patch) = 2548770a92535b1112c2199c0ace8baf4f4b4cee66f256be23bebbc612d6058c | ||
SIZE (8d2e8d8a0612.patch) = 1502 | ||
SHA256 (9bd90890457d.patch) = 953208a977fa5332b58ab3d145b8c293ab70b61af082a05403f7d75a1340767f | ||
SIZE (9bd90890457d.patch) = 5125 | ||
SHA256 (d069ab71d43e.patch) = 5aaf3959922b41797f1ca3f8537d6dd5c35920d08fc3373c693dfc6181b19379 | ||
SIZE (d069ab71d43e.patch) = 3953 | ||
TIMESTAMP = 1594852043 | ||
SHA256 (swaywm-wlroots-0.11.0_GH0.tar.gz) = a7645e77229aab4942748c621be8bdb8b073d94f35f3e032b867246862bf2d01 | ||
SIZE (swaywm-wlroots-0.11.0_GH0.tar.gz) = 481126 | ||
SHA256 (0fe36eb89754.patch) = a416f736df9afb7f3035488bdfd94983b6208d1fa7d36ca13fea315aceae153d | ||
SIZE (0fe36eb89754.patch) = 5257 | ||
SHA256 (90cb6d26877b.patch) = 4c3a87dca481a637457d7409d38ce2bcd8d52ba4a0b02cf16e09429a6d3d360d | ||
SIZE (90cb6d26877b.patch) = 3965 | ||
SHA256 (e8cc137111bc.patch) = e0b686193a6925eedb09298e0f300aa93d4910c41dbe788a47a2699df34cfafe | ||
SIZE (e8cc137111bc.patch) = 27737 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
TIMESTAMP = 1593197771 | ||
SHA256 (Hjdskes-cage-v0.1.1-77-gbd961db_GH0.tar.gz) = 743b9df84289c8bb4405c9d92398927d8f60ce87c75dcd47c543cbee20a7f293 | ||
SIZE (Hjdskes-cage-v0.1.1-77-gbd961db_GH0.tar.gz) = 24446 | ||
SHA256 (6a12da196068.patch) = 9c296d65935e89155e8a0a85a402fc6d9a78563bfa0b26795fd21416d5d3e71e | ||
SIZE (6a12da196068.patch) = 781 | ||
SHA256 (3575c9180bc0.patch) = 5f69a0157b05de9e2714f00630c6972b3c711634b1de358ce4131ffe2d40b2b5 | ||
SIZE (3575c9180bc0.patch) = 924 | ||
SHA256 (70ecdcb02ea0.patch) = 2dd0e99d181986c6b2d5e04e89f692e3d77b8bd2a3a08f94cf8a27b38489eb3c | ||
SIZE (70ecdcb02ea0.patch) = 2137 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,146 @@ | ||
https://github.com/WayfireWM/wayfire/commit/0d6cecd27799 | ||
https://github.com/WayfireWM/wayfire/commit/187b525c16d1 | ||
https://github.com/WayfireWM/wayfire/commit/29dcd1387700 | ||
https://github.com/WayfireWM/wayfire/commit/0e4e29acb3e9 | ||
|
||
--- meson.build.orig 2020-03-21 19:10:27 UTC | ||
+++ meson.build | ||
@@ -29,7 +29,7 @@ libinput = dependency('libinput', version: '>=1. | ||
pixman = dependency('pixman-1') | ||
threads = dependency('threads') | ||
xkbcommon = dependency('xkbcommon') | ||
-wlroots = dependency('wlroots', version: ['>=0.9.0', '<0.11.0'], required: get_option('use_system_wlroots')) | ||
+wlroots = dependency('wlroots', version: ['>=0.11.0', '<0.12.0'], required: get_option('use_system_wlroots')) | ||
wfconfig = dependency('wf-config', version: ['>=0.4.0', '<0.5.0'], required: get_option('use_system_wfconfig')) | ||
|
||
use_system_wlroots = not get_option('use_system_wlroots').disabled() and wlroots.found() | ||
--- src/api/wayfire/core.hpp.orig 2020-03-21 19:10:27 UTC | ||
+++ src/api/wayfire/core.hpp | ||
@@ -226,11 +226,12 @@ class compositor_core_t : public wf::object_base_t | ||
std::string wayland_display; | ||
|
||
/** | ||
- * Return the xwayland display number. | ||
+ * Return the xwayland display name. | ||
* | ||
- * This returns -1 if xwayland is not available | ||
+ * @return The xwayland display name, or empty string if xwayland is not | ||
+ * available. | ||
*/ | ||
- virtual int get_xwayland_display() = 0; | ||
+ virtual std::string get_xwayland_display() = 0; | ||
|
||
/** | ||
* Execute the given command in a bash shell. | ||
--- src/core/core-impl.hpp.orig 2020-03-21 19:10:27 UTC | ||
+++ src/core/core-impl.hpp | ||
@@ -75,7 +75,7 @@ class compositor_core_impl_t : public compositor_core_ | ||
int focus_layer(uint32_t layer, int request) override; | ||
void unfocus_layer(int request) override; | ||
uint32_t get_focused_layer() override; | ||
- int get_xwayland_display() override; | ||
+ std::string get_xwayland_display() override; | ||
void run(std::string command) override; | ||
|
||
private: | ||
--- src/core/core.cpp.orig 2020-03-21 19:10:27 UTC | ||
+++ src/core/core.cpp | ||
@@ -548,9 +548,8 @@ void wf::compositor_core_impl_t::run(std::string comma | ||
setenv("_JAVA_AWT_WM_NONREPARENTING", "1", 1); | ||
setenv("WAYLAND_DISPLAY", wayland_display.c_str(), 1); | ||
#if WLR_HAS_XWAYLAND | ||
- if (xwayland_get_display() >= 0) { | ||
- auto xdisp = ":" + std::to_string(xwayland_get_display()); | ||
- setenv("DISPLAY", xdisp.c_str(), 1); | ||
+ if (!xwayland_get_display().empty()) { | ||
+ setenv("DISPLAY", xwayland_get_display().c_str(), 1); | ||
} | ||
#endif | ||
int dev_null = open("/dev/null", O_WRONLY); | ||
@@ -567,7 +566,7 @@ void wf::compositor_core_impl_t::run(std::string comma | ||
} | ||
} | ||
|
||
-int wf::compositor_core_impl_t::get_xwayland_display() | ||
+std::string wf::compositor_core_impl_t::get_xwayland_display() | ||
{ | ||
return xwayland_get_display(); | ||
} | ||
--- src/core/seat/keyboard.cpp.orig 2020-03-21 19:10:27 UTC | ||
+++ src/core/seat/keyboard.cpp | ||
@@ -113,15 +113,20 @@ void input_manager::set_keyboard_focus(wayfire_view vi | ||
if (!active_grab) | ||
{ | ||
auto kbd = wlr_seat_get_keyboard(seat); | ||
- wlr_seat_keyboard_notify_enter(seat, surface, | ||
- kbd ? kbd->keycodes : NULL, | ||
- kbd ? kbd->num_keycodes : 0, | ||
- kbd ? &kbd->modifiers : NULL); | ||
+ if (surface) | ||
+ { | ||
+ wlr_seat_keyboard_notify_enter(seat, surface, | ||
+ kbd ? kbd->keycodes : NULL, | ||
+ kbd ? kbd->num_keycodes : 0, | ||
+ kbd ? &kbd->modifiers : NULL); | ||
+ } else { | ||
+ wlr_seat_keyboard_clear_focus(seat); | ||
+ } | ||
keyboard_focus = view; | ||
} | ||
else | ||
{ | ||
- wlr_seat_keyboard_notify_enter(seat, NULL, NULL, 0, NULL); | ||
+ wlr_seat_keyboard_clear_focus(seat); | ||
keyboard_focus = nullptr; | ||
} | ||
} | ||
--- src/core/seat/pointer.cpp.orig 2020-03-21 19:10:27 UTC | ||
+++ src/core/seat/pointer.cpp | ||
@@ -116,7 +116,7 @@ void wf::LogicalPointer::update_cursor_focus(wf::surfa | ||
|
||
cursor_focus = focus; | ||
wlr_surface *next_focus_wlr_surface = nullptr; | ||
- if (focus && !compositor_surface_from_surface(focus)) | ||
+ if (focus && focus->get_wlr_surface()) | ||
{ | ||
next_focus_wlr_surface = focus->get_wlr_surface(); | ||
wlr_seat_pointer_notify_enter(input->seat, next_focus_wlr_surface, | ||
--- src/view/surface.cpp.orig 2020-03-21 19:10:27 UTC | ||
+++ src/view/surface.cpp | ||
@@ -322,7 +322,7 @@ void wf::wlr_surface_base_t::unmap() | ||
wlr_buffer* wf::wlr_surface_base_t::get_buffer() | ||
{ | ||
if (surface && wlr_surface_has_buffer(surface)) | ||
- return surface->buffer; | ||
+ return &surface->buffer->base; | ||
|
||
return nullptr; | ||
} | ||
--- src/view/view-impl.hpp.orig 2020-03-21 19:10:27 UTC | ||
+++ src/view/view-impl.hpp | ||
@@ -204,7 +204,7 @@ void init_xwayland(); | ||
void init_layer_shell(); | ||
|
||
void xwayland_set_seat(wlr_seat *seat); | ||
-int xwayland_get_display(); | ||
+std::string xwayland_get_display(); | ||
|
||
void init_desktop_apis(); | ||
} | ||
--- src/view/xwayland.cpp.orig 2020-03-21 19:10:27 UTC | ||
+++ src/view/xwayland.cpp | ||
@@ -567,11 +567,11 @@ void wf::xwayland_set_seat(wlr_seat *seat) | ||
#endif | ||
} | ||
|
||
-int wf::xwayland_get_display() | ||
+std::string wf::xwayland_get_display() | ||
{ | ||
#if WLR_HAS_XWAYLAND | ||
- return xwayland_handle ? xwayland_handle->display : -1; | ||
+ return xwayland_handle ? nonull(xwayland_handle->display_name) : ""; | ||
#else | ||
- return -1; | ||
+ return ""; | ||
#endif | ||
} |