Commit graph

347 commits

Author SHA1 Message Date
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
Johan Malm
44d8245cfc src/view.c: focus_view() handle xwayland children 2020-08-19 20:47:49 +01:00
Johan Malm
40c606a78d src/view.c: refactor is_toplevel() 2020-08-19 20:27:28 +01:00
Johan Malm
c6c73366d2 view: is_toplevel() deal with !view 2020-08-12 19:44:54 +01:00
Johan Malm
ff03f1d6aa src/view.c: refactor 2020-08-07 20:39:11 +01:00
Johan Malm
042c157378 Track server-side-decoration per view 2020-08-06 14:51:45 +01:00
Johan Malm
44df6c896d view.c: tweak view_want_deco() 2020-08-05 20:54:15 +01:00
Johan Malm
7440919452 Add action.c 2020-06-18 20:18:01 +01:00
Johan Malm
5bd55570ba src/output.c: support theme.window_inactive_title_bg_color 2020-06-15 21:44:57 +01:00
Johan Malm
49d2e029aa view.c: next_toplevel(): handle NULL pointer 2020-06-10 16:48:25 +01:00
Johan Malm
6166e9b370 Read rc.xml and begin parsing 2020-06-05 23:04:54 +01:00
Johan Malm
6e0d11bff5 Adjust xdg-shell view position on first map 2020-06-01 19:42:15 +01:00
Johan Malm
bcdd553477 view.c: enable deco on xdg-shell views 2020-06-01 07:07:09 +01:00
Johan Malm
c07acc9ee6 Add deco parts top, right and bottom 2020-05-30 21:28:17 +01:00
Johan Malm
d28465dfc3 Put code in src/ and include/ 2020-05-27 14:29:05 +01:00
Renamed from view.c (Browse further)