Commit graph

52 commits

Author SHA1 Message Date
Johan Malm
a81b405150 output.c: define _POSIX_C_SOURCE (issue #4) 2020-10-15 21:03:04 +01:00
Johan Malm
500ebaee4a include/labwc.h: add <sys/time.h> (issue #4) 2020-10-14 21:17:20 +01:00
Johan Malm
9342b2b414 seat: refactor seat_focus_surface() 2020-10-08 20:22:52 +01:00
Johan Malm
f752610e0b desktop: refactor desktop_focus_view() 2020-10-08 20:08:41 +01:00
Johan Malm
8e2b3ea89a seat: remove seat_focused_surface() 2020-10-07 21:49:58 +01:00
Johan Malm
e400700a4a seat: refactor seat_focus_surface() 2020-10-06 21:31:01 +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
581f4ea0c3 s/BUG_ON/assert/ 2020-09-28 20:53:59 +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
33d02aa83e action: fix build warning 2020-09-25 20:05:20 +01:00
Johan Malm
745915c0ba action: refactor action() 2020-09-25 19:37:51 +01:00
Johan Malm
3c90cb7945 desktop: focus next 'mapped' view on minimize 2020-09-18 20:28:48 +01:00
Johan Malm
b46fa5e006 xwayland: constrain view to top/left edge 2020-09-17 21:11:54 +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
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
e99d0bb34e labwc.h: remove "extern struct server server" 2020-09-08 20:18:12 +01:00
Johan Malm
afaf78aa72 view: refactor view_next() 2020-09-07 19:47:11 +01:00
Johan Malm
8846998b75 mv xwl.c xwayland.c 2020-09-04 20:32:41 +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
97c29987e2 deco.c: add enum end-marker 2020-09-02 21:04:31 +01:00
Johan Malm
625722cb66 Add view_impl .close 2020-09-02 21:00:28 +01:00
Johan Malm
c56fe23b2e Add struct view_impl
Support .configure
2020-09-02 20:20:52 +01:00
Johan Malm
127eddfd96 Handle commit signal
wlr_surface can change during xwayland map/unmap, so let's only update
view width and height after commit signal has been received.
2020-08-31 08:12:44 +01:00
Johan Malm
a72c40a6b4 Move xwl_nr_parents() 2020-08-20 21:13:04 +01:00
Johan Malm
649437e336 include/: tidy up header files 2020-08-07 20:21:14 +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
Johan Malm
f7fa28ab42 Render close, iconify and maximize buttons 2020-07-06 21:58:51 +01:00
Johan Malm
baca410560 Render window close button 2020-06-29 19:27:59 +01:00
Johan Malm
f6578248c0 src/keybind.c: move keybind_print() to dbg.c 2020-06-18 20:39:55 +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
6166e9b370 Read rc.xml and begin parsing 2020-06-05 23:04:54 +01:00
Johan Malm
fdc131049c server.c: minor refactoring 2020-06-05 21:07:57 +01:00
Johan Malm
af11ef771a Refactor main.c and server.c
Create server_{init,start,finish} functions.
2020-06-03 18:39:46 +01:00
Johan Malm
6e0d11bff5 Adjust xdg-shell view position on first map 2020-06-01 19:42:15 +01:00
Johan Malm
0eb64a29aa labwc.h: remove unnecessary function definitions 2020-06-01 07:08:55 +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
a6ac2a0439 Minor style fixes 2020-05-29 22:26:16 +01:00
Johan Malm
298d869092 Move server_new_output() to output.c 2020-05-29 22:18:03 +01:00
Johan Malm
bc5accb089 Rename some {cursor,keyboard}_ functions 2020-05-29 22:10:41 +01:00
Johan Malm
aa294330ea Add keyboard.c 2020-05-29 21:44:50 +01:00