Commit graph

2260 commits

Author SHA1 Message Date
Simon Long
897ba49e7a Use set_float 2024-05-13 09:47:15 +01:00
Simon Long
a64479037f Make magnifier increment a theme parameter 2024-05-13 07:43:07 +01:00
Simon Long
56a86ffeed Tidying 2024-05-09 10:21:11 +01:00
Simon Long
d2d301f98e Parameterise magnification step for now 2024-05-08 15:15:53 +01:00
Simon Long
4dc9255fe3 Remove explicit fullscreen flag 2024-05-08 08:54:20 +01:00
Simon Long
94afd1f7b0 Now with the right calculation... 2024-05-08 08:45:02 +01:00
Simon Long
035e2b7fc9 Fix magnifications > 2 with fullscreen; still not perfect 2024-05-07 15:26:03 +01:00
Simon Long
2e1266229e Code style 2024-05-07 14:32:59 +01:00
Simon Long
a553d174b5 Code style 2024-05-07 14:30:39 +01:00
Simon Long
c2873a75f3 Add fullscreen magnifier mode 2024-05-07 14:27:42 +01:00
Simon Long
e8d23d1540 Default values added to documentation 2024-05-07 13:50:44 +01:00
Simon Long
765505d9ff Remove spurious blank line 2024-05-03 16:30:52 +01:00
Simon Long
b5262e1375 Typo 2024-05-03 15:39:29 +01:00
Simon Long
627eaa6cbf Code style 2024-05-03 15:35:40 +01:00
Simon Long
5b60f3c80f Update documentation 2024-05-03 15:32:55 +01:00
Simon Long
19a57c6ea4 Move magnifier settings into theme 2024-05-03 15:22:18 +01:00
Simon Long
15f35ed2ba Typo 2024-05-03 14:16:11 +01:00
Simon Long
ee80787e1c Add action documentation 2024-05-03 14:14:07 +01:00
Simon Long
89bd1b77de Use separate ZoomIn and ZoomOut commands 2024-05-03 14:08:32 +01:00
Simon Long
ee412811ce Build error 2024-05-03 13:37:43 +01:00
Simon Long
d119ca433c More code style 2024-05-03 13:32:20 +01:00
Simon Long
ea3674faf0 Code style 2024-05-03 13:27:17 +01:00
Simon Long
6038c87d03 Clarification 2024-05-03 13:16:47 +01:00
Simon Long
2be9edd817 Documentation 2024-05-03 13:13:01 +01:00
Simon Long
a552cd1ba5 Remove default magnifier bindings 2024-05-03 12:59:04 +01:00
Simon Long
479df784ea It's hip to (not) be square... 2024-05-03 12:57:34 +01:00
Simon Long
74e581118f Add filtering option to XML 2024-05-03 12:56:45 +01:00
Simon Long
59e83e5bd3 Add setting of border width and colour 2024-05-03 12:56:26 +01:00
Simon Long
22003ee6af Documentation 2024-05-03 12:55:21 +01:00
Simon Long
93421884f7 Add first magnifier values to XML handling 2024-05-03 12:54:16 +01:00
Simon Long
dd42e57c9a No need to track scale changes 2024-05-03 12:53:25 +01:00
Simon Long
789e7f9331 Magnifier on/off just a global flag; not in XML 2024-05-03 12:53:05 +01:00
Simon Long
f76dffa01a Move magnfier size into XML 2024-05-03 12:51:46 +01:00
Simon Long
483a92368e Use fixed-size loupe 2024-05-03 12:49:46 +01:00
Simon Long
dfd9aa4aba First attempt at integration with nmouse and keyboard bindings 2024-05-03 12:49:41 +01:00
tokyo4j
4b6efb7307 cursor: implement <menu><ignoreButtonReleasePeriod>
Addresses UX degradation introduced by commit 1d3ed457.

