Discussion:
FVWM: Speed on Interactive Move/Resize
Walter Alejandro Iglesias
2012-10-28 14:53:56 UTC
Permalink
Hello,

On interactive Move/Resize the default step is 5 pixels, 100p holding
Shift and 1p holding Ctrl.

Is there a way of customize that?

Thanks in advance.
Thomas Adam
2012-10-28 14:59:34 UTC
Permalink
Post by Walter Alejandro Iglesias
Hello,
On interactive Move/Resize the default step is 5 pixels, 100p holding
Shift and 1p holding Ctrl.
Is there a way of customize that?
Are you referring to "MoveThreshold"?

-- Thomas Adam
Walter Alejandro Iglesias
2012-10-28 15:33:57 UTC
Permalink
Post by Thomas Adam
Post by Walter Alejandro Iglesias
Hello,
On interactive Move/Resize the default step is 5 pixels, 100p holding
Shift and 1p holding Ctrl.
Is there a way of customize that?
Are you referring to "MoveThreshold"?
-- Thomas Adam
No. For example, I bind the function Move (as is) to Alt+F7. Once
pressed Alf+F7 it starts "interactive" move. Now I can use arrow keys
(or vi / emacs keys via readline) to move the window. If I use just
that keys the window moves 5 pixels each time, doing the same while I
hold Shift the window moves 100 pixels each time and holding Ctrl 1
pixel. I'd like to know if there is a way to customize that and move
with a i.e. 10 pixel steps.

Thomas, answer just in case you have time, because it is not too
important. I can live with the default :). Thanks.

Walter
Dan Espen
2012-10-28 18:24:42 UTC
Permalink
Post by Walter Alejandro Iglesias
Hello,
On interactive Move/Resize the default step is 5 pixels, 100p holding
Shift and 1p holding Ctrl.
Is there a way of customize that?
Currently no.

The values 1,5,100 are defined in:

libs/default.h
#define DEFAULT_KDB_SHORTCUT_MOVE_DISTANCE 5 /* pixels */
#define KDB_SHORTCUT_MOVE_DISTANCE_SMALL 1 /* pixels */
#define KDB_SHORTCUT_MOVE_DISTANCE_BIG 100 /* pixels */

And the logic is in:

libs/Target.c
--
Dan Espen
Walter Alejandro Iglesias
2012-10-28 18:45:00 UTC
Permalink
Post by Dan Espen
Post by Walter Alejandro Iglesias
Hello,
On interactive Move/Resize the default step is 5 pixels, 100p holding
Shift and 1p holding Ctrl.
Is there a way of customize that?
Currently no.
libs/default.h
#define DEFAULT_KDB_SHORTCUT_MOVE_DISTANCE 5 /* pixels */
#define KDB_SHORTCUT_MOVE_DISTANCE_SMALL 1 /* pixels */
#define KDB_SHORTCUT_MOVE_DISTANCE_BIG 100 /* pixels */
libs/Target.c
--
Dan Espen
Hi Dan,

Good to know what you point above. Thanks.

I'd like to start learning about Xlib programing.
I found this:

http://www.tronche.com/gui/x/xlib-tutorial/

Could you point me (advice) to more related documentation?
Where/how is it convenient to start?

Walter
Dan Espen
2012-10-28 18:59:46 UTC
Permalink
Post by Walter Alejandro Iglesias
Post by Dan Espen
Post by Walter Alejandro Iglesias
Hello,
On interactive Move/Resize the default step is 5 pixels, 100p holding
Shift and 1p holding Ctrl.
Is there a way of customize that?
Currently no.
libs/default.h
#define DEFAULT_KDB_SHORTCUT_MOVE_DISTANCE 5 /* pixels */
#define KDB_SHORTCUT_MOVE_DISTANCE_SMALL 1 /* pixels */
#define KDB_SHORTCUT_MOVE_DISTANCE_BIG 100 /* pixels */
libs/Target.c
--
Dan Espen
Hi Dan,
Good to know what you point above. Thanks.
I'd like to start learning about Xlib programing.
http://www.tronche.com/gui/x/xlib-tutorial/
Could you point me (advice) to more related documentation?
Where/how is it convenient to start?
Visit the Developer section at the Fvwm web site.
--
Dan Espen
Walter Alejandro Iglesias
2012-10-28 21:02:06 UTC
Permalink
Post by Dan Espen
Post by Walter Alejandro Iglesias
Hello,
On interactive Move/Resize the default step is 5 pixels, 100p holding
Shift and 1p holding Ctrl.
Is there a way of customize that?
Currently no.
libs/default.h
Hi again Dan,

