Commit Graph

1323 Commits

Author SHA1 Message Date
David Donahue 2902df94d6 Prevent updatemons() from removing monitors that have been put to sleep from the layout 2024-06-20 19:11:53 -06:00
Emil Miler 9b1f35e42b Implement support for output power management
This patch is based on the original stale patch by Guido Cella @guidocella.
It has been modified to apply cleanly to the latest v5.0 tag. Since the SLOC
limit is now lifted, this core feature should be merged into dwl upstream.

Thanks to Dima Krasner @dimkr for the cherry-pick.

Closes: #559, #525
2024-06-20 19:11:52 -06:00
Leonardo Hernández Hernández 92d1c286b8 default CC to gcc
posix c99 does not accept `-pedantic`

Fixes: https://codeberg.org/dwl/dwl/issues/584
2024-06-20 18:42:00 -06:00
Rutherther 784b047b38 Check for null monitor in resize function 2024-06-20 17:49:29 -06:00
Rutherther 11baacbec0 Add output to layout after enabled state is committed 2024-06-20 17:49:29 -06:00
Rutherther 16076ec5a4 fix: make sure selmon doesn't get set to disabled mon 2024-06-20 17:49:25 -06:00
Leonardo Hernández Hernández a8403d7b4d handle gpu resets
Fixes: https://codeberg.org/dwl/dwl/issues/601
2024-06-20 16:58:31 -06:00
Peter Hofmann 7a46fccdba Run startup_cmd in new session and kill the entire group
When a user's startup_cmd is a little more complex, e.g. a shell script,
and forks off several processes, then killing only the main child pid
might leave unwanted processes behind on exit. Not all children will
notice when their parent or the compositor has quit.

To fix this, put startup_cmd into its own session and process group, and
kill the entire group on exit.
2024-06-20 16:36:08 -06:00
asolkar 630efefd3a Merge branch 'main' of /home/mahesh/git/furnish/dwl_20240217 2024-06-15 10:37:43 -07:00
asolkar 8c9a29b87e Merge branch 'main' of https://codeberg.org/dwl/dwl 2024-06-15 10:36:39 -07:00
Forrest Bushstone c2e7350f2e Make sure toplevel_from_wlr_surface is called with a valid surface pointer 2024-06-14 01:43:32 -06:00
Leonardo Hernández Hernández 7570dc0a41 minor adjustments in Makefile 2024-06-13 14:46:09 -06:00
Guido Cella e5a57fb155 use tabs in client.h
Fixes 298949bbc4.
2024-06-12 14:25:58 -06:00
asolkar 613ee6a3a6 Merge branch 'main' of /home/mahesh/git/furnish/dwl_20240217 2024-06-09 16:25:31 -07:00
asolkar 9512cb560e Merge branch 'main' of https://codeberg.org/dwl/dwl 2024-06-09 16:24:39 -07:00
Leonardo Hernández Hernández 57b5e41063 use enum headers when possible 2024-06-08 20:16:16 -06:00
Leonardo Hernández Hernández f4b6b429ec Merge remote-tracking branch 'upstream/main' into wlroots-next 2024-06-04 14:03:37 -06:00
Leonardo Hernández Hernández 21205f2f40 make sure clients share the same layer on floating layout 2024-06-04 13:58:16 -06:00
Leonardo Hernández Hernández 8f6fca35d0 create a keyboard group for each virtual keyboard 2024-06-02 23:33:57 -06:00
A Frederick Christensen bca077b927 Allow negative coordinates in MonitorRules
Monitor/output position (-1, -1) remains as a single indicator value for autoconfigure layout.
Additionally, one minor comment typo is corrected.
2024-06-02 18:54:11 -05:00
Forrest Bushstone 0047ff740a Replicate dwm behavior for sloppyfocus 2024-05-30 16:24:42 -06:00
Leonardo Hernández Hernández bf81a128ec wlroots now allows parallel installs 2024-05-27 23:10:40 -06:00
asolkar 854ab23102 Merge branch 'main' of /home/mahesh/git/furnish/dwl_20240217 2024-05-12 14:13:44 -07:00
asolkar 6fa809d2f1 Merge branch 'main' of https://codeberg.org/dwl/dwl 2024-05-12 14:12:40 -07:00
fauxmight 9825c26cdd dwl-patches overhaul - doc changes 2024-05-10 05:08:54 +00:00
A Frederick Christensen 34b7a57211 Update wmenu-run name 2024-05-05 13:52:25 -05:00
sewn 5c19e23146 switch to wmenu
bemenu is very bloated, turning itself into a library, which makes it
7489 SLOC.

