https://bugs.kde.org/show_bug.cgi?id=436318

--- Comment #205 from Patrick O'Callaghan <pocallag...@gmail.com> ---
(In reply to devsk from comment #204)
> (In reply to Patrick O'Callaghan from comment #203)
> > (In reply to devsk from comment #202)
> > > (In reply to Roke Julian Lockhart Beedell from comment #198)
> > > > (In reply to imaginator from comment #197)  
> > > > On older systems, this wouldn't really work, since there's always 
> > > > something
> > > > that randomly takes ages to launch. Is there a way to wait for a 
> > > > specific
> > > > process to be invoked? If so, perhaps wait for `plasmashell` to be 
> > > > running,
> > > > then run the script, since it's usually one of the last things to run.
> > > > https://stackoverflow.com/a/9118509/9731176 might be of use.
> > > 
> > > I simply went with the option of starting all the applications from the
> > > saved session and then giving user a dialog box to OK the moving of the
> > > windows to their respective desktops, positioning them at the saved 
> > > location
> > > and resizing them as per the saved info.
> > > 
> > > The user just waits for all the application windows to start in the 
> > > current
> > > desktop and then, pressing OK does the work. There are tricks to center 
> > > the
> > > dialog box, keep it above all windows and activating it. kdotool works
> > > really well to do the rest.
> > > 
> > > Checkout the gist I posted. Most of code can be used as is. Only binary
> > > names need adjusting/addition/deletion.
> > 
> > What does kwin-fix_crazy_gesture.patch do? Seems to be a patch to the kwin
> > source code.
> 
> On all platforms where I have used the swipe gesture, it takes to the right
> desktop when you swipe left. With X11, it was like that (imagine years of
> motor tuning). With wayland, it drove me crazy because every time I wanted
> to go a desktop, it took me to the wrong desktop.
> 
> This behavior would be typically changeable but everything I tried using
> touchegg, confused the desktop navigation more: touchegg would move it to
> next but kwin would move it back, meaning that it did not change the
> desktop. After some real desperation, I took the drastic step of finding and
> toggling the gesture in code.

So this patch has actually nothing to do with session restore. I'd suggest
posting it somewhere else to avoid confusion.

I've had a quick look at your scripts but haven't tried them. They seem quite
complicated, but maybe they do more than mine. I've taken note of how you use
'kdotool windowmove' and have added this to my own scripts (don't know why I
hadn't noticed this before :-). I'll upload them shortly (still not very
familiar with Gist to be honest).

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to