Skip to content

Instantly share code, notes, and snippets.

View ThomasAdam's full-sized avatar
💭
Working on fvwm3

Thomas Adam ThomasAdam

💭
Working on fvwm3
View GitHub Profile
@ThomasAdam
ThomasAdam / on-xorg-and-wayland.md
Created February 16, 2025 16:34
On Xorg and Wayland

On Xorg and Wayland

There's already been quite a bit of hype surrounding the way Wayland has been developed over Xorg, see for example:

But a lot of the criticisms seem to stem from the limitations of Wayland right now, whether that's due to design decisions which Wayland have made in comparison to Xorg, or because Wayland has a feature which is similar to Xorg but not quite the same.

Most people seem to take it at face value that Xorg is slow and insecure, etc., with only anecdotal evidence to back it up, and hence just believe that Wayland is better because it has a different design.

set-option -g prefix C-a
unbind-key C-b
bind-key C-a send-prefix
set-option -s set-clipboard on
set -sg escape-time 0
set -g bell-action other
set -g lock-after-time 1800
set -g lock-command 'tput civis && read -s -n1'
set -g history-limit 10000
InfostoreAdd HDMI1.colorset.fg 1
Colorset 1 fg white, bg green
DestroyFunc Foo
AddToFunc Foo
+ I pipeRead 'echo Move'
+ I WindowStyle Colorset $[infostore.$[w.screen].colorset.fg]
[non-work/tmux]{1233}[0][master?] % git diff
diff --git a/resize.c b/resize.c
index 054b025f..7dab299b 100644
--- a/resize.c
+++ b/resize.c
@@ -254,7 +254,7 @@ recalculate_size(struct window *w)
}
}
if (sx == 0 || sy == 0)
- changed = 0;
diff --git a/fvwm/conditional.c b/fvwm/conditional.c
index 1f823d1c..4cd6aa45 100644
--- a/fvwm/conditional.c
+++ b/fvwm/conditional.c
@@ -1608,6 +1608,8 @@ void CMD_All(F_CMD_ARGS)
{
num++;
}
+ if (num == 0)
+ return;
diff --git a/cfg.c b/cfg.c
index 84db9fb3..fb95f89e 100644
--- a/cfg.c
+++ b/cfg.c
@@ -77,6 +77,12 @@ set_cfg_file(const char *path)
cfg_file = xstrdup(path);
}
+const char *
+get_cfg_file(void)
;; display the key sequence in progress
(defun key-press-hook (key key-seq cmd)
(declare (ignore key))
(unless (eq *top-map* *resize-map*)
(let ((*message-window-gravity* :bottom-right))
(message "Keys: ~a" (print-key-seq (reverse key-seq))))
(when (stringp cmd)
;; give 'em time to read it
(sleep 0.5))))
DestroyMenu f
AddToMenu f hello Title
+ Greyed "first" Exec exec first
+ Greyed foo Exec exec foo
+ Greyed bar Exec exec bar
+ Greyed baz Exec exec baz
Menu f
DestroyMenu f
AddToMenu f hello Title
+ Greyed "first" Exec exec first
+ Greyed foo Exec exec foo
+ Greyed bar Exec exec bar
+ Greyed baz Exec exec baz
Menu f
ModuleTimeout 1
EdgeResistance 500 1
EdgeThickness 2
IgnoreModifiers L25
SetAnimation 10 -.01 0 .01 .03 .08 .18 .3 .45 .6 .75 .85 .90 .94 .97 .99 1.0
XineramaPrimaryScreen 0
Xinerama On
# Where FVWM will look for its icons and anything else we might wish
# for.
ImagePath +:/usr/share/pixmaps/fvwm/