wmenu on the other hand, looks suckless by default, and is only 2000
SLOC, which i also find alot nicer to use, since bemenu does nothing
to replicate the original dmenu feel.
2024-05-05 18:40:23 +00:00
Leonardo Hernández Hernández 3b1f0a8a88 add support for alpha-modifier-v1 (wlroots!4616)
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4616
2024-04-30 12:36:10 -06:00
Leonardo Hernández Hernández bb73481662 use wlr_renderer_get_texture_formats (wlroots!4644)
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4644
2024-04-21 15:53:59 -06:00
asolkar cc8f7fb99c Using device name instead of ID for touchpad
* UDEV registers touch pad (e.g., Synaptic) with different IDs on
  reboots. Instead of hard-coding product/device IDs in config.h,
  use a string that appears in device name to identify it
2024-04-14 11:39:45 -07:00
asolkar 51b2f68ba5 Information on using touch device id 2024-04-14 11:00:26 -07:00
asolkar 460a6b8905 Merge branch 'main' of /home/mahesh/git/furnish/dwl_20240217 2024-04-13 11:33:13 -07:00
asolkar 3db4baf24c Merge branch 'main' of https://codeberg.org/dwl/dwl 2024-04-13 11:30:06 -07:00
asolkar cb828032c7 Touch input device control
* Added function toggle_touch_input_device to toggle enaled state of
  touch device.
* This function is called in key bindings.
* Touch device is identified by vendor/device id provided in config.h
2024-04-06 16:11:05 -07:00
choc 577d8da6d1 put wlr_layer_shell top layer below fullscreen
fixes wlr_layer_shell top clients showing over fullscreen clients
2024-04-04 11:09:05 -06:00
Leonardo Hernández Hernández 72e2ce8b00 Merge remote-tracking branch 'upstream/main' into wlroots-next 2024-04-04 10:50:21 -06:00
Leonardo Hernández Hernández dd00d994ce do not set withdrawn state for xwayland clients
Closes: https://codeberg.org/dwl/dwl/issues/573
2024-03-31 21:41:12 -06:00
korei999 f7154d539d properly resize on configurex11 2024-03-31 21:39:21 -06:00
asolkar 937623515a XKB option to disable CAPS lock 2024-03-31 11:45:14 -07:00
A Frederick Christensen 3a95d4ed03 Fix rule examples; minimize newbie surprises
Make example rules be actual EXAMPLES.
Now newcomers should not have to ask, "When I start firefox, nothing
happens. What is going on?"

Also clarified a minor typo and a consistency in spacing.
2024-03-26 20:00:46 -05:00
asolkar 2923b2be91 Merge branch 'main' of /home/mahesh/git/furnish/dwl_20240217 2024-03-23 18:49:20 -07:00
asolkar 992411fa75 Merge branch 'main' of https://codeberg.org/dwl/dwl 2024-03-23 18:48:22 -07:00
Guido Cella 2b171fd501 fix virtual pointers
When motionabsolute() is called from warpd, event->time_msec is 0, so
motionnotify() doesn't call wlr_cursor_move(). Fix this by explicitly
warping the cursor in this case, like it was done before implementing
pointer constraints.

I don't know if this is a bug in warpd or time_msec is always 0 with
virtual pointers, since the only other software that uses the virtual
pointer protocol I know of is wl-kbptr, and I can't get that to work
with dwl at all.
2024-03-11 19:01:13 +01:00
Forrest Bushstone ea33ce9ae6 Support pointer constraints and relative pointer protocols
Fixes: https://codeberg.org/dwl/dwl/issues/489
FIxes: https://codeberg.org/dwl/dwl/issues/317
2024-03-11 11:34:26 -06:00
Leonardo Hernández Hernández a0117eea76 use enums from the wayland protocol (wlroots!4575)
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4575
2024-02-29 14:05:09 -06:00
asolkar 9bae793c9f Customized default config 2024-02-18 10:54:46 -08:00
asolkar 6da4a0db72 Merge branch 'main' of /home/mahesh/git/furnish/dwl_20240217 2024-02-17 18:53:45 -08:00
asolkar 82ff3cb6e6 Added IPC v2 patch 2024-02-17 18:47:07 -08:00
Leonardo Hernández Hernández 7b3eb70501 misc fixes to xdg-toplevel-decoration 2024-02-06 20:37:36 -06:00
Leonardo Hernández Hernández c215e8a3e1 send initial configure to xdg-toplevels (wlroots!4396)
We still need to fix xdg-popups

References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4396
2024-02-06 20:30:40 -06:00