]>
git.mdlowis.com Git - proto/labwc.git/log
Joshua Ashton [Sun, 17 Oct 2021 22:00:54 +0000 (22:00 +0000)]
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>
Joshua Ashton [Sun, 17 Oct 2021 21:57:10 +0000 (21:57 +0000)]
cursor: Handle absolute motion for relative_pointer
Signed-off-by: Joshua Ashton <joshua@froggi.es>
ARDiDo [Sun, 17 Oct 2021 20:54:35 +0000 (16:54 -0400)]
add pointer constraints
Johan Malm [Sun, 17 Oct 2021 21:23:00 +0000 (22:23 +0100)]
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
Johan Malm [Sun, 17 Oct 2021 20:36:32 +0000 (21:36 +0100)]
README: add link to yambar
Both labwc and yambar were patched today to better handle
foreign-toplevel protocol and now work well together.
Johan Malm [Sun, 17 Oct 2021 20:36:06 +0000 (21:36 +0100)]
README: add super+arrow keybinds
Johan Malm [Sun, 17 Oct 2021 20:31:44 +0000 (21:31 +0100)]
rc.xml.all: add super+arrow keybinds
Johan Malm [Sun, 17 Oct 2021 20:30:48 +0000 (21:30 +0100)]
config: use super+arrow for SnapToEdge by default
Johan Malm [Sun, 17 Oct 2021 20:27:25 +0000 (21:27 +0100)]
labwc-actions(5): add SnapToEdge
Johan Malm [Sun, 17 Oct 2021 20:05:57 +0000 (21:05 +0100)]
build: replace deprecated get_pkgconfig_variable()
Use get_variable(pkgconfig: ...) instead of get_pkgconfig_variable(...)
Johan Malm [Sun, 17 Oct 2021 19:52:29 +0000 (20:52 +0100)]
labwc-theme(5): add window.label.text.justify
In support of labwc@
8b8e37c2
Joshua Ashton [Sun, 17 Oct 2021 19:12:06 +0000 (19:12 +0000)]
theme: Implement window.label.text.justify
Crosses off 6.12.1
Signed-off-by: Joshua Ashton <joshua@froggi.es>
Joshua Ashton [Sun, 17 Oct 2021 18:37:55 +0000 (18:37 +0000)]
xdg: Respect min/max size in configure
Signed-off-by: Joshua Ashton <joshua@froggi.es>
Joshua Ashton [Sun, 17 Oct 2021 18:34:49 +0000 (18:34 +0000)]
xwayland: Handle min width/height in configure
Signed-off-by: Joshua Ashton <joshua@froggi.es>
Joshua Ashton [Sun, 17 Oct 2021 18:32:27 +0000 (18:32 +0000)]
cursor: Handle min size better
Less janky than just returning if one extent reaches max, and also uses the new min_size function for xwayland hint support.
Signed-off-by: Joshua Ashton <joshua@froggi.es>
Joshua Ashton [Sun, 17 Oct 2021 18:37:25 +0000 (18:37 +0000)]
include: Add min/max helpers
Signed-off-by: Joshua Ashton <joshua@froggi.es>
Joshua Ashton [Sun, 17 Oct 2021 18:31:53 +0000 (18:31 +0000)]
view: Add view_min_size helper function
Signed-off-by: Joshua Ashton <joshua@froggi.es>
Joshua Ashton [Sun, 17 Oct 2021 17:12:51 +0000 (17:12 +0000)]
xwayland: Implement resize event
Signed-off-by: Joshua Ashton <joshua@froggi.es>
Joshua Ashton [Sun, 17 Oct 2021 17:11:41 +0000 (17:11 +0000)]
xwayland: Implement move event
Closes: #81
Signed-off-by: Joshua Ashton <joshua@froggi.es>
Joshua Ashton [Sun, 17 Oct 2021 01:39:19 +0000 (01:39 +0000)]
xwayland: Only perform top-left boundary check when using ssd
We don't have decorations so we shouldn't account for them.
Closes: #53
Signed-off-by: Joshua Ashton <joshua@froggi.es>
Joshua Ashton [Sun, 17 Oct 2021 01:14:01 +0000 (01:14 +0000)]
action: Fix crash in move to edge
Fixes a crash in move to edge ( #77 ) when the centre of the window is out of any display regions.
Doesn't fix the expected behaviour that it would work, but much better than the whole compositor dying.
Signed-off-by: Joshua Ashton <joshua@froggi.es>
Joshua Ashton [Sun, 17 Oct 2021 00:44:24 +0000 (00:44 +0000)]
action: Add 'SnapToEdge'
Implements snap-style edge snapping that works between multiple monitors.
Signed-off-by: Joshua Ashton <joshua@froggi.es>
Joshie [Sat, 16 Oct 2021 23:17:46 +0000 (23:17 +0000)]
theme: fix parsing inactive label colors
There was a typo here which meant these never got parsed and always appeared as black.
Signed-off-by: Joshua Ashton <joshua@froggi.es>
Johan Malm [Sat, 16 Oct 2021 20:50:56 +0000 (21:50 +0100)]
xdg/wayland-shell: handle set_app_id and set_class events
Johan Malm [Sat, 16 Oct 2021 20:26:57 +0000 (21:26 +0100)]
view: call wlr_foreign_toplevel_handle_v1_set_app_id() on map
Fix issue #74
Add view-impl.c with view_impl_map() containing common code for xdg-shell
and xwayland-shell.
Johan Malm [Sat, 16 Oct 2021 18:53:00 +0000 (19:53 +0100)]
desktop: remove deprecated functions
- set_activated()
- desktop_set_focus_view_only()
Johan Malm [Sat, 16 Oct 2021 18:44:54 +0000 (19:44 +0100)]
desktop: simplify interface for view raise/focus
Split desktop_focus_view() into the following two functions:
- desktop_focus_and_activate_view()
- desktop_raise_view()
Always call view_set_activated() rather than using the private
set_activated(). This keeps the code cleaner and ensures
wlr_foreign_toplevel_handle_v1_set_activated() is called.
Johan Malm [Sat, 16 Oct 2021 18:24:26 +0000 (19:24 +0100)]
view: add view_set_activated()
Call wlr_foreign_toplevel_handle_v1_set_activated() from it in support of
issue #73
Johan Malm [Fri, 15 Oct 2021 20:44:27 +0000 (21:44 +0100)]
theme: inherit osd colors if not set
Johan Malm [Fri, 15 Oct 2021 20:35:41 +0000 (21:35 +0100)]
theme: add window_(in)active_label_text_color
Support both active and inactive colors for titlebar text
Johan Malm [Fri, 15 Oct 2021 19:52:36 +0000 (20:52 +0100)]
Fix coding style, mostly whitespace
Johan Malm [Fri, 15 Oct 2021 19:33:55 +0000 (20:33 +0100)]
config: survive parsing error
It is no good crashing on an rc.xml syntax error, particularly on a
SIGHUP when the user could have applications open.
Johan Malm [Fri, 15 Oct 2021 18:14:07 +0000 (19:14 +0100)]
layer-shell: fix commit handler (issue #71)
On commit, do not arrange layers unless the layer shell-specific state
changed or the layer was (un)mapped.
Chase swaywm/sway@
5fd5d643 and swaywm/wlroots@
754f40f9
ARDiDo [Fri, 15 Oct 2021 16:27:52 +0000 (12:27 -0400)]
Fix build errors
ARDiDo [Fri, 15 Oct 2021 16:14:07 +0000 (12:14 -0400)]
Update labwc-config(5)
ARDiDo [Fri, 15 Oct 2021 14:26:00 +0000 (10:26 -0400)]
Complete libinput configuration
Johan Malm [Thu, 14 Oct 2021 18:37:57 +0000 (19:37 +0100)]
config: support audio and monitor keys by default
Add default keybinds:
XF86_AudioLowerVolume - amixer sset Master 5%-
XF86_AudioRaiseVolume - amixer sset Master 5%+
XF86_AudioMute - amixer sset Master toggle
XF86_MonBrightnessUp - brightnessctl set +10%
XF86_MonBrightnessDown - brightnessctl set 10%-
Johan Malm [Wed, 13 Oct 2021 20:36:26 +0000 (21:36 +0100)]
Update NEWS.md
Johan Malm [Wed, 13 Oct 2021 20:30:44 +0000 (21:30 +0100)]
buf.h: update documentation
Johan Malm [Wed, 13 Oct 2021 20:29:32 +0000 (21:29 +0100)]
theme: add osd colors
Johan Malm [Mon, 11 Oct 2021 21:31:38 +0000 (22:31 +0100)]
buf.c: handle variables with curly braces
In buf_expand_shell_variables(), corrently resolve ${foo}
rather than just $foo
Johan Malm [Mon, 11 Oct 2021 21:28:06 +0000 (22:28 +0100)]
buf.c: correctly handle unset environment variables
Johan Malm [Mon, 11 Oct 2021 21:15:44 +0000 (22:15 +0100)]
session: resolve variables in environment file
When parsing <key>=<value> pairs to set enrivonment variables,
resolve variables in <value>.
For example, resolve $bar in
foo=$bar
Fix issue #70
ARDiDo [Sun, 10 Oct 2021 16:03:18 +0000 (12:03 -0400)]
Reconfigure inputs
ARDiDo [Sat, 9 Oct 2021 19:16:02 +0000 (15:16 -0400)]
keyboard repeat configuration
ARDiDo [Sat, 9 Oct 2021 13:10:26 +0000 (09:10 -0400)]
partial libinput configuration
Johan Malm [Mon, 4 Oct 2021 05:24:34 +0000 (06:24 +0100)]
Merge branch 'master' of https://github.com/johanmalm/labwc
ARDiDo [Sun, 3 Oct 2021 20:19:42 +0000 (16:19 -0400)]
fix build errors
ARDiDo [Sun, 3 Oct 2021 18:21:32 +0000 (14:21 -0400)]
drag across monitor
ARDiDo [Sun, 3 Oct 2021 17:33:38 +0000 (13:33 -0400)]
implement basic drag and drop
Johan Malm [Sat, 25 Sep 2021 09:04:37 +0000 (10:04 +0100)]
s/desktop_view_at()/desktop_surface_and_view_at()/
Make is clearer what the function does.
Johan Malm [Sat, 25 Sep 2021 08:40:23 +0000 (09:40 +0100)]
desktop: desktop_view_at() set *surface correnctly
Bug introduced in 23107
Johan Malm [Sat, 25 Sep 2021 07:37:24 +0000 (08:37 +0100)]
desktop: fix pointer de-reference typo
Bug introduced in 23107
Johan Malm [Fri, 24 Sep 2021 21:14:04 +0000 (22:14 +0100)]
Fix coding style
Johan Malm [Fri, 24 Sep 2021 21:13:35 +0000 (22:13 +0100)]
desktop.c: fix typo to compile
Johan Malm [Fri, 24 Sep 2021 21:04:47 +0000 (22:04 +0100)]
Simplify desktop_view_at()
Johan Malm [Fri, 24 Sep 2021 21:04:03 +0000 (22:04 +0100)]
Fix coding style
Johan Malm [Fri, 24 Sep 2021 20:58:46 +0000 (21:58 +0100)]
session.c: change "(foo*)" to "(foo *)"
Johan Malm [Fri, 24 Sep 2021 20:45:48 +0000 (21:45 +0100)]
*.c: add SPDX-License-Identifier
Johan Malm [Fri, 24 Sep 2021 20:28:16 +0000 (21:28 +0100)]
ssd: refactor vertical center alignment
Johan Malm [Fri, 24 Sep 2021 20:26:31 +0000 (21:26 +0100)]
theme: handle border.color for backward compatibility
Johan Malm [Fri, 24 Sep 2021 20:19:19 +0000 (21:19 +0100)]
theme: handle keys case-insensitively
...because this is what openbox does and some themes have capital
letters in places
Johan Malm [Fri, 24 Sep 2021 19:57:11 +0000 (20:57 +0100)]
Add .editorconfig
Johan Malm [Fri, 24 Sep 2021 19:56:44 +0000 (20:56 +0100)]
Fix coding style in output.c and xbm/tokenize.c
Johan Malm [Fri, 24 Sep 2021 19:53:22 +0000 (20:53 +0100)]
cursor: make cursor_motion() static
Johan Malm [Fri, 24 Sep 2021 19:51:12 +0000 (20:51 +0100)]
layer-shell: chase wlr_layer_surface refactor
Johan Malm [Wed, 22 Sep 2021 19:36:55 +0000 (20:36 +0100)]
config: remove comment describing simple code
Johan Malm [Wed, 22 Sep 2021 19:25:57 +0000 (20:25 +0100)]
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>
Johan Malm [Wed, 22 Sep 2021 19:24:02 +0000 (20:24 +0100)]
labwc.h: fix coding style
Johan Malm [Wed, 22 Sep 2021 19:21:00 +0000 (20:21 +0100)]
build: remove scdoc stdin/stdout hack
From version 0.59.0, meson supports feeding the input file as stdin.
See sway@
9727db67
Johan Malm [Wed, 22 Sep 2021 19:14:11 +0000 (20:14 +0100)]
ci: add actions/checkout@v2 to main.yml
Johan Malm [Tue, 21 Sep 2021 21:05:56 +0000 (22:05 +0100)]
src/: fix coding style
Johan Malm [Tue, 21 Sep 2021 20:49:31 +0000 (21:49 +0100)]
Add CI
Johan Malm [Tue, 21 Sep 2021 20:20:58 +0000 (21:20 +0100)]
xdg: chase wlr_xdg_toplevel refactor (issue #64)
Johan Malm [Mon, 20 Sep 2021 21:42:03 +0000 (22:42 +0100)]
keyboard.c: fix bug in 864746 (exit cycle-view with any modifier key)
Always call wlr_seat_keyboard_notify_modifiers() in
keyboard_modifiers_notify()
Johan Malm [Mon, 20 Sep 2021 21:12:34 +0000 (22:12 +0100)]
s/focused_view()/desktop_focused_view()
Johan Malm [Mon, 20 Sep 2021 21:07:19 +0000 (22:07 +0100)]
desktop.c: make topmost_mapped_view() private
Johan Malm [Mon, 20 Sep 2021 21:01:47 +0000 (22:01 +0100)]
labwc-actions(5): add ToggleFullscreen, ToggleDecorations, Iconfiy
Johan Malm [Mon, 20 Sep 2021 20:45:28 +0000 (21:45 +0100)]
NEWS.md: add notes in preparation for next release
bi4k8 [Sun, 19 Sep 2021 22:20:54 +0000 (22:20 +0000)]
define focused_view function and use it for keyboard actions
bi4k8 [Sun, 19 Sep 2021 22:17:45 +0000 (22:17 +0000)]
implement Iconify action
bi4k8 [Sun, 19 Sep 2021 22:16:56 +0000 (22:16 +0000)]
implement ToggleDecorations and ToggleFullscreen actions
gituser [Sun, 12 Sep 2021 10:11:32 +0000 (12:11 +0200)]
xdg: updates from wlroots master
frogtile [Thu, 9 Sep 2021 17:42:23 +0000 (23:42 +0600)]
rc.xml.all: Fix typo
match with default config
Johan Malm [Mon, 6 Sep 2021 21:16:19 +0000 (22:16 +0100)]
labwc-config(5): add mouse section
Johan Malm [Mon, 6 Sep 2021 21:09:59 +0000 (22:09 +0100)]
docs/rc.xml.all: set doubleClickTime default to 500
Johan Malm [Mon, 6 Sep 2021 21:07:46 +0000 (22:07 +0100)]
docs/rc.xml: explain purpose & remove <mouse> element
Johan Malm [Mon, 6 Sep 2021 21:04:56 +0000 (22:04 +0100)]
rcxml: refactor load_default_key_bindings()
Johan Malm [Mon, 6 Sep 2021 21:02:02 +0000 (22:02 +0100)]
rcxml: set default mousebind
...if none specified by the user in ~/.config/labwc/rc.xml
Johan Malm [Mon, 6 Sep 2021 20:54:00 +0000 (21:54 +0100)]
rcxml: refactor mousebind implementation
notthewave [Wed, 1 Sep 2021 10:03:12 +0000 (12:03 +0200)]
Specify GPL-2.0-only
alexander bryan [Tue, 31 Aug 2021 21:43:49 +0000 (17:43 -0400)]
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
alexander bryan [Tue, 31 Aug 2021 02:03:41 +0000 (22:03 -0400)]
refactor <mouse> xml parsing to match rest of xml parsing
alex [Mon, 30 Aug 2021 22:42:38 +0000 (18:42 -0400)]
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
alex [Sun, 29 Aug 2021 22:31:57 +0000 (18:31 -0400)]
Implemented <doubleClickTime> in rc.xml
Alex Bryan [Sun, 29 Aug 2021 21:10:21 +0000 (17:10 -0400)]
Updated default/example rc.xml w/ first <mouse> implementation
alex [Sun, 29 Aug 2021 18:22:49 +0000 (14:22 -0400)]
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
Daniel Barlow [Sun, 29 Aug 2021 11:56:14 +0000 (12:56 +0100)]
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
Johan Malm [Sun, 29 Aug 2021 09:13:13 +0000 (10:13 +0100)]
Merge pull request #55 from telent/dehardcode-window-cycle-key
fix cycle_view for bindings other than Alt_L
Daniel Barlow [Sat, 28 Aug 2021 19:37:34 +0000 (20:37 +0100)]
don't send any key events to clients when osd onscreen