]> git.mdlowis.com Git - proto/labwc.git/log
proto/labwc.git
4 years agoAdd simple foreign toplevel implementation
Johan Malm [Thu, 5 Aug 2021 11:18:10 +0000 (12:18 +0100)]
Add simple foreign toplevel implementation

4 years agoview: initialise x+y variables to handle edge case
Johan Malm [Wed, 4 Aug 2021 20:43:07 +0000 (21:43 +0100)]
view: initialise x+y variables to handle edge case

4 years agocursor: handle double click on title
Johan Malm [Mon, 2 Aug 2021 16:30:34 +0000 (17:30 +0100)]
cursor: handle double click on title

4 years agoview: add view_toggle_maximize()
Johan Malm [Mon, 2 Aug 2021 15:49:41 +0000 (16:49 +0100)]
view: add view_toggle_maximize()

4 years agoserver: add missing header file
Johan Malm [Mon, 2 Aug 2021 15:45:49 +0000 (16:45 +0100)]
server: add missing header file

4 years agoserver: update ssd on re-configure
Johan Malm [Fri, 30 Jul 2021 18:42:56 +0000 (19:42 +0100)]
server: update ssd on re-configure

4 years agocursor: simplify process_cursor_motion()
Johan Malm [Fri, 30 Jul 2021 13:26:54 +0000 (14:26 +0100)]
cursor: simplify process_cursor_motion()

...by using wlr_xcursor_get_resize_name() instead of handling each
'resize_edge' case.

4 years agossd: add support for interacting with bottom corners
Johan Malm [Mon, 26 Jul 2021 19:37:36 +0000 (20:37 +0100)]
ssd: add support for interacting with bottom corners

4 years agossd: add ssd_interactive_box()
Johan Malm [Mon, 26 Jul 2021 19:06:52 +0000 (20:06 +0100)]
ssd: add ssd_interactive_box()

...which is used by desktop_view_at() and ssd_at() to determine which
decoration part is under the cursor.

ssd_interactive_box() allows deocoration parts to extend outside the
visible regions, and therefore supports a wider 'resize-edges' area than
the border itself.

4 years agoRemove src/common/log.c
Johan Malm [Fri, 23 Jul 2021 20:15:55 +0000 (21:15 +0100)]
Remove src/common/log.c

Use wlr_log() instead

4 years agoRemove info() and die()
Johan Malm [Thu, 22 Jul 2021 20:30:17 +0000 (21:30 +0100)]
Remove info() and die()

4 years agoxdg: use "usable_area" when positioning view
Johan Malm [Wed, 21 Jul 2021 21:04:54 +0000 (22:04 +0100)]
xdg: use "usable_area" when positioning view

4 years agoHandle alt + cursor button outside view
Johan Malm [Wed, 21 Jul 2021 18:27:11 +0000 (19:27 +0100)]
Handle alt + cursor button outside view

4 years agoview.c: assign struct rather than using memcpy
Johan Malm [Wed, 21 Jul 2021 18:25:34 +0000 (19:25 +0100)]
view.c: assign struct rather than using memcpy

Suggested-by: @xerpi
4 years agotheme: reset theme values on reconfigure
Johan Malm [Tue, 20 Jul 2021 20:27:41 +0000 (21:27 +0100)]
theme: reset theme values on reconfigure

4 years agoAdd view_move_to_edge() to header file
Johan Malm [Tue, 20 Jul 2021 19:24:39 +0000 (20:24 +0100)]
Add view_move_to_edge() to header file

4 years agoUpdate man pages
Johan Malm [Tue, 20 Jul 2021 19:06:48 +0000 (20:06 +0100)]
Update man pages

4 years agoview: remove duplicate code
Johan Malm [Tue, 20 Jul 2021 19:06:26 +0000 (20:06 +0100)]
view: remove duplicate code

4 years agoaction: add 'MoveToEdge'
Johan Malm [Tue, 20 Jul 2021 18:54:57 +0000 (19:54 +0100)]
action: add 'MoveToEdge'

Currently only moves view to edges of outputs

Example keybind:

<keybind key="A-Left">
  <action name="MoveToEdge">
    <direction>left</direction>
  </action>
</keybind>

4 years agoview: add view_output() and view_wlr_output()
Johan Malm [Tue, 20 Jul 2021 18:40:37 +0000 (19:40 +0100)]
view: add view_output() and view_wlr_output()

4 years agorcxml: allow <theme><font> without place="" attribute
Johan Malm [Mon, 19 Jul 2021 19:46:32 +0000 (20:46 +0100)]
rcxml: allow <theme><font> without place="" attribute

