Re: FVWM: multiples fvwmtabs and keeping track of position

From: xavier <list.fvwm_at_natch.dyndns.org>
Date: Wed, 4 Feb 2004 19:34:31 -0500

On Thu, Feb 05, 2004 at 10:51:31AM +1100, Scott Smedley wrote:
|Hi Xavier,
|
|: the fvwmtabs window appears at the right position, but always in the current
|: desk instead of the desk it was before restarting fvwm
|
|That's highly possible. I don't think I've ever tested FvwmTabs with
|multiple desktops. FvwmTabs just needs to record the desk it's on & then
|utilise 'MoveToDesk' when it restarts - a trivial modification I think.
|I'll check it out this w/end.

Thanks !

|
|: 4 windows disappeared !
|
|This is obviously a different problem. I noticed that FvwmTabs spat
|out these lines during the restart:
|
|: FvwmTabs: Window doesn't exist.
|: FvwmTabs: Window doesn't exist.
|: FvwmTabs: Window doesn't exist.
|: FvwmTabs: Window doesn't exist.
|
|Just before a restart, FvwmTabs records all the windows that it's
|holding & saves them to the state file. Upon restart it tries to
|re-swallow these windows - if you get the above error message it means
|that FvwmTabs couldn't find that window after the restart.
|
|: i believe they are still running on my machine.
|
|Can you confirm this? If FvwmTabs doesn't swallow them, & this is a
|legitimate bug, the 4 windows should still be floating around somewhere.

yes, my tests shows that they are still somewhere, unaccessible.

|
|There could be any number of reasons why the window was destroyed during
|the restart. What app(s) did these windows belong to?

xterms, freshly opened.

if there is only one fvwmtabs, i can restart without losing xterms in it.

(btw, when a window is swallowed, i don't see it's name anymore in the WindowList....)

here is my test :

2 Fvwmtabs, with 2 xterms insides :

