You are not logged in.

#1 2007-02-23 15:26:30

chaosgeisterchen
Member
From: Kefermarkt, Upper Austria
Registered: 2006-11-20
Posts: 550

[KDE[mod]] Disable Window-Movement for a specific application

Good afternoon,

I recently started to play Diablo II (+ Expansion) [again], but this time I tried to play it under WINE. If I disable the WINE feature to let the WM control the WINE windows it runs fine but if I accidentally press any wrong key the screen is all messed up because KDE again gets the focus, but the WINE fullscreen window still stays in foreground.

If I let KWin control the WINE window I cannot use the [rather essential] loot-function of the game, as I have to use the mouse while having the ALT key pressed. This won't work, because it is the KWin control for moving the window. As KDE provides the possibility to define settings for specific applications, I created a new definition, applying to the application Game_crk.exe which is the name of the executable. I ticked 'Disable global hotkeys' in order to disable the KWin event when having the ALT key pressed, but it does not seem to work.

If you seek for further information, please tell me about it, as I haven't used the KWin definitons so far and I would love to get it to work (it's possible, I assume). It has to be said, that Diablo runs fullscreen, which could be a problem as well.

Just tell me if you have any ideas how to solve it.
Thanks in advance

cg


celestary
Intel Core2Duo E6300 @ 1.86 GHz
kernel26
KDEmod current repository

Offline

#2 2007-02-24 10:35:43

Pajaro
Member
Registered: 2004-04-21
Posts: 884

Re: [KDE[mod]] Disable Window-Movement for a specific application

i think that you can create kwin rules to disable shortcuts on the windows of Diablo II. To do that. Window behaivour -> Advanced. I have no more information.

Offline

#3 2007-02-24 14:20:58

Stalwart
Member
From: Latvia, Riga
Registered: 2005-10-18
Posts: 445
Website

Re: [KDE[mod]] Disable Window-Movement for a specific application

I always rebind window movement key to winkey


IRC: Stalwart @ FreeNode
Skype ID: thestalwart
WeeChat-devel nightly packages for i686

Offline

#4 2007-02-24 19:54:38

chaosgeisterchen
Member
From: Kefermarkt, Upper Austria
Registered: 2006-11-20
Posts: 550

Re: [KDE[mod]] Disable Window-Movement for a specific application

Stalwart wrote:

I always rebind window movement key to winkey

How to do so? I was not yet able to find the point, where ALT + mouse movement is defined as a global hotkey.


celestary
Intel Core2Duo E6300 @ 1.86 GHz
kernel26
KDEmod current repository

Offline

#5 2007-02-25 11:30:04

Pajaro
Member
Registered: 2004-04-21
Posts: 884

Re: [KDE[mod]] Disable Window-Movement for a specific application

Right click on any KDE window decoration -> Setup window behaivour -> Actions -> (2nd tab) Window actions.

There you'll see a combo that says Alt. Change it to Meta.

Again, i use spanish, so the texts may differ a bit from what i wrote.

Last edited by Pajaro (2007-02-25 11:30:47)

Offline

#6 2007-02-25 11:55:44

chaosgeisterchen
Member
From: Kefermarkt, Upper Austria
Registered: 2006-11-20
Posts: 550

Re: [KDE[mod]] Disable Window-Movement for a specific application

Found it. My misery lies within the fact, that Diablo is always starting fullscreen - is there any way to prevent it from doing so, if I may ask?


celestary
Intel Core2Duo E6300 @ 1.86 GHz
kernel26
KDEmod current repository

Offline

#7 2007-02-25 12:04:59

Pajaro
Member
Registered: 2004-04-21
Posts: 884

Re: [KDE[mod]] Disable Window-Movement for a specific application

run winecfg

Graphics -> Emulate virtual desktop

There you set the size of the virtual desktop.

probably editing the wine config file you can set this parameter only for Diablo II, but i don't know how to.

If it is not possible, you can create an alternate .wine directory for Diablo II. Let's call it .wine_diablo2, and then:

Reinstall Diablo II in that wine path:

WINEPREFIX="~/.wine_diablo2" wine "D:\setup"

modify shortcuts to Diablo II so that they have WINEPREFIX="~/.wine_diablo2".

run WINEPREFIX="~/.wine_diablo2" winecfg to create the virtual desktop

Last edited by Pajaro (2007-02-25 12:05:57)

Offline

#8 2007-02-25 15:18:21

chaosgeisterchen
Member
From: Kefermarkt, Upper Austria
Registered: 2006-11-20
Posts: 550

Re: [KDE[mod]] Disable Window-Movement for a specific application

It was quite easy.. I emulated the virtual desktop, redefined the action key and then unticked the emulation, restarted the WINE server and now everything works as expected.

Thanks a lot!


celestary
Intel Core2Duo E6300 @ 1.86 GHz
kernel26
KDEmod current repository

Offline

Board footer

Powered by FluxBB