The construct below will set the font for all supported places. Currently
that's only ActiveWindow, but is likely to include InactiveWindow,
MenuHeader, MenuItem and OnScreenDisplay at some point.

<theme>
  <font>
    <name></name>
    <size></size>
  </font>
</theme>

4 years agorcxml.c: survive incorrect keybind
Johan Malm [Mon, 19 Jul 2021 06:07:33 +0000 (07:07 +0100)]
rcxml.c: survive incorrect keybind

4 years agodesktop: handle missing output safely
Johan Malm [Mon, 19 Jul 2021 06:06:36 +0000 (07:06 +0100)]
desktop: handle missing output safely

4 years agobuild: bump wlroots dependency version number
Johan Malm [Fri, 16 Jul 2021 18:58:22 +0000 (19:58 +0100)]
build: bump wlroots dependency version number

4 years agodocs/rc.xml: comply with new syntax
Johan Malm [Fri, 16 Jul 2021 17:18:09 +0000 (18:18 +0100)]
docs/rc.xml: comply with new syntax

4 years agorcxml: change <lab><xdg_shell_server_side_deco> to <core><decoration>
Johan Malm [Fri, 16 Jul 2021 16:38:17 +0000 (17:38 +0100)]
rcxml: change <lab><xdg_shell_server_side_deco> to <core><decoration>

4 years agorcxml: use root-node <labwc_config>
Johan Malm [Fri, 16 Jul 2021 16:30:07 +0000 (17:30 +0100)]
rcxml: use root-node <labwc_config>

4 years agoMove corner textures from ssd.c to theme.c
Johan Malm [Fri, 16 Jul 2021 16:07:00 +0000 (17:07 +0100)]
Move corner textures from ssd.c to theme.c

It makes more sense to just keep one set of corner textures for server
side view decorations, rather than storing a set for each view. This also
keeps the code simpler when when changing theme parameters.

4 years agoaction: add "ToggleMaximize"
Johan Malm [Tue, 13 Jul 2021 20:54:22 +0000 (21:54 +0100)]
action: add "ToggleMaximize"

4 years agoOpen new views on output where cursor is
Johan Malm [Tue, 13 Jul 2021 20:50:02 +0000 (21:50 +0100)]
Open new views on output where cursor is

4 years agoaction: add "Close" to close top-most view
Johan Malm [Mon, 12 Jul 2021 20:46:10 +0000 (21:46 +0100)]
action: add "Close" to close top-most view

