Johan Malm
2143f4bf19
theme: handle keys case-insensitively
...
...because this is what openbox does and some themes have capital
letters in places
2021-09-24 21:19:19 +01:00
Johan Malm
69e236932e
Fix coding style in output.c and xbm/tokenize.c
2021-09-24 20:56:44 +01:00
Johan Malm
0413d7fa9a
cursor: make cursor_motion() static
2021-09-24 20:53:22 +01:00
Johan Malm
329ca691da
layer-shell: chase wlr_layer_surface refactor
2021-09-24 20:51:12 +01:00
Johan Malm
97e8cb45ec
config: remove comment describing simple code
2021-09-22 20:36:55 +01:00
Johan Malm
e1c1b4544d
config: remove is_attribute
...
Simplify code, by removing the ability to differentiate between
attributes and sub-elements when creating node names. For example,
the following two examples would generate the nodename `bar.foo`
- <bar><foo></foo></bar>
- <bar foo="">
In theory, there could be clashes, but I think in reality it is unlikely.
There are no clashes in openbox-spec and it would be pretty confusing to
have something like:
<font name="">
<name></name>
</font>
2021-09-22 20:25:57 +01:00
Johan Malm
cce3c8cda0
src/: fix coding style
2021-09-21 22:05:56 +01:00
Johan Malm
d11643bea5
xdg: chase wlr_xdg_toplevel refactor (issue #64 )
2021-09-21 21:20:58 +01:00
Johan Malm
639660883b
keyboard.c: fix bug in 864746 (exit cycle-view with any modifier key)
...
Always call wlr_seat_keyboard_notify_modifiers() in
keyboard_modifiers_notify()
2021-09-20 22:42:03 +01:00
Johan Malm
119ef87373
s/focused_view()/desktop_focused_view()
2021-09-20 22:12:34 +01:00
Johan Malm
e4b51fc5e8
desktop.c: make topmost_mapped_view() private
2021-09-20 22:07:19 +01:00
bi4k8
815cd4aa46
define focused_view function and use it for keyboard actions
2021-09-20 21:14:24 +01:00
bi4k8
a15a56bfe1
implement Iconify action
2021-09-20 21:14:24 +01:00
bi4k8
b7cce58f56
implement ToggleDecorations and ToggleFullscreen actions
2021-09-20 21:14:24 +01:00
gituser
3d15444b3a
xdg: updates from wlroots master
2021-09-12 13:28:44 +01:00
Johan Malm
39b9133cec
rcxml: refactor load_default_key_bindings()
2021-09-06 22:04:56 +01:00
Johan Malm
b5acf387b8
rcxml: set default mousebind
...
...if none specified by the user in ~/.config/labwc/rc.xml
2021-09-06 22:02:02 +01:00
Johan Malm
62d93d54c5
rcxml: refactor mousebind implementation
2021-09-06 21:54:00 +01:00
alexander bryan
1ac654f006
Apply coding std to <mouse> code & add .clang-format
...
The files:
include/config/mousebind.h
src/config/mousebind.c
src/config/rc.xml
were formatted automatically via clang-format using the rules specified
in the .clang-format file. Specifically, the command;
clang-format -i -style=file include/config/mousebind.h \
src/config/mousebind.c src/config/rc.xml
This is unfortunately adding a break before the brace in enum
declarations
2021-09-01 07:05:37 +01:00
alexander bryan
10a685a0e4
refactor <mouse> xml parsing to match rest of xml parsing
2021-09-01 07:05:37 +01:00
alex
92891b4dfa
change mousebind code to use already existing enums
...
Also added an #include statement to ssd.h so it would compile without
depending on other headers to be #included before it
2021-09-01 07:05:37 +01:00
alex
36f5b49f2a
Implemented <doubleClickTime> in rc.xml
2021-09-01 07:05:37 +01:00
alex
dfdb4e4b0e
First implemenation of <mouse> in rc.xml
...
Can successfully parse the following XML and and implement the action:
<mouse>
<context name="TitleBar">
<mousebind button="Left" action="DoubleClick">
<action name="ToggleMaximize"/>
</mousebind>
</context>
</mouse>
The XML parsing code for this looks A LOT different than the already
existing XML parsing code. It may have to be reworked
2021-09-01 07:05:37 +01:00
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
Daniel Barlow
a719a7681f
don't send any key events to clients when osd onscreen
2021-08-28 20:37:34 +01:00
Daniel Barlow
c456e85e2f
reindent for sircmpwn style
2021-08-28 19:05:19 +01:00
Daniel Barlow
431da3ed0e
Merge branch 'master' of github.com:johanmalm/labwc into dehardcode-window-cycle-key
2021-08-28 18:52:45 +01:00
Daniel Barlow
864746e573
fix cycle_view for bindings other than Alt_L
...
Change the code that detects when to stop cycling the view,
so that instead of looking for the left Alt key release it
looks for all modifiers released (thus. will work whether you
have this action bound to Alt-Tab, C-Tab, Meta-Tab, etc)
To do this we move the test from keyboard_key.notify to
the later signal keyboard_modifiers.notify, because the xkb_state
has been updated by then and the modifier state will be
accurate
2021-08-28 18:42:18 +01:00
Johan Malm
ea3ea49783
Fix more coding style violations
2021-08-25 20:45:39 +01:00
Johan Malm
a9042e3cde
Fix coding style following 824282dd
2021-08-25 19:59:49 +01:00
Johan Malm
824282dd2e
Merge pull request #54 from telent/lockdown
...
implement input_inhibit protocol, needed for swaylock
2021-08-24 21:56:13 +01:00
Johan Malm
7bfe350f25
view: fix impl->set_fullscreen() argument bug
2021-08-24 21:53:20 +01:00
Daniel Barlow
ab9838888d
implement commented-out bit in seat_disinhibit_input
2021-08-24 21:24:08 +01:00
Johan Malm
645a8e46a6
Support fullscreen mode (issue #53 )
2021-08-23 22:05:30 +01:00
Daniel Barlow
eb2d0918ba
cleanup per PR review comments
2021-08-23 20:33:42 +01:00
Daniel Barlow
39b1d92f9b
implement input_inhibit protocol, needed for swaylock
...
this is in "it appears to work" state, though I blindly copy-pasted a little
more code than I'm happy with, so might benefit from a review
2021-08-22 21:30:42 +01:00
Johan Malm
5563cd1b20
foreign: handle output error gracefully
2021-08-22 19:14:15 +01:00
Johan Malm
b7573c8d36
rcxml: load default keybinds on <keyboard><default />
...
This is an addition to the openbox specification and provides a way to
keep config files simpler whilst allowing user-specific keybinds.
docs/rc.xml shows a simple config file with <default />
docs/rc.xml.full shows the full config
2021-08-22 19:09:31 +01:00
Johan Malm
93244cfbe1
rcxml: add some default keybinds
...
super-return - alacritty
alt-F4 - close window
super-a - toggle maximize
alt-arrow - move window to edge
2021-08-22 17:00:22 +01:00
Johan Malm
0aee42473b
view: update title width when resizing view
2021-08-22 14:35:34 +01:00
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
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
8c96c65018
ssd: refactor in preparation for making ssd_visible_box() private
...
Prepare to move code from output/render functions to ssd. We want
rendering functions to just render, not calculate decoration geometry
and such like.
2021-08-22 14:12:05 +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
ec5603dbd0
Merge pull request #49 from telent/primary-selection-gtk-workaround
...
workaround Gtk primary selection bug by changing order of globals
2021-08-21 11:38:22 +01:00
Johan Malm
c13a520673
ssd: handle font texture creation when view->width not yet set
2021-08-21 11:16:15 +01:00
Daniel Barlow
44082ad80a
workaround Gtk primary selection bug by changing order of globals
...
This makes primary selections work at least with Emacs (pgtk backend)
and Firefox. I haven't tested others.
2021-08-21 00:17:15 +01:00
Johan Malm
3990018bb9
config: support setting menu item font
...
In rc.xml, support
<font place="MenuItem">
<name></name>
<size></size>
</font>
2021-08-20 20:27:52 +01:00
Johan Malm
a668f6f73d
font: font_texture_create() support font size argument
2021-08-20 20:20:49 +01:00
Daniel Barlow
804384368c
add support for primary selection
2021-08-18 23:42:56 +01:00