Johan Malm
69f0f68cc2
Open new views on output where cursor is
2021-07-13 21:50:02 +01:00
Johan Malm
a3ac2f2767
layers: take into account usable area when maximizing views
2021-07-12 21:39:09 +01:00
Johan Malm
ee15a5fe56
cursor: handle button press on layer-surface (issue #41 )
2021-07-12 16:44:30 +01:00
Johan Malm
238fab1518
output: assert instead of quiet return
2021-06-30 20:12:58 +01:00
Johan Malm
892e93dd84
output: access texture width/height directly
...
wlr_texture_get_size() is removed in wlroots@6369f709 so we have to
access width and height directly.
2021-05-17 19:55:57 +01:00
Johan Malm
02628bde38
s/LAB_ADAPTIVE_SYNC/LABWC_ADAPTIVE_SYNC/
...
Use the the prefix LABWC_ for environment variable to increase
consistency.
2021-03-30 22:41:17 +01:00
Johan Malm
fdfb12b2ce
Added support for rounded corners
2021-03-27 21:04:12 +00:00
Johan Malm
be27024a2a
output: optionally call wlr_output_enable_adaptive_sync()
...
Set environment variable LAB_ADAPTIVE_SYNC to enable adaptive sync.
2021-03-22 21:25:51 +00:00
Johan Malm
2a48f2801b
Create a linked list of SSD for each view
2021-03-21 21:46:16 +00:00
Johan Malm
fc76100fd5
Add ssd.h
2021-03-21 20:54:55 +00:00
Johan Malm
a262b729df
Rename deco.c ssd.c
2021-03-20 14:41:39 +00:00
Johan Malm
6737aeabcd
output: scale sdd and menu
2021-03-20 14:24:31 +00:00
Jan Beich
ad07acc13c
xdg: chase swaywm/wlroots@f574ca934c
...
src/xdg.c:180:2: warning: implicit declaration of function 'wlr_xdg_surface_for_each_popup' is invalid in C99 [-Wimplicit-function-declaration]
wlr_xdg_surface_for_each_popup(view->xdg_surface, iterator, data);
^
ld: error: undefined symbol: wlr_xdg_surface_for_each_popup
>>> referenced by xdg.c:180 (src/xdg.c:180)
>>> labwc.p/src_xdg.c.o:(xdg_toplevel_view_for_each_popup)
Based on 5438cc158a
2021-03-13 23:23:33 +00:00
Johan Malm
f842394737
output: simplify render_cycle_box()
2021-03-13 11:20:47 +00:00
Johan Malm
b8c6f9c216
xdg: update padding on commit
...
Maximize/unmaximize changes padding on XDG-shell views with CSD, so we
need to update padding to render cycle-view decoration correctly.
2021-03-12 21:23:46 +00:00
Johan Malm
c1269adc40
xdg: on init, set maximize according to wlr_xdg_surface status
2021-03-08 21:56:57 +00:00
Johan Malm
83f6618e68
output: set layout-coords coorectly for cycle box
2021-03-08 07:05:47 +00:00
Johan Malm
ebd167a5eb
output.c: fix formatting
2021-03-06 18:30:53 +00:00
Alex Bryan
50137e0bbe
Add placeholder output-config verification
...
Added a placeholder function to verify an output configuration that
we've received from a client via output-management-v1. Currently we just
assume the config is valid and teturn true, but we should really look
at the config before applying it
2021-02-28 00:08:47 -05:00
Alex Bryan
2a0f171340
Added initial wlr-output-management-unstable-v1 support
...
Was able to use wlr-randr to arrange my monitors correctly.
TODO: test w/ kanshi and handle output_manager->events.test event
2021-02-27 23:15:02 -05:00
Johan Malm
de88b69d62
mv theme.c ..
2021-02-21 22:18:34 +00:00
Johan Malm
1b263e1f67
Un-global theme variable
2021-02-21 21:54:40 +00:00
Johan Malm
f3a95d65ad
output.c: remove unnecessary _remove() and _destroy()
2021-02-15 18:36:30 +00:00
Johan Malm
29b9e3334d
damage: render deco in output local coordinates
2021-01-10 13:00:30 +00:00
Johan Malm
54804fd3df
Implement damage tracking
2021-01-09 22:51:20 +00:00
Johan Malm
cfc6e18cdc
Make xwayland support optional
2020-12-30 10:29:21 +00:00
Johan Malm
18b6fd7e75
output: use output-local coordinates (issue #5 )
2020-11-01 22:20:39 +00:00
Johan Malm
2f44e954aa
Remove clang-format on/off comments
2020-10-31 15:33:46 +00:00
Johan Malm
c8040e4d3b
server: free() in correct order
2020-10-23 20:19:07 +01:00
Johan Malm
d5b9a65978
s/cursor_mode/input_mode/
2020-10-21 20:30:06 +01:00
Johan Malm
dc5d1ab976
Support a very simple root-menu
2020-10-19 22:14:17 +01:00
Johan Malm
a81b405150
output.c: define _POSIX_C_SOURCE (issue #4 )
2020-10-15 21:03:04 +01:00
Johan Malm
80947e56ee
output: add wl_list_remove()s
2020-10-08 20:37:42 +01:00
Johan Malm
8e2b3ea89a
seat: remove seat_focused_surface()
2020-10-07 21:49:58 +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
16c3869fca
view_impl: add for_each_surface()
2020-09-29 20:48:50 +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
4ecc5efa73
deco: refactor button code
...
- Make the height+width of buttons the same as the title bar.
- Center icons within the 'button space'
- Show button background color on hover (just hard-coded grey for now)
2020-09-21 19:24:27 +01:00
Johan Malm
35ff6e5bb0
rcxml: s/csd/xdg_shell_server_side_deco
2020-09-15 21:10:02 +01:00
Johan Malm
090e78b85a
view: add 'struct border margin'
...
Simplify various view interfaces as a result
2020-09-15 20:41:01 +01:00
Johan Malm
35015e57c6
view: remove view_hasfocus()
2020-09-14 17:42:39 +01:00
Johan Malm
0b834c2efa
output: draw openbox style view-cycle border
2020-09-10 22:25:26 +01:00
Johan Malm
e99d0bb34e
labwc.h: remove "extern struct server server"
2020-09-08 20:18:12 +01:00
Johan Malm
17f7ef53be
output: avoid calling wlr_xdg_surface_get_geometry()
...
Try to only call wlr_xdg_surface_get_geometry() in .commit and .map
2020-09-07 19:50:19 +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
83331e57ed
Support inactive unpressed icons
2020-08-21 20:35:06 +01:00
Johan Malm
042c157378
Track server-side-decoration per view
2020-08-06 14:51:45 +01:00
Johan Malm
4d1363dcae
include/: refactor header files more
2020-08-03 20:56:38 +01:00