Commit Graph
63 Commits
Author SHA1 Message Date
Mars-Wave 6ae7b74258 Merge branch 'negative-positions' 2026-09-09 17:27:25 +02:00
Mars-Wave bb00f289dc Merge branch 'window-resize' 2026-09-08 18:58:13 +02:00
Mars-Wave 0abc1bf4f0 Merge branch 'apply-hotkey' 2026-09-06 22:03:40 +02:00
Mars-Wave decd2751b9 Merge branch 'head-removal' 2026-09-05 18:00:42 +02:00
Mars-Wave 64af454280 Merge branch 'keep-disabled-heads' 2026-09-03 17:45:20 +02:00
Mars-Wave 786143fa24 Merge branch 'overlay-crash-fixes' 2026-09-02 18:53:34 +02:00
Mars-Wave 4ccad383c9 Forget the current mode when it is finished 2026-08-24 18:31:58 +02:00
Mars-Wave 5b07f7401b Rebind head forms as soon as a head is removed 2026-08-22 23:22:34 +02:00
Mars-Wave 60c03bee74 Don't regrow a window the user made smaller 2026-08-19 18:19:03 +02:00
Mars-Wave 73067cde9d Resize only for head changes in a mapped window 2026-08-15 20:11:37 +02:00
Mars-Wave 083c87c6a0 Shorten resize_to_fit comment 2026-08-14 21:56:44 +02:00
nguyentiendung 2a6e8b132f Fix window not resizing to fit content, causing clipped Apply dialog
GTK3 toplevel windows on Wayland don't grow to accommodate new content
once mapped, so when heads are (re)populated asynchronously after the
window is shown, or when switching to the "Apply Changes?" header, the
window can keep its stale (too small) size and clip the settings panel
(Apply/Cancel buttons, Transform, Flipped, etc). This matches #5.

- main.c: explicitly resize the window to its natural size after
  rebuilding the head list and after switching the header stack page.
- head.ui: bound the head description label with max-width-chars so a
  long EDID description string can't force the layout wider than
  intended even when wrap/ellipsize are set.
2026-08-07 20:03:03 +07:00
Mars-Wave 7eb2cccd4d Keep the header hidden while changes are applied 2026-04-24 18:06:25 +02:00
Mars-Wave a3a7493c56 Only round-trip when an overlay is first mapped 2026-04-13 23:04:44 +02:00
Mars-Wave d657f9236e Destroy outputs before heads on shutdown 2026-04-12 17:37:16 +02:00
Mars-Wave 4ef6948efc Clear head output when the output is destroyed 2026-04-03 19:19:29 +02:00
save196 4c7342b5c5 Handle NULL head in overlay resize/draw 2026-02-25 11:58:56 +02:00
save196 c1c5e2ca69 Fix crash when overlay surface is destroyed before its role 2026-02-24 17:43:22 +02:00
Mars-Wave a6cdf63a06 Keep disabled outputs disabled when applying 2025-11-28 21:02:17 +01:00
Mars-Wave 4f81761e7c Fix the canvas extent of scaled and offset heads 2025-10-22 19:41:39 +02:00
Mars-Wave f8df97339e Keep the drag origin fixed while dragging a head 2025-10-04 17:50:01 +02:00
Mars-Wave 686634300c Keep building with GLib older than 2.74 2025-09-16 17:00:05 +02:00
arti 79225e57a3 Merge pull request #13 from Aleksanaa/fixes
Fixed menu scaling issue by disabling the use of GTK popover
2025-07-25 12:53:02 +03:00
Jason André Charles Gantner df24d9e2b5 cleanup unused var 2025-07-08 15:34:17 +02:00
Jason André Charles Gantner a781fcea5e fix deprecated gtk flags 2025-07-08 14:45:22 +02:00
Jason André Charles Gantner 1bafe35363 fix deprecated meson syntax 2025-07-08 14:43:27 +02:00
Viorel Munteanu 6b7c637875 Fix C23 issues
gcc 15 is more strict and compiles C by default with C23.  `noop` is
used as a default null initializer, but now it must have the correct
type, so add a cast.