off topic but related

Reading this header file I discovered something related to other post I
did here titled "Bitmap Fonts and UTF-8". That the three fonts that
appeared on PrintInfo output (I explained on that post not
included by me on any style) are the fonts hard coded on libs/default.h:

-*-fixed-medium-r-semicondensed-*-13-*-*-*-*-*-*-*,
-*-fixed-medium-r-normal-*-14-*-*-*-*-*-*-*,
-*-*-medium-r-normal-*-16-*-*-*-*-*-*-*

Now I tried the following. I commented out all Font entries in my
styles and let FVWM load the fonts itself. In theory FVWM should
load some of the fonts above (Am I wrong?). Once started all defaulted to
the first of the three mentioned:

-*-fixed-medium-r-semicondensed-*-13-*-*-*-*-*-*-*

with NO errors on start up and rendering the correct characters. But if
I include that font in any style entry it appears the error:

[fvwm][FlocaleGetFontSet]: (-*-fixed-medium-r-semicondensed-*-13-*-*-*-*-*-*-*) Missing font charsets:
JISX0208.1983-0, KSC5601.1987-0, GB2312.1980-0, JISX0201.1976-0

Googling, I saw that this is an old issue with utf-8 and X server trying
to find the font that matches on all encodings.

I don't know if all this comment is useful because that X issue
seems not to have a solution.
Dan Espen
2012-10-29 01:01:52 UTC
Permalink
(Please start new threads for new subjects)
Post by Walter Alejandro Iglesias
off topic but related
Reading this header file I discovered something related to other post I
did here titled "Bitmap Fonts and UTF-8". That the three fonts that
appeared on PrintInfo output (I explained on that post not
-*-fixed-medium-r-semicondensed-*-13-*-*-*-*-*-*-*,
-*-fixed-medium-r-normal-*-14-*-*-*-*-*-*-*,
-*-*-medium-r-normal-*-16-*-*-*-*-*-*-*
Now I tried the following. I commented out all Font entries in my
styles and let FVWM load the fonts itself. In theory FVWM should
load some of the fonts above (Am I wrong?). Once started all defaulted to
-*-fixed-medium-r-semicondensed-*-13-*-*-*-*-*-*-*
The above is not the default font.
Post by Walter Alejandro Iglesias
xlsfonts -fn -*-fixed-medium-r-semicondensed-*-13-*-*-*-*-*-*-*
-misc-fixed-medium-r-semicondensed--13-100-100-100-c-60-iso8859-1
-misc-fixed-medium-r-semicondensed--13-100-100-100-c-60-iso8859-1
-misc-fixed-medium-r-semicondensed--13-100-100-100-c-60-iso8859-8
-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1
-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-1
-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-1
-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-14
-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-15
-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-2
-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-5
-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-7
-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-8
-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-9
-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-koi8-r
-misc-fixed-medium-r-semicondensed--13-94-100-100-c-0-iso8859-1

So, in my case, the font used is the first one.
Post by Walter Alejandro Iglesias
with NO errors on start up and rendering the correct characters. But if
JISX0208.1983-0, KSC5601.1987-0, GB2312.1980-0, JISX0201.1976-0
Googling, I saw that this is an old issue with utf-8 and X server trying
to find the font that matches on all encodings.
I don't know if all this comment is useful because that X issue
seems not to have a solution.
I don't see much point to the message printed.
I get it myself and it's not telling me anything I want to know.

Currently it just prints the first 5 times it fails, then shuts up.

That message should probably only print when "printinfo locale" is
1 or 2...
--
Dan Espen
Loading...