(pstree -a output)
      | | |-xterm -sl 5000 -bg white
      | | | `-zsh
      | | | `-xtail /tmp/test1
      | | |-xterm -sl 5000 -bg white
      | | | `-zsh
      | | | `-xtail /tmp/test2
      | | |-xterm -sl 5000 -bg white
      | | | `-zsh
      | | | `-xtail /tmp/test4
      | | `-xterm -sl 5000 -bg white
      | | `-zsh
      | | `-xtail /tmp/test3



xsession-errors :
1rst restart :

FvwmTabs: Got ON_EXIT event.
FvwmTabs: Couldn't create D&D icon from /usr/share/icons/mini/mini-happy.xpm
FvwmTabs: Reading state from /tmp/.fvwmtabs.state
_cdim: --- not moved 0x08169828 'FvwmTabs [0]'
Module FvwmTabs started with: X11::Protocol 0.52, Tk 800.024.
_cdim: --- not moved 0x0815e7d0 'FvwmTabs [1]'



### 2nd



FvwmTabs: Saving state to /tmp/.fvwmtabs.state
FvwmTabs: Got ON_EXIT event.
s -14824/ 43 -15449/-257, g -14819/ 48 -15444/-252: --- not detected 0x0815e750
'test2'
s -12156/221 -12781/-79, g -12151/226 -12776/-74: --- not detected 0x0816a178 't
est1'
FvwmTabs: Couldn't create D&D icon from /usr/share/icons/mini/mini-happy.xpm
FvwmTabs: Reading state from /tmp/.fvwmtabs.state
_cdim: --- not moved 0x0816aa70 'FvwmTabs [0]'
Module FvwmTabs started with: X11::Protocol 0.52, Tk 800.024.
_cdim: --- not moved 0x0815e750 'FvwmTabs [1]'

######### 3


FvwmTabs: Saving state to /tmp/.fvwmtabs.state
FvwmTabs: Got ON_EXIT event.
s -12156/221 -12781/-79, g -12151/226 -12776/-74: --- not detected 0x08169f88 'test1'
FvwmTabs: Couldn't create D&D icon from /usr/share/icons/mini/mini-happy.xpm
FvwmTabs: Reading state from /tmp/.fvwmtabs.state
_cdim: --- not moved 0x0816a2b0 'FvwmTabs [0]'
Module FvwmTabs started with: X11::Protocol 0.52, Tk 800.024.
_cdim: --- not moved 0x08164a68 'FvwmTabs [1]'

######## 4


FvwmTabs: Saving state to /tmp/.fvwmtabs.state
FvwmTabs: Got ON_EXIT event.
FvwmTabs: Couldn't create D&D icon from /usr/share/icons/mini/mini-happy.xpm
FvwmTabs: Reading state from /tmp/.fvwmtabs.state
_cdim: --- not moved 0x0816b100 'FvwmTabs [0]'
Module FvwmTabs started with: X11::Protocol 0.52, Tk 800.024.
_cdim: --- not moved 0x081603c8 'FvwmTabs [1]'


########### 5



FvwmTabs: Saving state to /tmp/.fvwmtabs.state
FvwmTabs: Got ON_EXIT event.
s -10220/287 -10845/-224, g -10215/292 -10840/-219: --- not detected 0x081696f0 'test3'
s -19934/ 53 -20559/-247, g -19929/ 58 -20554/-242: --- not detected 0x0815eba0 'test2'
s -14711/226 -15336/-74, g -14706/231 -15331/-69: --- not detected 0x08169f38 'test1'
FvwmTabs: Couldn't create D&D icon from /usr/share/icons/mini/mini-happy.xpm
FvwmTabs: Reading state from /tmp/.fvwmtabs.state
_cdim: --- not moved 0x0816a3f0 'FvwmTabs [0]'
Module FvwmTabs started with: X11::Protocol 0.52, Tk 800.024.
_cdim: --- not moved 0x0815eba0 'FvwmTabs [1]'



############## 6


FvwmTabs: Saving state to /tmp/.fvwmtabs.state
FvwmTabs: Got ON_EXIT event.
s -10220/287 -10845/-224, g -10215/292 -10840/-219: --- not detected 0x08169308 'test3'
s -19934/ 53 -20559/-247, g -19929/ 58 -20554/-242: --- not detected 0x0815e7b8 'test2'
s -14711/226 -15336/-74, g -14706/231 -15331/-69: --- not detected 0x08169b50 'test1'
FvwmTabs: Couldn't create D&D icon from /usr/share/icons/mini/mini-happy.xpm
FvwmTabs: Reading state from /tmp/.fvwmtabs.state
_cdim: --- not moved 0x0815da38 'FvwmTabs [0]'
Module FvwmTabs started with: X11::Protocol 0.52, Tk 800.024.
_cdim: --- not moved 0x0815e7b8 'FvwmTabs [1]'


################# 7




at the 7 restart, the 4 windows disapeared (strangely,
there is only 2 lines "Window doesn't exist" in the xsession error.
it is faster to get this when you have more fvwmtabs opened.
(say, 3, 4)

i can still list the process by pstree :

      | | |-xterm -sl 5000 -bg white
      | | | `-zsh
      | | | `-xtail /tmp/test1
      | | |-xterm -sl 5000 -bg white
      | | | `-zsh
      | | | `-xtail /tmp/test2
--
      |               |   |-xterm -sl 5000 -bg white
      |               |   |   `-zsh 
      |               |   |       `-xtail /tmp/test4 
      |               |   `-xterm -sl 5000 -bg white
      |               |       `-zsh 
      |               |           `-xtail /tmp/test3 
so they are somewhere, but not on my display, neither on the 
windowlist. so i can't get them back. i don't know where they are.
(very frustrating... :-/ )
FvwmTabs: Saving state to /tmp/.fvwmtabs.state
FvwmTabs: Protocol error: bad 3 (Window); Sequence Number 70
 Opcode (40, 0) = TranslateCoordinates
 Bad resource 60818863 (0x3a005af)
Use of uninitialized value in unpack at /usr/share/perl5/X11/Protocol.pm line 1106.
'x' outside of string in unpack at /usr/share/perl5/X11/Protocol.pm line 1106.
        (in cleanup) Can't call method "name" on an undefined value at /usr/lib/fvwm/2.5.9/FvwmTabs line 569 during global destruction.
