Commit graph

40 commits

Author SHA1 Message Date
Johan Malm
82e47ac1f5 Remove src/common/log.c
Use wlr_log() instead
2021-07-23 21:15:55 +01:00
Johan Malm
20fd8f59a7 Remove info() and die() 2021-07-22 21:30:17 +01:00
Johan Malm
be27bb30a3 server: remove wl_display_init_shm()
This function is called by wlroots in wlr_renderer_init_wl_display(), so
no need to call it again. This stops Qt apps segfaulting when run with
"-platform wayland"

Fixes issue #34 item 2
2021-06-28 20:42:41 +01:00
Jan Beich
2ee21e9a82 server: chase swaywm/wlroots@4b03bdc3ab
src/server.c:93:63: error: too many arguments to function call, expected single argument 'display', have 2 arguments
        server->backend = wlr_backend_autocreate(server->wl_display, NULL);
                          ~~~~~~~~~~~~~~~~~~~~~~                     ^~~~
/usr/include/sys/_null.h:34:14: note: expanded from macro 'NULL'
 #define NULL    ((void *)0)
                 ^~~~~~~~~~~
/usr/local/include/wlr/backend.h:35:21: note: 'wlr_backend_autocreate' declared here
struct wlr_backend *wlr_backend_autocreate(struct wl_display *display);
                    ^

Based on 53f5197c26
2021-03-13 23:23:33 +00:00
Johan Malm
de88b69d62 mv theme.c .. 2021-02-21 22:18:34 +00:00
Johan Malm
cb2a504440 theme: add theme_finish() 2021-02-21 22:03:14 +00:00
Johan Malm
1b263e1f67 Un-global theme variable 2021-02-21 21:54:40 +00:00
Johan Malm
9af7bd744f Reload buttons in SIGHUP
Call xbm_load() from theme_init()
2021-02-21 21:14:06 +00:00
Johan Malm
6cdf3d68f3 menu: minor refactoring 2021-02-19 23:31:30 +00:00
Johan Malm
f0d8eb0a60 menu: reload on SIGHUP 2021-02-19 23:05:14 +00:00
Johan Malm
cfc6e18cdc Make xwayland support optional 2020-12-30 10:29:21 +00:00
Johan Malm
1a38898f34 spawn: avoid zombie children without handling SIGCHLD
Current handling of SIGCHLD prevents some terminals, for example
sakura and alacritty, to freeze on ctrl+D.

Related to PR #10
2020-12-29 18:08:35 +00:00
Johan Malm
57588aa173 server: handle SIGINT and SIGTERM 2020-12-21 18:56:46 +00:00
Wenhua Zhao
071fcc68db Fix zombie children 2020-12-01 07:20:43 +00:00
Johan Malm
64b6c37e7c Sort #includes 2020-11-01 22:22:15 +00:00
Johan Malm
f459fed4a8 server: add drop_permissions() (issue #5) 2020-10-23 20:25:56 +01:00
Johan Malm
c8040e4d3b server: free() in correct order 2020-10-23 20:19:07 +01:00
Johan Malm
109d942534 server: refactor server_finish() 2020-10-22 19:54:45 +01:00
Johan Malm
25829d122c Refactor seat.c, keyboard.c, cursor.c
Use wlr_keyboard_group
2020-10-02 21:20:12 +01:00
Johan Malm
a4c22f7c4d Add partial support for layer-shell
We can now run swaybg and waybar
2020-09-30 17:18:20 +01:00
Johan Malm
763f5c3455 output: add output_init() and refactor 2020-09-29 19:53:46 +01:00
Johan Malm
96e05057a3 Update .clang-format
Align with wlroots style
2020-09-28 20:41:41 +01:00
Johan Malm
33d02aa83e action: fix build warning 2020-09-25 20:05:20 +01:00
Johan Malm
1721b339da Reload config+theme on SIGHUP 2020-09-25 19:42:40 +01:00
Johan Malm
60f9624a19 server: support screen recording
Works with wf-recorder
2020-09-21 19:54:41 +01:00
Johan Malm
35ff6e5bb0 rcxml: s/csd/xdg_shell_server_side_deco 2020-09-15 21:10:02 +01:00
Johan Malm
e99d0bb34e labwc.h: remove "extern struct server server" 2020-09-08 20:18:12 +01:00
Johan Malm
8846998b75 mv xwl.c xwayland.c 2020-09-04 20:32:41 +01:00
Johan Malm
8e7f2e78cd Add xwayland-unmanaged.c
Handle xwayland override_direct surfaces separately from the view
struct - in order to simplify code, particularly in view.c
2020-09-04 20:25:20 +01:00
Johan Malm
ce2dc46855 server: fix wlr_xcursor_manager_load() ret val
Return value changed in wlroots 0.11.0
2020-08-11 21:07:23 +01:00
Johan Malm
7440919452 Add action.c 2020-06-18 20:18:01 +01:00
Johan Malm
6166e9b370 Read rc.xml and begin parsing 2020-06-05 23:04:54 +01:00
Johan Malm
fdc131049c server.c: minor refactoring 2020-06-05 21:07:57 +01:00
Johan Malm
af11ef771a Refactor main.c and server.c
Create server_{init,start,finish} functions.
2020-06-03 18:39:46 +01:00
Johan Malm
298d869092 Move server_new_output() to output.c 2020-05-29 22:18:03 +01:00
Johan Malm
bc5accb089 Rename some {cursor,keyboard}_ functions 2020-05-29 22:10:41 +01:00
Johan Malm
aa294330ea Add keyboard.c 2020-05-29 21:44:50 +01:00
Johan Malm
40d3e1b175 Add cursor.c 2020-05-29 21:36:12 +01:00
Johan Malm
3b7e2c9e09 Add interactive.c 2020-05-29 21:27:34 +01:00
Johan Malm
d28465dfc3 Put code in src/ and include/ 2020-05-27 14:29:05 +01:00
Renamed from server.c (Browse further)