This prevents clicks with small movement with the intention of opening
the menu from unexpectedly closing the menu or selecting a menu item.
2024-05-01 19:08:07 +09:00
Tomi Ollila
96d5d80be2 docs: refer labwc-actions(5), not labwc-action(5) 2024-04-29 22:59:42 +02:00
tokyo4j
f6328d7d45 view: update top layer visibility on map
Steam's Big Picture Mode window requests fullscreen before mapping.
2024-04-29 14:39:05 +02:00
tokyo4j
2603dbf396 ssd: don't update ssd if view width is too small
Clients can ignore the requsted geometry and negative widths could be
passed to `wlr_scene_rect_set_size()` in `ssd_titlebar_update()` or in
`ssd_border_update()`.
2024-04-28 10:20:24 +02:00
tokyo4j
c224e1e05a view: set LAB_MIN_VIEW_WIDTH equal to total width of buttons
This fixes pixman error due to a negative width passed to
`wlr_scene_rect_set_size()` in `ssd_titlebar_update()`.
2024-04-28 10:20:24 +02:00
Johan Malm
5be28d8b56 .editorconfig: set max_line_length=80 for *.md 2024-04-27 22:09:16 +01:00
Johan Malm
06ca80ffb7 .editorconfig: set max_line_length=74 for commit-messages
...so that "git log" shows things nicely even when it is indented.
2024-04-27 22:09:16 +01:00
Tomi Ollila
2e2cf54c00 docs: Fixed some typos, 80 column lines (where possible) 2024-04-26 22:15:39 +01:00
Weblate
32929e8ab5 Translation updates from weblate
Co-authored-by: Jouni Järvinen <jounijarvis@gmail.com>
Co-authored-by: Weblate <noreply@weblate.org>
Co-authored-by: Yannis Drougas <drougas@gmail.com>
Translate-URL: https://translate.lxqt-project.org/projects/labwc/labwc/el/
Translate-URL: https://translate.lxqt-project.org/projects/labwc/labwc/fi/
Translation: Labwc/labwc
2024-04-24 21:25:53 +01:00
tokyo4j
1d3ed45704 cursor: do action/close menu in successive press & release
In OpenBox, when cursor button is pressed to open menu, a subsequent
cursor button release can perform actions or close the menu.
This commit makes labwc follow that behavior.

Fixes: #1750
2024-04-24 20:53:02 +09:00
Standreas
ca0299d259 NEWS.md: fix typos
Closes: #1748 [via git-merge-pr]
2024-04-23 08:32:59 -04:00
Johan Malm
48d787ed99
NEWS.md: interim update 2024-04-22 20:10:40 +01:00
David Turner
ce0d2c2966
ssd: add window drop-shadows (#1648)
Add optional drop-shadows to windows using server-side decoration.
Shadows can be enabled/disabled rc.xml and their appearance configured
in themerc.  The default is no shadows to preserve current behaviour.

The shadows are drawn in fixed corner and edge buffers shared between
all windows, the edges are scaled to size depending on the size of each
window.  Two sets of buffers are used to give the different appearances
for active and inactive windows.  I use separate corner/edge buffers for
a few reasons:

- It avoids needing to store a separate large shadow buffer per window
- It avoids needing to redraw the shadows when the window is being
  resized
- Compositing the shadows onto the desktop should be faster as there are
  overall fewer pixels to blend, and scaling up the edge buffers only
  requires reading a tiny buffer which is then replicated.
2024-04-22 19:27:53 +01:00
tokyo4j
b0ba585ff8 overlay: allow to draw both/either of filled/outlined rectangle
Filled/outlined rectangles shown as snapping overlay are now enabled/disabled
independently with `snapping.overlay.[region|edge].bg.enabled` and
`snapping.overlay.[region|edge].border.enabled`.

To keep the default behavior, `*.bg.enabled` is yes and `*.border.enabled` is
no for hardware-based renderers, while `*.bg.enabled` is no and
`*.border.enabled` is yes for software-based (pixman) renderer.

Users can now use a filled rectangle as an overlay even with pixman renderer.
However, this may severely impact performance when used with translucent
`snapping.overlay.[region|edge].bg.color`.

This commit includes a refactor to use substruct `theme_snapping_overlay`
inside `theme` in order to pass it to `create_overlay_rect()` in a cleaner way.

Breaking changes is:
- `snapping.overlay.[region|edge].fill` is now removed.
2024-04-22 19:22:23 +01:00
tokyo4j
34290ef629 overlay: s/preview/overlay/
Replace "preview" in rc.xml and themerc with "overlay" since "preview" sounds
like it shows the window content.

Breaking changes are:
- `snapping.preview.*` in themerc is now replaced with `snapping.overlay`.
- `<snapping><preview>` in rc.xml is now replaced with `<snapping><overlay>`.
2024-04-22 19:22:23 +01:00