Johan Malm
dd1663e627
theme: add menu.overlap.{x,y}
2021-11-08 17:36:39 +00:00
Johan Malm
cd31283ba3
menu: support inline submenus
...
...for example:
<menu id="root-menu" label="">
<menu id="submenu" label="submenu">
<item label="foo"></item>
</menu>
<item label="bar"></item>
</menu>
2021-11-08 17:20:37 +00:00
Johan Malm
b878db57a7
menu: support submenus
...
Support submenus defined as follows:
<menu id="submenu" label="Submenu">
<item label="item1.1"></item>
<item label="item1.2"></item>
</menu>
<menu id="root-menu" label="">
<menu id="submenu" />
<item label="item0"></item>
</menu>
2021-11-02 18:31:19 +00:00
ARDiDo
6b948c7106
mousebind: add support for more contexts and mouse events
2021-11-02 18:14:50 +00:00
Joshua Ashton
98085b4546
keyboard: Fix cycle view taking precedence over TTY switch
...
I had a bug where cycle view would not close and I was unable to switch to a TTY as it was open.
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2021-11-01 22:14:17 +00:00
Joshua Ashton
23b5eb294e
keyboard: Fix handled check
...
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2021-11-01 22:14:17 +00:00
ARDiDo
33e55dbc46
output: update layer surfaces on output geometry changes
2021-10-30 16:07:10 +01:00
ARDiDo
7730ece837
resistance: don't use gap value
2021-10-26 21:15:13 +01:00
ARDiDo
9d37860a40
resistance: update documentation + default strength value
2021-10-26 21:15:13 +01:00
ARDiDo
91a9f1dec9
resistance: remove bool, add resistance.h + license
2021-10-26 21:15:13 +01:00
ARDiDo
4d5b4be608
resistance: improve readability
2021-10-26 21:15:13 +01:00
ARDiDo
c4995d7bc2
resistance: fix meson.build
2021-10-26 21:15:13 +01:00
ARDiDo
ef78d40cb7
resistance: move strength.c to resistance.c
2021-10-26 21:15:13 +01:00
ARDiDo
8f8359597c
resistance: move to <resistance> node
2021-10-26 21:15:13 +01:00
ARDiDo
ac58ab10a7
resize resistance support
2021-10-26 21:15:13 +01:00
ARDiDo
a24e17dea7
Improve expandibility
2021-10-26 21:15:13 +01:00
ARDiDo
e1c8b3c641
Partial screen_edge_strength
2021-10-26 21:15:13 +01:00
Johan Malm
c48b9d44d1
config: add <core><adaptiveSync>
2021-10-22 20:23:09 +01:00
Johan Malm
d9253331cd
config: make capitalization consistent in rc.xml
2021-10-21 20:40:14 +01:00
Johan Malm
b1beab473c
cursor: do not crash on layer popup/subsurfaces
2021-10-21 20:37:30 +01:00
Joshua Ashton
95ce9e0264
keybind: Fix shift modifiers
...
Need to lower the syms for these to match!
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2021-10-21 18:15:42 +01:00
Johan Malm
174e82a608
layers: support popups
2021-10-20 22:32:46 +01:00
Johan Malm
08a54bd3f5
desktop: use correct coordinates layer_surface_at()
...
Use output coordinates rather than layout coordinates in order to
correctly handle pointer button event on multi-output setup.
2021-10-20 20:57:12 +01:00
Johan Malm
26454e3115
xwayland: clear wlr_xwayland_surface in handle_destroy
...
Avoids wlr_xwayland_surface becoming a dangling pointer if a view is not
destroyed immediately.
See swaywm/sway@215787e8
2021-10-20 20:34:47 +01:00
Joshua Ashton
8048f5f497
server: Expose viewporter
...
Needed for some games to fake modesets.
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2021-10-20 18:49:22 +01:00
Joshua Ashton
35e9d8cb35
output: Implement src box for viewporter
...
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2021-10-20 18:49:22 +01:00
Joshua Ashton
0a7f1b51f7
xwayland: Implement set_decorations
...
Fixes games going between borderless and normal windowed modes.
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2021-10-20 18:49:02 +01:00
Joshua Ashton
89f09567f5
xdg-deco: Respect decoration requests properly
...
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2021-10-20 18:49:02 +01:00
Joshua Ashton
60547cffe6
xdg: Set view in user data
...
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2021-10-20 18:49:02 +01:00
Joshua Ashton
a29ffebc40
xwayland: Set view in surface data
...
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2021-10-20 18:49:02 +01:00
ARDiDo
fffa912fd6
use closest wlr_output
2021-10-20 06:51:30 +01:00
ARDiDo
380b8b295a
clean up view_available_wlr_output
2021-10-20 06:51:30 +01:00
ARDiDo
08286a607f
improve view_output
2021-10-20 06:51:30 +01:00
Johan Malm
7398966661
config: change libinput variables to camelCase
...
This is more consistent with other rc.xml variables.
strcasecmp() is used in src/config/rc.xml, so there are not backward
compatibility issues.
2021-10-19 21:44:44 +01:00
Johan Malm
e7da5f21e9
view: fix build warning
2021-10-18 20:06:47 +01:00
Johan Malm
806fdb08bd
view: add view_get_string_prop()
2021-10-18 20:01:10 +01:00
Johan Malm
cf1bd67ec1
foreign: remove unnecessary view_update_title()
...
View update title is called from view_impl_map() which is enough
2021-10-18 19:40:04 +01:00
Johan Malm
40da2f34a5
view: check view->impl functions exist before using
...
Avoids segfault when using disappearing notification in Thunderbird
2021-10-18 19:35:41 +01:00
Joshua Ashton
846ccb9eb9
action: Implement shift to go backwards in OSD
...
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2021-10-18 17:28:34 +01:00
Joshua Ashton
d8a499deaa
config: Fix RaiseOnFocus always setting FollowMouse
...
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2021-10-18 17:25:08 +01:00
Joshua Ashton
22d10497ca
view: Add 'center' option to SnapToEdge
...
Similar to fullscreen, but not a separate state, and with gaps.
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2021-10-17 23:24:36 +01:00
Joshua Ashton
95f583ba6b
cursor: Don't trigger cursor modifiers if we have a constraint
...
We are probably playing a game and we don't want to be resizing the window when trying to duck/jump whatever.
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2021-10-17 23:23:39 +01:00
Joshua Ashton
398cad692d
cursor: Fix modifier button check
...
Previously any modifier would trigger this due to &ing the wrong value.
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2021-10-17 23:23:39 +01:00
Joshua Ashton
7e4e579c37
cursor: Handle absolute motion for relative_pointer
...
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2021-10-17 23:21:27 +01:00
ARDiDo
f5072151a9
add pointer constraints
2021-10-17 22:32:25 +01:00
Johan Malm
bd1e6f3728
view: set inter-view gap correctly in SnapToEdge
...
When arranging views side-by-side or above-below using SnapToEdge, the gap
between views should be rc.gap rather than 2x rc.gap
2021-10-17 22:23:00 +01:00
Johan Malm
526fb1668c
config: use super+arrow for SnapToEdge by default
2021-10-17 21:30:48 +01:00
Joshua Ashton
8b8e37c268
theme: Implement window.label.text.justify
...
Crosses off 6.12.1
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2021-10-17 20:50:13 +01:00
Joshua Ashton
140c245880
xdg: Respect min/max size in configure
...
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2021-10-17 19:49:05 +01:00
Joshua Ashton
d9b021916a
xwayland: Handle min width/height in configure
...
Signed-off-by: Joshua Ashton <joshua@froggi.es>
2021-10-17 19:49:05 +01:00