LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Wesnoth only detects mouse clicks in KDE (http://www.linuxquestions.org/questions/slackware-14/wesnoth-only-detects-mouse-clicks-in-kde-4175447360/)

Stephen Morgan 01-26-2013 02:56 PM

Wesnoth only detects mouse clicks in KDE
 
Slackware-current 64bit, mainly using E17 as window manager. As I say, Battle for Wesnoth doesn't detect clicks. It detects mouse position, because buttons highlight when the mouse goes over them, but not clicks. I tried it in E17, and also fluxbox, with the same results. Then I tried it in KDE, and it works fine.

Wesnoth installed from SBo. Starting from terminal doesn't give any errors, either. I have no similar problems with other programmes.

willysr 01-26-2013 08:47 PM

I'm the current maintainer of Wesnoth in SBo and yes, i used KDE on my daily basis, so i found it working fine on my system and since i don't have E17 and fluxbox on my system, i can't reproduce it on my system. I also used 32 bit machine, but i don't think it would cause some problem when clicking. I think it's DE's related.

so far, i didn't find any bug report about this before, but i will try to help solve this problem out.

First, i need some information from you:
1. Have you used the latest SlackBuild or do you perform an upgrade using an old SlackBuild and changed the VERSION line instead?
2. I'm assuming you are using 1.10.5. Am i correct?
3. Have you tried to remove .wesnoth and restart the application? There's a possibility of having this problem due to an old configuration
4. Do you use full screen of windowed mode?

I found a patch for sdl that might be the culprit
If you don't mind, head to my SlackHacks and try to rebuild SDL and then followed by wesnoth rebuild.
Hopefully this should fix your clicking bug.

Anyway, let me know if it's working since i might have to report this to Patrick if it happened to fix the problem as it might affect other application as well.

Update:
I have built E17 and installed Fluxbox on my machine and tested the new SDL package and rebuilt Wesnoth afterwards and i'm able to click on every buttons. So i can confirm that the SDL package is the culprit. You may want to recompile SDL with the patch available on my SlackHacks repository above

Stephen Morgan 01-27-2013 04:51 AM

Quote:

Originally Posted by willysr (Post 4878256)
1. Have you used the latest SlackBuild or do you perform an upgrade using an old SlackBuild and changed the VERSION line instead?

Latest slackbuild, through sbopkg in fact.

Quote:

2. I'm assuming you are using 1.10.5. Am i correct?
You are correct.

Quote:

3. Have you tried to remove .wesnoth and restart the application? There's a possibility of having this problem due to an old configuration
Removed ~/.config/wesnoth, ~/.local/share/wesnoth and ~/.cache/wesnoth, to no effect.

Quote:

4. Do you use full screen of windowed mode?
Ah, this is odd. It was windowed, because it's windowed by default and I couldn't click preferences, but now I've set it to fullscreen while in KDE then gone back into E17, and it works fine in fullscreen. The odd thing is that when I switch it back to windowed mode it stops registering clicks again, except clicking on "Full screen" again.

Quote:

I found a patch for sdl that might be the culprit
If you don't mind, head to my SlackHacks and try to rebuild SDL and then followed by wesnoth rebuild.
Hopefully this should fix your clicking bug.

Anyway, let me know if it's working since i might have to report this to Patrick if it happened to fix the problem as it might affect other application as well.

Update:
I have built E17 and installed Fluxbox on my machine and tested the new SDL package and rebuilt Wesnoth afterwards and i'm able to click on every buttons. So i can confirm that the SDL package is the culprit. You may want to recompile SDL with the patch available on my SlackHacks repository above
I will do so.

bobzilla 01-27-2013 04:58 AM

There was a similar topic several days ago:
http://www.linuxquestions.org/questi...es-4175446380/

It's not a Wesnoth bug. The problem here is SDL 1.2.14. This shows up only when SDL game is started in windowed mode. Not in full screen. Take look at the above link for more info. ;)

willysr 01-27-2013 10:00 AM

Didn't notice that thread, sorry
Yeah, SDL is the culprit and the solution is the same as bobzilla has pointed

willysr 02-08-2013 12:34 AM

Finall SDL is now fixed in -Current and upgraded to latest version as well


All times are GMT -5. The time now is 06:39 AM.