Physics student and hobby programmer.

I work on random projects, usually in C. Currently I am focused on creating useful and fun desktop widgets for Wayland desktops and desktop related tools.

Since sourcehut does not allow to pin repositories (yet?), I marked the important ones with a star ★


Last active 6 hours ago


Last active 18 days ago


Last active 29 days ago
View more

Recent activity

Re: Compile error on fedora-31 21 hours ago

From Leon Plickat to ~leon_plickat/lavalauncher

On So 16.02.2020, 15:08, Bob Hepple wrote:
> Yeah - I doubt the fedora guys would accept that (modifying the
> compiler options, that is), they're pretty starchy when it comes to
> that sort of thing.
> I could compile it into my own very obscure COPR repo without using
> the fedora macros. I think that you'd be better served by fixing the
> compiler error and having it in fedora proper. Your choice, of course.

It is not an error per se, just that the Fedora guys (or the people upstream
at RedHat) use slightly more paranoid compiler flags for builds than I use on
my machine.

The increased rigidity is not a bad idea, so I made some changes to LavaLauncher

Re: Compile error on fedora-31 a day ago

From Leon Plickat to ~leon_plickat/lavalauncher

On So 16.02.2020, 08:59, Bob Hepple wrote:
> I'm trying to create a package for fedora for lavalauncher but I am getting
> a compiler error in the build. This is on fedora-31. I'm attaching the
> error log and the spec file (feel free to add the spec file to the project
> - it might come in handy!).
> The build works when following your build instructions so I could always
> fall back on that but the rpmbuild macros may be a bit stricter. I'd prefer
> to user the stricter approach if possible - and the fedora people would
> insist on that.

I must admit that I am unfamiliar with the RPM build process, as I have always
lived in the apt / pacman sphere, however looking through the logs, I believe
this error might be avoided by an additional compiler flag: -Wno-maybe-uninitialized

Re: [PATCH 2/2] Add a daemonization option 18 days ago

From Leon Plickat to ~leon_plickat/sbd

Thanks for the patch, however:

On Mo 27.01.2020, 13:11, Nicolai Dagestad wrote:
>  	FILE* log=stderr;
> +	int daemonize=0;

Style: - '=' is always surrounded by spaces.
       - '*' always has a right-gravity; This comes from * having a right
         associativity in C.

On Mo 27.01.2020, 13:11, Nicolai Dagestad wrote:
>  	char opt;
> -	while ((opt = getopt(argc, argv, "qf")) != -1)
> +	while ((opt = getopt(argc, argv, "qd")) != -1)

Small test of the mailing list 2 months ago

From Leon Plickat to ~leon_plickat/lavalauncher

This is a test of the new any fancy mailinglist for LavaLauncher.

Leon Plickat
PGP: 1A011200

[PATCH] Bug-Fix: Can no longer select borders hidden under views 6 months ago

From Leon Plickat to ~sircmpwn/wio

This fixes the bug where clicking on a border would enable border
dragging even if the border was hidden under a view.

Letting wio_view_at() report where the given coordinates are on a view
enables us to check for views and borders of views in the same loop,
easily solving this problem.

Additionally this makes the border dragging code cleaner and enables
other functions as well to see where on a view was clicked.
 include/view.h |  11 ++++-
 input.c        | 110 +++++++++++++++++--------------------------------
 view.c         |  48 ++++++++++++++++++++-
 3 files changed, 94 insertions(+), 75 deletions(-)
[message trimmed]

[PATCH] Resize views by dragging their borders 6 months ago

From Leon Plickat to ~sircmpwn/wio

This matches Rios behaviour, with the small exception that wios resizing
is smooth while Rios snaps to a grid.
 include/server.h |   4 ++
 input.c          | 163 ++++++++++++++++++++++++++++++++++++++++++++++-
 output.c         |  36 ++++++++++-
 3 files changed, 200 insertions(+), 3 deletions(-)

diff --git a/include/server.h b/include/server.h
index 4e729a1..60842e1 100644
--- a/include/server.h
+++ b/include/server.h
@@ -26,6 +26,10 @@ enum wio_input_state {
[message trimmed]