Page 1 of 1

No virtual scrolling

Posted: 16 Nov 2007, 23:06
by roman2
Hi,

Salamander and its internal viewer doesn't seem to support virtual scrolling with my laptop's touchpad (by Synaptics). Whether the driver is set to use item under cursor or selected item, no scrolling occurs in Salamander.

This is on Windows Vista.

Posted: 17 Nov 2007, 21:44
by roman2
Additional info:

As with Skype, Salamander loses virtual scrolling ability only when launched as administrator. Sadly, though, unlike Skype, Salamander often needs to be run as administrator.

Using Synaptics touch pad driver.

Posted: 18 Nov 2007, 00:11
by th.
Maybe you have different settings for the Synaptics driver under the administrator account?

Posted: 18 Nov 2007, 21:23
by roman2
It's the same account. I was referring to running the program as administrator, which is an effect of using UAC under Vista.

Posted: 19 Nov 2007, 07:47
by Jan Rysavy
roman2 wrote:which is an effect of using UAC under Vista
Another nasty Vista "feature"?

Note (not relevant to the described problem): Unfortunately Salamander is fundamentally broken by stupid UAC implementation, we need to separate the working core to another process. A lot of work. Vista is the worst Windows compatibility-wise.

Posted: 19 Nov 2007, 08:04
by roman2
Another process (in OS terms)?

Posted: 19 Nov 2007, 10:40
by Jan Rysavy
roman2 wrote:Another process (in OS terms)?
Yes :(

Privileges can be elevated only for new process using UAC prompt (not for the running one). So Salamander must be divided into two processes. One will run with limited (standard) privileges, while second (executive core) can run with elevated privileges.

Posted: 20 Nov 2007, 00:24
by th.
Is the virtual scrolling working with other programs than Skype and Salamander when run as administrator?

Posted: 20 Nov 2007, 06:56
by zarevak
I don't have Vista, but I find it logical that windows handling and user input API is disabled from your userspace to elevated/Administrator userspace. Otherwise you'll be able to do some nasty stuff from programs with low permissions by sending user input messages to elevated programs.

Posted: 20 Nov 2007, 16:28
by roman2
th., after you asked, I tried it with Notepad and saw the same thing.

zarevak, thanks for your input. This gave me an idea to run SynTPEnh.exe (the name is self-explanatory, I think) as administrator too, and the problem went away. :D However, I don't understand the situation completely -- programs running as administrator let me input other types of input. I guess I am working as admin, by default, but all applications are given a reduced scope of privileges, by default. So, whatever's handled by the OS is handled as the administrator's level, and the rest -- with less privileges.

Posted: 21 Nov 2007, 10:10
by zarevak
That's right, programs under Vista are run with reduced privileges even when you are Administrator - it's one of the new security features. Microsoft hopes, that normal program doesn't need Administrator privileges and that when the program does something wrong (due to bug or under attack from hacker) it cannot damage your system.

When the program is run with full privileges its no point to block UI messaging API, because the the program can do all the damage itself already.

(As an administrator, you can delete files in Windows folder. Programs run as Administrator can delete them as well. But programs run with reduced privileges cannot change files in Windows folder nor delete them. It would be security hole to enable these programs to send Message to Salamander saying: I'm pressing F8 for the user to delete files in Windows folder)