Johan Malm
a6eb29ad33
config: add <core><gap>
...
Specify the distance in pixels between views and output edges when using
movement actions such as MoveToEdge
2021-08-22 14:32:19 +01:00
Johan Malm
3efcfaf145
view: scale correctly in view_maximize()
2021-08-17 07:25:57 +01:00
Johan Malm
620cd84a8a
view: apply output scale in view_center()
2021-08-17 07:24:27 +01:00
Johan Malm
f857aea8f4
ssd: add application title to title bar
2021-08-07 09:35:53 +01:00
Johan Malm
9cf0608aba
foreign: handle minimize request
2021-08-05 13:00:34 +01:00
Johan Malm
b4722d988e
foreign: handle maximize request
2021-08-05 12:52:42 +01:00
Johan Malm
042ea266a5
Add simple foreign toplevel implementation
2021-08-05 12:18:10 +01:00
Johan Malm
7dc4ae36ca
view: initialise x+y variables to handle edge case
2021-08-04 21:43:07 +01:00
Johan Malm
526ab1ae75
view: add view_toggle_maximize()
2021-08-02 16:49:41 +01:00
Johan Malm
22f5073ebd
xdg: use "usable_area" when positioning view
2021-07-21 22:04:54 +01:00
Johan Malm
2b9c6a503c
view.c: assign struct rather than using memcpy
...
Suggested-by: @xerpi
2021-07-21 19:25:34 +01:00
Johan Malm
5e83ce6b46
Add view_move_to_edge() to header file
2021-07-20 20:24:39 +01:00
Johan Malm
fa13f8f197
view: remove duplicate code
2021-07-20 20:06:26 +01:00
Johan Malm
49a73befdb
action: add 'MoveToEdge'
...
Currently only moves view to edges of outputs
Example keybind:
<keybind key="A-Left">
<action name="MoveToEdge">
<direction>left</direction>
</action>
</keybind>
2021-07-20 19:54:57 +01:00
Johan Malm
10264110f1
view: add view_output() and view_wlr_output()
2021-07-20 19:40:37 +01:00
Johan Malm
a3ac2f2767
layers: take into account usable area when maximizing views
2021-07-12 21:39:09 +01:00
Johan Malm
cb98f8f197
view: add view_center()
2021-07-09 21:39:20 +01:00
Johan Malm
2a48f2801b
Create a linked list of SSD for each view
2021-03-21 21:46:16 +00:00
Johan Malm
f863e1916d
view: scale maximize geometry correctly
2021-03-21 21:06:45 +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
15ffee79f9
view: refactor view_maximize()
2021-03-20 14:36:40 +00:00
Johan Malm
8898693160
view: scale view_maximize()
2021-03-20 14:26:32 +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
954d1fa54e
view: only (un)maximize when required
2021-03-12 21:27:17 +00:00
Johan Malm
d54a998dd8
Handle wlr_surface->events.new_subsurface
...
Add view-child.c, xdg-popup.c, subsurface.c in order to track damage
associated with new XDG subsurfaces.
2021-03-02 20:37:23 +00:00
Johan Malm
e0067536fc
view.c: refactor view_maximize()
2021-03-01 18:15:02 +00:00
Johan Malm
b616bb6842
maximize: choose output based on center of view
2021-03-01 17:59:09 +00:00
Johan Malm
be3fea0c1a
view.c: remember unmaximized geometry
2021-02-28 18:12:10 +00:00
Alex Bryan
5e7f2c91a3
Added basic maximize support for xdg and xwayland
2021-02-27 17:10:53 -05:00
Johan Malm
54804fd3df
Implement damage tracking
2021-01-09 22:51:20 +00:00
Johan Malm
cb44f047f3
Add view_move()
2020-12-23 18:52:46 +00:00
Johan Malm
e0770a5672
Refactor view_move_resize()
2020-12-22 20:35:06 +00:00
Johan Malm
16c3869fca
view_impl: add for_each_surface()
2020-09-29 20:48:50 +01:00
Johan Malm
96e05057a3
Update .clang-format
...
Align with wlroots style
2020-09-28 20:41:41 +01:00
Johan Malm
166ad6e1dc
Refactor header files
2020-09-25 20:25:45 +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
fb6f7d42a5
Add desktop.c
...
Move from view.c functions which work on server->views
2020-09-11 20:48:28 +01:00
Johan Malm
49e499d255
view: add functions view_{un,}minimize
2020-09-08 20:51:33 +01:00
Johan Malm
d782e48204
view: move xwayland sub-views to front on focus
2020-09-08 20:35:20 +01:00
Johan Malm
e99d0bb34e
labwc.h: remove "extern struct server server"
2020-09-08 20:18:12 +01:00
Johan Malm
db02ef86b1
view: read xwayland_surface->{w,h} in .commit
2020-09-07 20:08:55 +01:00
Johan Malm
afaf78aa72
view: refactor view_next()
2020-09-07 19:47:11 +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
bf3e4aa8d5
Add view_impl .map and .unmap
...
Hook up iconify button to view->impl->unmap
2020-09-03 21:05:00 +01:00
Johan Malm
b99977368d
view.c: simplify view_at()
2020-09-02 20:26:18 +01:00
Johan Malm
c56fe23b2e
Add struct view_impl
...
Support .configure
2020-09-02 20:20:52 +01:00
Johan Malm
a042aad9f6
xwl.c: only add surfaces to view-list on first map
...
X11 apps produce surfaces which are never mapped. Excluding these from
the view-list simplifices the code.
2020-08-31 08:33:23 +01:00
Johan Malm
4f96230ebf
view: add defence
2020-08-20 21:13:37 +01:00