Commit graph

64 commits

Author SHA1 Message Date
Consolatis
f2d40a8d69 Scene Menu 2022-02-23 21:47:01 +00:00
Consolatis
044388a5cd Prepare to move from wlr_texture to lab_data_buffer 2022-02-23 21:47:01 +00:00
Johan Malm
b79744e7b0 Chase wlroots master
We need it for wlr_scene_layer_surface_v1_create()
2022-02-23 21:47:01 +00:00
Johan Malm
532656ad5b Use wlroots scene-graph API
Move xdg-shell and xwayland-shell surfaces to new API

Also render alt-tab on-screen-display by converting cairo-surface to
wlr_buffer
2022-02-23 21:46:48 +00:00
Consolatis
53df672dda Reload environment on SIGHUP. Partly fixes #227 2022-02-08 06:08:12 +00:00
bi4k8
58ed11c99c fix signal handlers
avoid segfaulting sigint/sigterm handlers and drop an unused argument from sighup handler
2021-12-01 07:12:37 +00:00
Johan Malm
d50c2f2eac Fix minor style violations 2021-11-26 19:27:50 +00:00
Jan Beich
3e5458fa24 server: chase swaywm/wlroots@fdf3169b41
ld: error: undefined symbol: wlr_backend_get_renderer
>>> referenced by output.c
>>>               labwc.p/src_output.c.o:(render_rect)
>>> referenced by output.c
>>>               labwc.p/src_output.c.o:(render_rect)
>>> referenced by output.c
>>>               labwc.p/src_output.c.o:(render_texture)
>>> referenced 5 more times

Based on 5865af75cf
Based on a6538ced35
2021-11-21 07:52:19 +00:00
Joshua Ashton
8048f5f497 server: Expose viewporter
Needed for some games to fake modesets.

Signed-off-by: Joshua Ashton <joshua@froggi.es>
2021-10-20 18:49:22 +01:00
ARDiDo
f5072151a9 add pointer constraints 2021-10-17 22:32:25 +01:00
ARDiDo
d4e1791c88 Reconfigure inputs 2021-10-10 21:52:40 +01:00
Johan Malm
104f635b43 session.c: change "(foo*)" to "(foo *)" 2021-09-24 21:58:46 +01:00
Johan Malm
ebb632419b *.c: add SPDX-License-Identifier 2021-09-24 21:45:48 +01:00
Johan Malm
a9042e3cde Fix coding style following 824282dd 2021-08-25 19:59:49 +01:00
Daniel Barlow
ab9838888d implement commented-out bit in seat_disinhibit_input 2021-08-24 21:24:08 +01:00
Daniel Barlow
eb2d0918ba cleanup per PR review comments 2021-08-23 20:33:42 +01:00
Daniel Barlow
39b1d92f9b implement input_inhibit protocol, needed for swaylock
this is in "it appears to work" state, though I blindly copy-pasted a little
more code than I'm happy with, so might benefit from a review
2021-08-22 21:30:42 +01:00
Johan Malm
8c96c65018 ssd: refactor in preparation for making ssd_visible_box() private
Prepare to move code from output/render functions to ssd. We want
rendering functions to just render, not calculate decoration geometry
and such like.
2021-08-22 14:12:05 +01:00
Johan Malm
5f01c49b72 ssd: refactor and position title nearer left hand edge
Put title deco at the end of linked list to render it on top of corner
edges.
2021-08-22 14:06:11 +01:00
Daniel Barlow
44082ad80a workaround Gtk primary selection bug by changing order of globals
This makes primary selections work at least with Emacs (pgtk backend)
and Firefox. I haven't tested others.
2021-08-21 00:17:15 +01:00
Johan Malm
86c384b227 server: update view->margin after theme change 2021-08-11 21:04:22 +01:00
Johan Malm
042ea266a5 Add simple foreign toplevel implementation 2021-08-05 12:18:10 +01:00
Johan Malm
d6376808b8 server: add missing header file 2021-08-02 16:45:49 +01:00
Johan Malm
2aeb4ee643 server: update ssd on re-configure 2021-07-30 19:42:56 +01:00
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