Daniel Barlow
75564d6b8d
fix madly flashing background
...
the preprocessor symbol DEBUG is now defined to (0) even
when debugging should not not be enabled, so change from checking
2021-08-29 16:13:36 +01:00
Johan Malm
ea3ea49783
Fix more coding style violations
2021-08-25 20:45:39 +01:00
Johan Malm
645a8e46a6
Support fullscreen mode (issue #53 )
2021-08-23 22:05:30 +01:00
Johan Malm
5cf4539827
output: fallback to other output modes if preferred mode fails
...
See sway@4cdc4ac6
Sometimes the preferred mode is not available due to hardware
constraints. In these cases it is better to fallback to lower modes than
to end up with a black screen.
2021-08-22 14:14:50 +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
Johan Malm
77ade08158
osd: support 'alt-tab' on screen display
...
The osd window shows title, app_id/class and shell of all views that can
be cycled between.
2021-08-16 07:16:56 +01:00
Johan Malm
9a9cd609f6
menu: fix breakage caused by f857aea8
2021-08-09 17:28:39 +01:00
Johan Malm
f857aea8f4
ssd: add application title to title bar
2021-08-07 09:35:53 +01:00
Johan Malm
5ecf0e1e7e
Make font_texture_create() more generic
...
Move font_texture_create() to font.c so it can be used for purposes other
than rendering the menu, for example server side decoration.
Refactor menu.c and menu.h to use this more generic font_texture_create()
2021-08-07 08:35:46 +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
22f5073ebd
xdg: use "usable_area" when positioning view
2021-07-21 22:04:54 +01:00
Johan Malm
e50bb45890
Move corner textures from ssd.c to theme.c
...
It makes more sense to just keep one set of corner textures for server
side view decorations, rather than storing a set for each view. This also
keeps the code simpler when when changing theme parameters.
2021-07-16 17:07:00 +01:00
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