Not a single app got restored to its originall position
See original GitHub issue👻 Brief Description
I installed lwsm it on Ubuntu 16.04. I saved and restored my session and not even single window was restored in proper position.
🎩 My workflow configuration
Two monitors. Left one horizontal 1920x1080, right one (vertical flip!) 1200x1920. [Total resolution of 3120x3010] 16 workspaces (two monitors each) in 4x4 fashion:
| 1| 2| 3| 4|
| 5| 6| 7| 8|
| 9|10|11|12|
|13|14|15|16|
Steps To Reproduce
Steps to reproduce the behavior:
- Use Ubuntu 16.04 default Unity wm.
- Start at least 5 Firefox windows. One of the first monitor on very first (top left corner), second on the right monitor on first window, similarly second and forth Firefox window on 3rd workspace to the right and fifth on the 4th wokspace left monitor.
- on the second workspace to the left start terminal
- start a bunch of other apps on other workspaces and monitors.
- on the terminal on the second workspace run
lwsm save
- close all apps or relogin
- start terminal on second workspace left monitor and run:
lwsm restore
- observe windows opening on random workspaces and windows without any relation to original layout whatsoever
- observe at least 5 additional empty Firefox windows opened lurking somewhere beneath terminal and Firefox windows (or some on plain sight).
Additional note: while restoring I got messages like: Status: “Navigator.Firefox” is running: false 5 0
🚓 Expected behavior
I’d expect roughly the same window layout. At least windows placed on the same workspace.
➕ Additional context
My saved session file. At a glance it seems that resolution is not right…
{
"name": "DEFAULT",
"displaysCombinations": [
{
"id": "3120x1920",
"windowList": [
{
"windowId": "0x360000a",
"windowIdDec": 56623114,
"wmCurrentDesktopNr": 0,
"states": [
"_NET_WM_STATE_MAXIMIZED_VERT",
"_NET_WM_STATE_MAXIMIZED_HORZ"
],
"wmType": "_NET_WM_WINDOW_TYPE_NORMAL",
"wmPid": 5535,
"wmClassName": "gnome-terminal-server.Gnome-terminal",
"x": -3061,
"y": 1944,
"width": 1861,
"height": 1056,
"simpleName": "Gnome-terminal",
"executableFile": "/usr/lib/gnome-terminal/gnome-terminal-server"
},
{
"windowId": "0x360066b",
"windowIdDec": 56624747,
"wmCurrentDesktopNr": 0,
"states": [
"_NET_WM_STATE_MAXIMIZED_VERT",
"_NET_WM_STATE_MAXIMIZED_HORZ",
"_NET_WM_STATE_FOCUSED"
],
"wmType": "_NET_WM_WINDOW_TYPE_NORMAL",
"wmPid": 5535,
"wmClassName": "gnome-terminal-server.Gnome-terminal",
"x": 59,
"y": 24,
"width": 1861,
"height": 1056,
"simpleName": "Gnome-terminal",
"executableFile": "/usr/lib/gnome-terminal/gnome-terminal-server"
},
{
"windowId": "0x5600004",
"windowIdDec": 90177540,
"wmClassName": "spotify.Spotify",
"executableFile": "/snap/spotify/43/usr/share/spotify/spotify",
"wmCurrentDesktopNr": 0,
"states": [
"_NET_WM_STATE_MAXIMIZED_VERT",
"_NET_WM_STATE_MAXIMIZED_HORZ"
],
"wmPid": 7159,
"x": -3061,
"y": 5784,
"width": 1861,
"height": 1056,
"simpleName": "Spotify"
},
{
"windowId": "0x3600943",
"windowIdDec": 56625475,
"wmCurrentDesktopNr": 0,
"states": [
"_NET_WM_STATE_MAXIMIZED_VERT",
"_NET_WM_STATE_MAXIMIZED_HORZ"
],
"wmType": "_NET_WM_WINDOW_TYPE_NORMAL",
"wmPid": 5535,
"wmClassName": "gnome-terminal-server.Gnome-terminal",
"x": 59,
"y": 1944,
"width": 1861,
"height": 1056,
"simpleName": "Gnome-terminal",
"executableFile": "/usr/lib/gnome-terminal/gnome-terminal-server"
},
{
"windowId": "0x5a0004c",
"windowIdDec": 94371916,
"wmCurrentDesktopNr": 0,
"wmType": "_NET_WM_WINDOW_TYPE_NORMAL",
"states": [
"_NET_WM_STATE_MAXIMIZED_VERT",
"_NET_WM_STATE_MAXIMIZED_HORZ"
],
"wmPid": 15422,
"wmClassName": "jetbrains-pycharm.jetbrains-pycharm",
"x": 1920,
"y": 1944,
"width": 1200,
"height": 1896,
"simpleName": "jetbrains-pycharm",
"executableFile": "jetbrains-pycharm.desktop",
"desktopFilePath": "......./jetbrains-pycharm.desktop"
},
{
"windowId": "0x360b77c",
"windowIdDec": 56670076,
"wmCurrentDesktopNr": 0,
"states": [],
"wmType": "_NET_WM_WINDOW_TYPE_NORMAL",
"wmPid": 5535,
"wmClassName": "gnome-terminal-server.Gnome-terminal",
"x": 490,
"y": 4066,
"width": 1036,
"height": 542,
"simpleName": "Gnome-terminal",
"executableFile": "/usr/lib/gnome-terminal/gnome-terminal-server"
},
{
"windowId": "0x366c0c4",
"windowIdDec": 57065668,
"wmCurrentDesktopNr": 0,
"states": [],
"wmType": "_NET_WM_WINDOW_TYPE_NORMAL",
"wmPid": 5535,
"wmClassName": "gnome-terminal-server.Gnome-terminal",
"x": 3449,
"y": 6002,
"width": 1036,
"height": 542,
"simpleName": "Gnome-terminal",
"executableFile": "/usr/lib/gnome-terminal/gnome-terminal-server"
},
{
"windowId": "0x7400001",
"windowIdDec": 121634817,
"wmCurrentDesktopNr": 0,
"states": [],
"wmPid": 28320,
"wmClassName": "xfreerdp.xfreerdp",
"x": 3179,
"y": 5840,
"width": 1840,
"height": 1028,
"simpleName": "xfreerdp",
"executableFile": "xfreerdp.desktop",
"desktopFilePath": "....../.local/share/applications/xfreerdp.desktop"
},
{
"windowId": "0x3681595",
"windowIdDec": 57152917,
"wmCurrentDesktopNr": 0,
"states": [],
"wmType": "_NET_WM_WINDOW_TYPE_NORMAL",
"wmPid": 5535,
"wmClassName": "gnome-terminal-server.Gnome-terminal",
"x": -3051,
"y": 3920,
"width": 1036,
"height": 542,
"simpleName": "Gnome-terminal",
"executableFile": "/usr/lib/gnome-terminal/gnome-terminal-server"
},
{
"windowId": "0x7e00013",
"windowIdDec": 132120595,
"wmCurrentDesktopNr": 0,
"states": [],
"wmType": "_NET_WM_WINDOW_TYPE_NORMAL",
"wmPid": 24439,
"wmClassName": "VirtualBox Manager.VirtualBox Manager",
"x": 407,
"y": 4287,
"width": 960,
"height": 540,
"simpleName": "VirtualBox Manager",
"executableFile": "/usr/lib/virtualbox/VirtualBox"
},
{
"windowId": "0x8000013",
"windowIdDec": 134217747,
"wmCurrentDesktopNr": 0,
"states": [],
"wmType": "_NET_WM_WINDOW_TYPE_NORMAL",
"wmPid": 24598,
"wmClassName": "VirtualBox Machine.VirtualBox Machine",
"x": 904,
"y": 4280,
"width": 720,
"height": 441,
"simpleName": "VirtualBox Machine",
"executableFile": "/usr/lib/virtualbox/VirtualBoxVM"
},
{
"windowId": "0x37191a6",
"windowIdDec": 57774502,
"wmCurrentDesktopNr": 0,
"states": [],
"wmType": "_NET_WM_WINDOW_TYPE_NORMAL",
"wmPid": 5535,
"wmClassName": "gnome-terminal-server.Gnome-terminal",
"x": 306,
"y": 4091,
"width": 1036,
"height": 542,
"simpleName": "Gnome-terminal",
"executableFile": "/usr/lib/gnome-terminal/gnome-terminal-server"
},
{
"windowId": "0x8e00001",
"windowIdDec": 148897793,
"wmCurrentDesktopNr": 0,
"states": [],
"wmPid": 12673,
"wmClassName": "xfreerdp.xfreerdp",
"x": 88,
"y": 3947,
"width": 1800,
"height": 1000,
"simpleName": "xfreerdp",
"executableFile": "xfreerdp.desktop",
"desktopFilePath": "....../.local/share/applications/xfreerdp.desktop"
},
{
"windowId": "0x4200003",
"windowIdDec": 69206019,
"wmCurrentDesktopNr": 0,
"states": [
"_NET_WM_STATE_MAXIMIZED_VERT",
"_NET_WM_STATE_MAXIMIZED_HORZ"
],
"wmType": "_NET_WM_WINDOW_TYPE_NORMAL",
"wmPid": 25008,
"wmClassName": "Navigator.Firefox",
"x": -1200,
"y": 24,
"width": 1200,
"height": 1896,
"simpleName": "Firefox",
"executableFile": "firefox.desktop",
"desktopFilePath": "/usr/share/applications/firefox.desktop"
},
{
"windowId": "0x4200021",
"windowIdDec": 69206049,
"wmCurrentDesktopNr": 0,
"states": [
"_NET_WM_STATE_MAXIMIZED_VERT",
"_NET_WM_STATE_MAXIMIZED_HORZ"
],
"wmType": "_NET_WM_WINDOW_TYPE_NORMAL",
"wmPid": 25008,
"wmClassName": "Navigator.Firefox",
"x": 6299,
"y": 24,
"width": 1861,
"height": 1056,
"simpleName": "Firefox",
"executableFile": "firefox.desktop",
"desktopFilePath": "/usr/share/applications/firefox.desktop"
},
{
"windowId": "0x420002e",
"windowIdDec": 69206062,
"wmCurrentDesktopNr": 0,
"states": [
"_NET_WM_STATE_MAXIMIZED_VERT",
"_NET_WM_STATE_MAXIMIZED_HORZ"
],
"wmType": "_NET_WM_WINDOW_TYPE_NORMAL",
"wmPid": 25008,
"wmClassName": "Navigator.Firefox",
"x": 3179,
"y": 24,
"width": 1861,
"height": 1056,
"simpleName": "Firefox",
"executableFile": "firefox.desktop",
"desktopFilePath": "/usr/share/applications/firefox.desktop"
},
{
"windowId": "0x4200039",
"windowIdDec": 69206073,
"wmCurrentDesktopNr": 0,
"states": [],
"wmType": "_NET_WM_WINDOW_TYPE_NORMAL",
"wmPid": 25008,
"wmClassName": "Navigator.Firefox",
"x": 5040,
"y": 90,
"width": 1200,
"height": 1056,
"simpleName": "Firefox",
"executableFile": "firefox.desktop",
"desktopFilePath": "/usr/share/applications/firefox.desktop"
},
{
"windowId": "0x4200044",
"windowIdDec": 69206084,
"wmCurrentDesktopNr": 0,
"states": [
"_NET_WM_STATE_MAXIMIZED_VERT",
"_NET_WM_STATE_MAXIMIZED_HORZ"
],
"wmType": "_NET_WM_WINDOW_TYPE_NORMAL",
"wmPid": 25008,
"wmClassName": "Navigator.Firefox",
"x": -3061,
"y": 24,
"width": 1861,
"height": 1056,
"simpleName": "Firefox",
"executableFile": "firefox.desktop",
"desktopFilePath": "/usr/share/applications/firefox.desktop"
},
{
"windowId": "0x3800007",
"windowIdDec": 58720263,
"executableFile": "gnome-calculator",
"wmCurrentDesktopNr": 0,
"states": [],
"wmType": "_NET_WM_WINDOW_TYPE_NORMAL",
"wmPid": 488,
"wmClassName": "gnome-calculator.Gnome-calculator",
"x": -3061,
"y": 52,
"width": 548,
"height": 455,
"simpleName": "Gnome-calculator"
}
]
}
]
}```
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
How can I restore just one application from Time Machine?
Open Applications folder. Enter Time Machine. Go back to when you don't think it was acting quirky and restore it. If the application...
Read more >How to restore apps on iPhone? | [Updated 2022 Solutions]
To enable the default iPhone apps back, navigate to Settings > General > Restrictions and toggle the switch next to each app to...
Read more >Application windows do not restore to last known position
When you close an application window, and then reopen it at a later time, it does not restore to the previous location. This...
Read more >How to reset the window position of an application - Super User
One way is you can right click the taskbar in XP and choose cascade or tile, though it will do it for all...
Read more >Android RecyclerView ItemTouchHelper revert swipe and ...
Call notifyItemChanged on you adapter. This will make the swiped out view animate back into it's original position. Share.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ah yes the version should be out. Sorry, forgot to inform you.
@johannesjo Hi! Any progress with new version with additional debug?