Johan Malm
e400700a4a
seat: refactor seat_focus_surface()
2020-10-06 21:31:01 +01:00
Johan Malm
50bcfa00f3
seat: use wlr_seat_keyboard_notify_enter() correctly
2020-10-05 20:27:52 +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
53b360dd11
Tiny .clang-format tweak
2020-09-28 21:35:18 +01:00
Johan Malm
adf0f70a04
mv dbg.c osd.c
2020-09-28 20:59:38 +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
5351299cdd
xdg: only position topmost view
2020-09-25 20:22:18 +01:00
Johan Malm
33d02aa83e
action: fix build warning
2020-09-25 20:05:20 +01:00
Johan Malm
1721b339da
Reload config+theme on SIGHUP
2020-09-25 19:42:40 +01:00
Johan Malm
745915c0ba
action: refactor action()
2020-09-25 19:37:51 +01:00
Johan Malm
60f9624a19
server: support screen recording
...
Works with wf-recorder
2020-09-21 19:54: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
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
5a77c84fc8
Split theme-builtin.c into a separate file
2020-09-15 20:01:41 +01:00
Johan Malm
4a89fbfb22
Improve log messages for reading config+theme
2020-09-14 18:17:36 +01:00
Johan Malm
35015e57c6
view: remove view_hasfocus()
2020-09-14 17:42:39 +01:00
Johan Malm
c90923a20c
desktop: handle minimized views better
2020-09-14 17:35:44 +01:00
Johan Malm
92f6afdf65
rcxml: amend default keybinds
...
A-F2 to cycle view
A-F3 to launch dmenu_run
2020-09-11 20:51:25 +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
5181a0ac52
log: simplify info message
2020-09-10 22:26:10 +01:00
Johan Malm
0b834c2efa
output: draw openbox style view-cycle border
2020-09-10 22:25:26 +01:00
Johan Malm
c0a807765e
rcxml: remove invalid keybind
2020-09-09 18:58:02 +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
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
afaf78aa72
view: refactor view_next()
2020-09-07 19:47:11 +01:00
Johan Malm
b8fd4fed53
xwayland.c: add view to list in new/destroy
2020-09-07 19:34: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
d831743b25
xdg,xwl: rename functions
2020-09-03 21:40:27 +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
b2504bdf9a
keybind: s/add/create/
2020-09-02 21:05:28 +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
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
d9b1d24919
mv dbg.c ..
2020-08-31 20:04:47 +01:00
Johan Malm
fd8d9a395d
mv xbm/ ..
2020-08-31 20:01:08 +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
7afc189c06
common/dir.c: do not include openbox/ dirs
...
It is better to be explicit with config files and only using those
specifically intended for labwc. Whilst compatibility with openbox is
intended, there are areas where it just doesn't make sense to include
settings intended for openbox, for example in the case of
$HOME/.config/openbox/autostart
With built-in icons and theme/config settings, it should be easy for new
users to get started without spending time on config files anyway.
2020-08-31 08:17:34 +01:00