wesnoth handles "Enter" pressed when another application has focus

Having trouble with the game? Report issues and get help here. Read this first!

Moderator: Forum Moderators

Forum rules
Before reporting issues in this section, you must read the following topic:
Post Reply
User avatar
josteph
Inactive Developer
Posts: 741
Joined: August 19th, 2017, 6:58 pm

wesnoth handles "Enter" pressed when another application has focus

Post by josteph »

Open the "Attack Enemy" dialog. Press Alt+F2; the desktop environment's "run command" dialog opens and gets focus. Press Enter; the "run command" dialog closes, the Attack Dialog closes too and the attack commences. This also happens with the "Choose an advancement" dialog instead of the "Attack enemy" dialog, and with alt-tabbing to xfce4-screenshooter instead of Alt+F2.

Enter was pressed when another application had focus so wesnoth really shouldn't act on it.

Is this a wesnoth problem or an upstream problem? I didn't see any related bugs. #2691 is about a crash in modeless dialogs, but does involve keypress callbacks.

Happens with 1.14.5 and master.
gfgtdf
Developer
Posts: 1432
Joined: February 10th, 2013, 2:25 pm

Re: wesnoth handles "Enter" pressed when another application has focus

Post by gfgtdf »

why is this in the forums instead of the bugtracker?

In any case please provide more information, what os do you use, do you run wesnoth in fullscreen, what libaray versions do you use.
Scenario with Robots SP scenario (1.11/1.12), allows you to build your units with components, PYR No preperation turn 1.12 mp-mod that allows you to select your units immideately after the game begins.
User avatar
josteph
Inactive Developer
Posts: 741
Joined: August 19th, 2017, 6:58 pm

Re: wesnoth handles "Enter" pressed when another application has focus

Post by josteph »

Linux, happens in both fullscreen and windowed, library versions below.

The Battle for Wesnoth version 1.14.5+dev (5fa8edf9a18-Modified)
Running on Debian GNU/Linux 9.5 (stretch)

Game paths
==========

Data dir: /home/USER/src/wesnoth
User config dir: /home/USER/.config/wesnoth
User data dir: /home/USER/.local/share/wesnoth/1.14
Saves dir: /home/USER/.local/share/wesnoth/1.14/saves
Add-ons dir: /home/USER/.local/share/wesnoth/1.14/data/add-ons
Cache dir: /home/USER/.cache/wesnoth

Libraries
=========

Boost: 1.62
OpenSSL/libcrypto: 1.1.0f (runtime 1.1.0f)
Cairo: 1.14.8 (runtime 1.14.8)
Pango: 1.40.5 (runtime 1.40.5)
SDL: 2.0.8 (runtime 2.0.8)
SDL_image: 2.0.1 (runtime 2.0.1)
SDL_mixer: 2.0.1 (runtime 2.0.1)
SDL_ttf: 2.0.14 (runtime 2.0.14)

Features
========

Experimental OpenMP support: no
JPG screenshots: no
Lua console completion: yes
Legacy bidirectional rendering: yes
D-Bus notifications back end: yes
Post Reply