See also: https://bugs.gentoo.org/946954
2024-12-28 11:56:49 +02:00
aleksana 50e549465d Fixed menu scaling issue by disabling the use of GTK popover
This fixes https://github.com/artizirk/wdisplays/issues/9
2023-10-08 17:05:31 +08:00
Hugo Osvaldo Barrera 59edbbd155 Move the output name overlay to the bottom left
The output name overlay renders on the top left by default. At the same
time, wdisplays renders the output previews on its top left corner too.

The results is that the overlay covered the output previews, making
seeing it and interacting with it tricky.

Moving the output name to the bottom left makes sure there's never any
overlap between it and the draggable previews shows for each output.
2022-02-25 17:37:46 +01:00
Simon Ser 5198a9c94b Use correct versions when binding globals
Changes to protocols aren't forward-compatible. It's not possible to use
version n+1 when a client has been designed to work with version n. For
instance in wlr-screencopy v5 a new event has been added. Binding to
version 5 without upgrading the client leads to libwayland errors
because libwayland doesn't know how to handle the event.

The client needs to maintain its own version requirements.

Closes: https://github.com/cyclopsian/wdisplays/issues/18
2020-07-27 11:08:50 +02:00
Jason Francis 0ed52013dd Create WdHeadForm class 2020-05-09 13:37:18 -04:00
Jason Francis f3f2b9e9e2 Backport GTK4 changes
Includes refactoring to use GMenuModel and GtkEventController
2020-05-08 20:26:33 -04:00
Jason Francis 69564522bc Relicense to GPL3+, add REUSE compliance
https://reuse.software/spec/
2020-05-08 20:10:27 -04:00
Jason Francis e66756e2c4 Show headerbar when window is fullscreen
Fixes #14
2020-03-14 21:49:46 -04:00
Jason Francis 54b5fe7e30 Add icon and desktop file 2019-12-10 12:02:17 -05:00
Jason Francis 22669edadb Force tick callback at application start 2019-10-26 16:56:01 -04:00
Jason Francis acd95b1664 Use SPDX license identifiers 2019-10-26 16:56:01 -04:00
Jason Francis 63380ae59d gles 2019-10-26 16:56:01 -04:00
Jason Francis c0cd8e4ac0 Ensure GL context defaults to ES 2.0 2019-10-26 16:37:27 -04:00
Jan Beich bfaf2211c0 Set mode when creating shm object
$ wdisplays
shm_open: Permission denied
shm_open: Permission denied
shm_open: Permission denied
shm_open: Permission denied
^C

$ posixshmcontrol ls
MODE            OWNER   GROUP   SIZE    PATH
---------       foo     foo     33177600        /wd-DP-1
2019-10-04 05:14:25 +00:00
Jason Francis 049bf5bd8f Fix animation not working when capture disabled 2019-09-24 07:59:15 -04:00
Jason Francis d9c6f92830 Fix hangups caused by idle events never running 2019-09-09 10:57:02 -04:00
Jason Francis d9b868077a Display grid lines when moving a display 2019-08-27 10:56:03 -04:00
Jason Francis e0f382af84 Fix snapping not working with rotation/scale 2019-08-23 18:18:25 -04:00
Jason Francis 53d52f0fe3 Fix incorrect canvas scroll sizes and margins 2019-08-23 18:00:07 -04:00
Jason Francis bd8fc3f7d4 Correctly render flipped/rotated screens 2019-08-23 17:35:59 -04:00
Jason Francis 2a896eae5f Use mipmaps for texture scaling 2019-08-23 17:30:46 -04:00
Jason Francis b2c8f77be6 Use CSS padding for overlay 2019-08-18 13:02:09 -04:00
Jason Francis dd2568a2b4 Fix form data being incorrect sometimes 2019-08-18 11:33:59 -04:00
Jason Francis ba3b9f339f Ensure clicks on the canvas respect head z-order 2019-08-18 11:33:30 -04:00