~goleo

Recent activity

Re: [PATCH 3/4] Left and middle mouse buttons stop current action / event 4 years ago

From to ~sircmpwn/wio

No, I'm wrong, scaling is still an issue, wio_view_at() is not adjusted to scale from the beginning and that portion() is not adjusted to scale either, I have no idea how to fix it because this event system is weird and feels inefficient.

Re: [PATCH 3/4] Left and middle mouse buttons stop current action / event 4 years ago

From to ~sircmpwn/wio

Scaling problem is fixed in https://git.sr.ht/~goleo/wio/commit/c48c8a7995776a8f9d989be4ba89bbe8cf033140

Also my first patch has negative width/height bug which will cause a crash at recent wlroots snapshot, fixed in https://git.sr.ht/~goleo/wio/commit/34233e53b76710cfdb97d1639d72275db1fcb11b

[PATCH 4/4] Remove obsolete options in contrib/alacritty.yml 4 years ago

From Leonid Bobrov to ~sircmpwn/wio

---
 contrib/alacritty.yml | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/contrib/alacritty.yml b/contrib/alacritty.yml
index cef2dcd..0cbc48a 100644
--- a/contrib/alacritty.yml
+++ b/contrib/alacritty.yml
@@ -11,9 +11,6 @@ window:
scrolling:
  history: 10000
  multiplier: 3
  faux_multiplier: 3
  auto_scroll: false
[message trimmed]

[PATCH 3/4] Left and middle mouse buttons stop current action / event 4 years ago

From Leonid Bobrov to ~sircmpwn/wio

Also revert 8ecffded9bf606e80ce8b2ad3d2ed929aea4f374
---
 input.c | 26 +++++---------------------
 1 file changed, 5 insertions(+), 21 deletions(-)

diff --git a/input.c b/input.c
index 3b177fa..c2b78f9 100644
--- a/input.c
+++ b/input.c
@@ -30,7 +30,6 @@ static void keyboard_handle_modifiers(
		&keyboard->device->keyboard->modifiers);
}

static void view_end_interactive(struct wio_server *server);
[message trimmed]

[PATCH 1/4] Resize like in Rio 4 years ago

From Leonid Bobrov to ~sircmpwn/wio

Summary:
* remove duplicate code;
* resize views when dragging corner borders;
* width and height never become negative to avoid rendering bugs while reflecting,
  also recently wlroots crashes when width/height is <= 0;
* reflection behaves like in Rio;
* minimal size is enforced on red box like in Rio;
* change cursor for New and Resize;
* New and Resize do nothing if size is less than minimal like in Rio;
* New and Resize draw a grey surface in red box like in Rio;
* it's not accurate because it assumes scale is always 1.
---
 include/colors.h |   4 +
 include/server.h |   5 +-
[message trimmed]

[PATCH 2/4] Move views by dragging their borders 4 years ago

From Leonid Bobrov to ~sircmpwn/wio

---
 input.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/input.c b/input.c
index b7be393..3b177fa 100644
--- a/input.c
+++ b/input.c
@@ -433,6 +433,11 @@ void server_cursor_button(struct wl_listener *listener, void *data) {
				event->time_msec, event->button, event->state);
		break;
	default:
		if (event->button == BTN_RIGHT) {
			view_begin_interactive(view, surface, sx, sy,
[message trimmed]

[PATCH 11/11] Set cursor image to arrow when hovering borders 4 years ago

From Leonid Bobrov to ~sircmpwn/wio

---
 input.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/input.c b/input.c
index 6d76097..b6118f2 100644
--- a/input.c
+++ b/input.c
@@ -147,6 +147,10 @@ End:
			wlr_seat_pointer_notify_motion(seat, time, sx, sy);
		}
	} else {
		if (view) {
			wlr_xcursor_manager_set_cursor_image(server->cursor_mgr,
[message trimmed]

[PATCH 10/11] Move and rename which_box and canon_box 4 years ago

From Leonid Bobrov to ~sircmpwn/wio

---
 include/view.h |  4 +--
 input.c        |  8 ++---
 output.c       |  6 ++--
 view.c         | 82 +++++++++++++++++++++++++-------------------------
 4 files changed, 50 insertions(+), 50 deletions(-)

diff --git a/include/view.h b/include/view.h
index 0899f9c..09f7e1a 100644
--- a/include/view.h
+++ b/include/view.h
@@ -33,10 +33,10 @@ enum wio_view_area {
void server_new_xdg_surface(struct wl_listener *listener, void *data);

[message trimmed]

[PATCH 09/11] Resize views by dragging their borders like in Rio 4 years ago

From Leonid Bobrov to ~sircmpwn/wio

Like a glove!
---
 view.c | 36 ++++--------------------------------
 1 file changed, 4 insertions(+), 32 deletions(-)

diff --git a/view.c b/view.c
index fc7ccc7..c768cc4 100644
--- a/view.c
+++ b/view.c
@@ -216,39 +216,11 @@ struct wlr_box which_box(struct wio_server *server) {
}

struct wlr_box canon_box(struct wio_server *server, struct wlr_box box) {
	if (box.width < MINWIDTH) {
[message trimmed]

[PATCH 05/11] Remove obsolete options in contrib/alacritty.yml 4 years ago

From Leonid Bobrov to ~sircmpwn/wio

---
 contrib/alacritty.yml | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/contrib/alacritty.yml b/contrib/alacritty.yml
index cef2dcd..0cbc48a 100644
--- a/contrib/alacritty.yml
+++ b/contrib/alacritty.yml
@@ -11,9 +11,6 @@ window:
scrolling:
  history: 10000
  multiplier: 3
  faux_multiplier: 3
  auto_scroll: false
[message trimmed]