4 years agoAdd labwc.desktop (issue #36)
Johan Malm [Mon, 12 Jul 2021 20:41:12 +0000 (21:41 +0100)]
Add labwc.desktop (issue #36)

4 years agolayers: take into account usable area when maximizing views
Johan Malm [Mon, 12 Jul 2021 20:39:09 +0000 (21:39 +0100)]
layers: take into account usable area when maximizing views

4 years agocursor: initialize view_area
Johan Malm [Mon, 12 Jul 2021 18:59:19 +0000 (19:59 +0100)]
cursor: initialize view_area

...to avoid inadvertantly triggering close/minimize/maximize

4 years agocursor: handle button press on layer-surface (issue #41)
Johan Malm [Mon, 12 Jul 2021 15:44:30 +0000 (16:44 +0100)]
cursor: handle button press on layer-surface (issue #41)

4 years agocursor: do not pass _press_ to client when alt held
Johan Malm [Fri, 9 Jul 2021 21:29:48 +0000 (22:29 +0100)]
cursor: do not pass _press_ to client when alt held

4 years agocursor: handle alt + mouse button (issue #40)
Johan Malm [Fri, 9 Jul 2021 20:58:54 +0000 (21:58 +0100)]
cursor: handle alt + mouse button (issue #40)

Move view on alt + left mouse button
Resize view on alt + right mouse button

4 years agokeyboard: remove printf() debug message
Johan Malm [Fri, 9 Jul 2021 20:49:44 +0000 (21:49 +0100)]
keyboard: remove printf() debug message

4 years agoxwayland-shell: unmaximize on first map
Johan Malm [Fri, 9 Jul 2021 20:47:51 +0000 (21:47 +0100)]
xwayland-shell: unmaximize on first map

...to ensure consistency with xdg-shell implementation and to avoid
padding/margin complications.

4 years agoxwayland-shell: center view on first map
Johan Malm [Fri, 9 Jul 2021 20:45:38 +0000 (21:45 +0100)]
xwayland-shell: center view on first map

4 years agoxdg-shell: center view on first map
Johan Malm [Fri, 9 Jul 2021 20:43:27 +0000 (21:43 +0100)]
xdg-shell: center view on first map

...and take into account output layout co-ordinates.

Previously xdg-shell views were just positioned at (0, 0) on first map
regardless of output co-ordinates.

Fix issue #39

4 years agoview: add view_center()
Johan Malm [Fri, 9 Jul 2021 20:39:20 +0000 (21:39 +0100)]
view: add view_center()

4 years agoREADME.md: fix typo
Johan Malm [Fri, 9 Jul 2021 20:34:23 +0000 (21:34 +0100)]
README.md: fix typo

4 years agoNEWS.md: re-format
Johan Malm [Fri, 9 Jul 2021 20:34:00 +0000 (21:34 +0100)]
NEWS.md: re-format

4 years agomenu/theme: use wlr_texture_destroy()
Johan Malm [Thu, 1 Jul 2021 18:21:09 +0000 (19:21 +0100)]
menu/theme: use wlr_texture_destroy()

4 years agoaction: stop showing alt-tab info messages
Johan Malm [Thu, 1 Jul 2021 17:02:25 +0000 (18:02 +0100)]
action: stop showing alt-tab info messages

4 years agokeyboard: catch C-A-F1 to C-A-F12 to switch tty
Johan Malm [Thu, 1 Jul 2021 16:53:47 +0000 (17:53 +0100)]
keyboard: catch C-A-F1 to C-A-F12 to switch tty

Fix issue #34 item 4

4 years agooutput: assert instead of quiet return
Johan Malm [Wed, 30 Jun 2021 19:12:58 +0000 (20:12 +0100)]
output: assert instead of quiet return

4 years agoaction: expand shell variables before execvp()
Johan Malm [Wed, 30 Jun 2021 18:56:31 +0000 (19:56 +0100)]
action: expand shell variables before execvp()

Expanding shell variables, including tilde, enables the following type
of keybind:

<keyboard>
    <keybind key="XF86AudioMute">
      <action name="Execute">
        <command>bash ~/mute-script.sh</command>
      </action>
    </keybind>
</keyboard>

Fixes issue #32

4 years agomeson: bump wlroots dependency version number
kalekale [Tue, 29 Jun 2021 09:18:12 +0000 (15:03 +0545)]
meson: bump wlroots dependency version number

4 years agolabwc 0.3.0
Johan Malm [Mon, 28 Jun 2021 19:59:43 +0000 (20:59 +0100)]
labwc 0.3.0

4 years agorcxml: do not try to use theme Clearlooks-3.4
Johan Malm [Mon, 28 Jun 2021 19:48:55 +0000 (20:48 +0100)]
rcxml: do not try to use theme Clearlooks-3.4

If no theme is specified in rc.xml, just use built-in theme

4 years agoserver: remove wl_display_init_shm()
Johan Malm [Mon, 28 Jun 2021 19:42:41 +0000 (20:42 +0100)]
server: remove wl_display_init_shm()

This function is called by wlroots in wlr_renderer_init_wl_display(), so
no need to call it again. This stops Qt apps segfaulting when run with
"-platform wayland"

Fixes issue #34 item 2

4 years agocairo: Replace <cairo/cairo.h> by <cairo.h>
Johan Malm [Sat, 26 Jun 2021 17:28:27 +0000 (18:28 +0100)]
cairo: Replace <cairo/cairo.h> by <cairo.h>

See sway@d45623c2

4 years agomeson.build: fix style
Johan Malm [Sat, 26 Jun 2021 17:23:46 +0000 (18:23 +0100)]
meson.build: fix style

4 years agomeson: Use wrap files to manage dependencies
Ezequiel Garcia [Sat, 26 Jun 2021 09:41:03 +0000 (06:41 -0300)]
meson: Use wrap files to manage dependencies

This simplifies building as there's no need to manually
git clone subprojects anymore.

Building is now as simple as:

    meson build
    ninja -C build

In order to update the subprojects, meson provides:

    meson subprojects update

4 years agobuild: bump wlroots dependency to 0.15.0
Johan Malm [Sat, 26 Jun 2021 09:12:52 +0000 (10:12 +0100)]
build: bump wlroots dependency to 0.15.0

4 years agoxdg: chase swaywm/wlroots@9e58301df7f0
Jan Beich [Thu, 3 Jun 2021 18:06:49 +0000 (18:06 +0000)]
xdg: chase swaywm/wlroots@9e58301df7f0

src/xdg.c:269:48: error: no member named 'subsurfaces' in 'struct wlr_surface'
                wl_list_for_each(subsurface, &view->surface->subsurfaces,
                                              ~~~~~~~~~~~~~  ^
/usr/include/wayland-util.h:443:30: note: expanded from macro 'wl_list_for_each'
        for (pos = wl_container_of((head)->next, pos, member);  \
                                    ^~~~
/usr/include/wayland-util.h:409:32: note: expanded from macro 'wl_container_of'
        (__typeof__(sample))((char *)(ptr) -                            \
                                      ^~~

Based on https://github.com/swaywm/sway/commit/3162766eef14

4 years agolabwc-config(5): add followMouse and raiseOnFocus
Johan Malm [Fri, 28 May 2021 20:50:27 +0000 (21:50 +0100)]
labwc-config(5): add followMouse and raiseOnFocus

4 years agorcxml: fix typo
Johan Malm [Fri, 28 May 2021 20:31:02 +0000 (21:31 +0100)]
rcxml: fix typo

4 years agofocus: add basic follow mouse support
Mikhail Kshevetskiy [Wed, 26 May 2021 23:11:11 +0000 (02:11 +0300)]
focus: add basic follow mouse support

4 years agooutput: access texture width/height directly
Johan Malm [Mon, 17 May 2021 18:55:57 +0000 (19:55 +0100)]
output: access texture width/height directly

wlr_texture_get_size() is removed in wlroots@6369f709 so we have to
access width and height directly.

4 years agoREADME: update wlroots dependency + minor tweak to intro
Johan Malm [Sat, 17 Apr 2021 13:34:29 +0000 (14:34 +0100)]
README: update wlroots dependency + minor tweak to intro

4 years agomeson.build: require wlroots ['>=0.14.0', '<0.15.0']
Johan Malm [Sat, 17 Apr 2021 13:26:25 +0000 (14:26 +0100)]
meson.build: require wlroots ['>=0.14.0', '<0.15.0']

Also specify required version when using wlroots as subproject

4 years agomeson.build: require wayland-server >=1.19.0
Johan Malm [Sat, 17 Apr 2021 13:21:42 +0000 (14:21 +0100)]
meson.build: require wayland-server >=1.19.0

Fix typo - it previously said 0.19.0

4 years agomeson.build: update version
Johan Malm [Sat, 17 Apr 2021 13:18:52 +0000 (14:18 +0100)]
meson.build: update version

4 years agoUpdate NEWS.md
Johan Malm [Fri, 16 Apr 2021 19:52:26 +0000 (20:52 +0100)]
Update NEWS.md

4 years agomeson: unbreak with system wlroots after fd4ea3542fdc
Jan Beich [Thu, 15 Apr 2021 20:49:24 +0000 (20:49 +0000)]
meson: unbreak with system wlroots after fd4ea3542fdc

meson.build:50:2: ERROR: All keyword arguments must be after positional arguments.

4 years agoNEWS.md: fix typo
Johan Malm [Thu, 15 Apr 2021 20:49:52 +0000 (21:49 +0100)]
NEWS.md: fix typo

4 years agolabwc 0.2.0
Johan Malm [Thu, 15 Apr 2021 20:35:47 +0000 (21:35 +0100)]
labwc 0.2.0

4 years agoREADME: remove old scrot
Johan Malm [Thu, 15 Apr 2021 20:32:14 +0000 (21:32 +0100)]
README: remove old scrot

4 years agoNEWS.md: update for v0.2.0
Johan Malm [Thu, 15 Apr 2021 20:31:09 +0000 (21:31 +0100)]
NEWS.md: update for v0.2.0

4 years agoxdg: fix subsurface damage bug
Johan Malm [Thu, 15 Apr 2021 19:37:57 +0000 (20:37 +0100)]
xdg: fix subsurface damage bug

Create struct view_child for each wlr_surface subsurface on first view
map. Firefox doesn't damage properly without this.

4 years agotheme: move title_height to theme struct
Johan Malm [Thu, 15 Apr 2021 19:13:49 +0000 (20:13 +0100)]
theme: move title_height to theme struct

title_height is a derived variable which needs both config and theme
variables (font height and title padding). The code is tidier calling
post_processing() for this from theme_init()

4 years agotheme: update built-in theme colors
Johan Malm [Sat, 10 Apr 2021 18:30:39 +0000 (19:30 +0100)]
theme: update built-in theme colors

Use #dddad6 for active title/border and #f6f5f4 for inactive.
It matches default GTK colors reasonably well.

4 years agotheme: fix pattern match bug
Johan Malm [Sat, 10 Apr 2021 18:17:39 +0000 (19:17 +0100)]
theme: fix pattern match bug

Remove 'else' from if-statements in order for the pattern match to apply
to more than just the first instance of each match.

4 years agotheme: add window.inactive.border.color
Johan Malm [Sat, 10 Apr 2021 18:11:29 +0000 (19:11 +0100)]
theme: add window.inactive.border.color

4 years agotheme: add window.active.border.color
Johan Malm [Sat, 10 Apr 2021 17:40:43 +0000 (18:40 +0100)]
theme: add window.active.border.color

This replaces window.active.handle.bg.color which will no longer be
supported.

4 years agoREADME: fix typo and refactor links
Johan Malm [Sat, 10 Apr 2021 08:30:48 +0000 (09:30 +0100)]
README: fix typo and refactor links

4 years agoREADME: turn configure section into a table
Johan Malm [Sat, 10 Apr 2021 08:20:10 +0000 (09:20 +0100)]
README: turn configure section into a table

4 years agolabwc(1): minor re-wording
Johan Malm [Sat, 10 Apr 2021 08:19:35 +0000 (09:19 +0100)]
labwc(1): minor re-wording

4 years agoAdd example autostart and environment files
Johan Malm [Sat, 10 Apr 2021 08:18:30 +0000 (09:18 +0100)]
Add example autostart and environment files

4 years agoAdd labwc-environment(5)
Johan Malm [Sat, 10 Apr 2021 08:17:41 +0000 (09:17 +0100)]
Add labwc-environment(5)

4 years agoREADME/meson.build: update dependencies
Johan Malm [Sat, 10 Apr 2021 07:30:56 +0000 (08:30 +0100)]
README/meson.build: update dependencies

4 years agoREADME: update "what" section
Johan Malm [Sat, 10 Apr 2021 07:27:47 +0000 (08:27 +0100)]
README: update "what" section

4 years agoREADME: fix typo
Johan Malm [Sat, 10 Apr 2021 07:14:33 +0000 (08:14 +0100)]
README: fix typo

4 years agoseat: remove warning for libinput finger count
Johan Malm [Thu, 8 Apr 2021 16:09:06 +0000 (17:09 +0100)]
seat: remove warning for libinput finger count

4 years agoREADME: update acceptance criteria section
Johan Malm [Tue, 30 Mar 2021 21:43:05 +0000 (22:43 +0100)]
README: update acceptance criteria section

4 years agos/LAB_ADAPTIVE_SYNC/LABWC_ADAPTIVE_SYNC/
Johan Malm [Tue, 30 Mar 2021 21:41:17 +0000 (22:41 +0100)]
s/LAB_ADAPTIVE_SYNC/LABWC_ADAPTIVE_SYNC/

Use the the prefix LABWC_ for environment variable to increase
consistency.

4 years agorcxml: simplify debugging nodenames
Johan Malm [Tue, 30 Mar 2021 21:40:41 +0000 (22:40 +0100)]
rcxml: simplify debugging nodenames

4 years agoconfig: add <theme><cornerRadius>
Johan Malm [Tue, 30 Mar 2021 21:39:52 +0000 (22:39 +0100)]
config: add <theme><cornerRadius>

4 years agoREADME: update progress summary
Johan Malm [Mon, 29 Mar 2021 18:36:46 +0000 (19:36 +0100)]
README: update progress summary

4 years agoseat: add missing damage_all_outputs()
Johan Malm [Mon, 29 Mar 2021 18:35:25 +0000 (19:35 +0100)]
seat: add missing damage_all_outputs()

4 years agotheme: support border.width
Johan Malm [Sat, 27 Mar 2021 21:09:45 +0000 (21:09 +0000)]
theme: support border.width

4 years agoAdded support for rounded corners
Johan Malm [Sat, 27 Mar 2021 21:04:12 +0000 (21:04 +0000)]
Added support for rounded corners

4 years agocursor: damage output on pressing view
Johan Malm [Fri, 26 Mar 2021 20:12:01 +0000 (20:12 +0000)]
cursor: damage output on pressing view

4 years agooutput: optionally call wlr_output_enable_adaptive_sync()
Johan Malm [Mon, 22 Mar 2021 21:25:51 +0000 (21:25 +0000)]
output: optionally call wlr_output_enable_adaptive_sync()

Set environment variable LAB_ADAPTIVE_SYNC to enable adaptive sync.

4 years agoCreate a linked list of SSD for each view
Johan Malm [Sun, 21 Mar 2021 21:46:16 +0000 (21:46 +0000)]
Create a linked list of SSD for each view

4 years agoview: scale maximize geometry correctly
Johan Malm [Sun, 21 Mar 2021 21:06:45 +0000 (21:06 +0000)]
view: scale maximize geometry correctly

4 years agoAdd ssd.h
Johan Malm [Sun, 21 Mar 2021 20:54:55 +0000 (20:54 +0000)]
Add ssd.h