FvwmTabs: Couldn't create D&D icon from /usr/share/icons/mini/mini-happy.xpm
FvwmTabs: Reading state from /tmp/.fvwmtabs.state
FvwmTabs: Window doesn't exist.
FvwmTabs: Window doesn't exist.
Module FvwmTabs started with: X11::Protocol 0.52, Tk 800.024.
################## 8
# nothing left : 
FvwmTabs: Saving state to /tmp/.fvwmtabs.state
FvwmTabs: Got ON_EXIT event.
FvwmTabs: Couldn't create D&D icon from /usr/share/icons/mini/mini-happy.xpm
FvwmTabs: Reading state from /tmp/.fvwmtabs.state
Module FvwmTabs started with: X11::Protocol 0.52, Tk 800.024.
######################## now the 8 /tmp/.fvwmtabs.state
*** '/tmp/.fvwmtabs.state' has been created ***
2
*** /tmp/.fvwmtabs.state ***
createNewTabber();
$fvwm->send("Move 708p 99p", $tabWin{0}{selfId});
addTab(0, 31457297);
addTab(0, 398458897);
showTab(0, 1);
createNewTabber();
$fvwm->send("Move 663p 375p", $tabWin{1}{selfId});
addTab(1, 467664913);
addTab(1, 463470609);
showTab(1, 1);
*** '/tmp/.fvwmtabs.state' has been deleted ***
3
*** '/tmp/.fvwmtabs.state' has been created ***
*** /tmp/.fvwmtabs.state ***
createNewTabber();
$fvwm->send("Move 708p 99p", $tabWin{0}{selfId});
addTab(0, 31457297);
addTab(0, 398458897);
showTab(0, 1);
createNewTabber();
$fvwm->send("Move 663p 375p", $tabWin{1}{selfId});
addTab(1, 467664913);
addTab(1, 463470609);
showTab(1, 1);
*** '/tmp/.fvwmtabs.state' has been deleted ***
 
4
*** '/tmp/.fvwmtabs.state' has been created ***
*** /tmp/.fvwmtabs.state ***
createNewTabber();
$fvwm->send("Move 708p 99p", $tabWin{0}{selfId});
addTab(0, 31457297);
addTab(0, 398458897);
showTab(0, 1);
createNewTabber();
$fvwm->send("Move 663p 375p", $tabWin{1}{selfId});
addTab(1, 467664913);
addTab(1, 463470609);
showTab(1, 1);
*** '/tmp/.fvwmtabs.state' has been deleted ***
*** '/tmp/.fvwmtabs.state' has been created ***
5
*** /tmp/.fvwmtabs.state ***
createNewTabber();
$fvwm->send("Move 708p 99p", $tabWin{0}{selfId});
addTab(0, 31457297);
addTab(0, 398458897);
showTab(0, 1);
createNewTabber();
$fvwm->send("Move 663p 375p", $tabWin{1}{selfId});
addTab(1, 467664913);
addTab(1, 463470609);
showTab(1, 1);
*** '/tmp/.fvwmtabs.state' has been deleted ***
6
*** '/tmp/.fvwmtabs.state' has been created ***
*** /tmp/.fvwmtabs.state ***
createNewTabber();
$fvwm->send("Move 708p 99p", $tabWin{0}{selfId});
addTab(0, 31457297);
addTab(0, 398458897);
showTab(0, 1);
createNewTabber();
$fvwm->send("Move 663p 375p", $tabWin{1}{selfId});
addTab(1, 467664913);
addTab(1, 463470609);
showTab(1, 1);
*** '/tmp/.fvwmtabs.state' has been deleted ***
*** '/tmp/.fvwmtabs.state' has been created ***
7
*** /tmp/.fvwmtabs.state ***
createNewTabber();
$fvwm->send("Move 708p 99p", $tabWin{0}{selfId});
addTab(0, 31457297);
addTab(0, 398458897);
showTab(0, 1);
createNewTabber();
$fvwm->send("Move 663p 375p", $tabWin{1}{selfId});
addTab(1, 467664913);
addTab(1, 463470609);
showTab(1, 1);
*** '/tmp/.fvwmtabs.state' has been deleted ***
8
*** '/tmp/.fvwmtabs.state' has been created ***
*** /tmp/.fvwmtabs.state ***
createNewTabber();
$fvwm->send("Move 708p 99p", $tabWin{0}{selfId});
createNewTabber();
$fvwm->send("Move 622p 0p", $tabWin{1}{selfId});
*** '/tmp/.fvwmtabs.state' has been deleted ***
thanks !
-- 
xavier
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Wed Feb 04 2004 - 18:36:52 GMT

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:56 BST