After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 647646 - Keyboard layout preview window gets spanned over multiple screens
Keyboard layout preview window gets spanned over multiple screens
Status: RESOLVED FIXED
Product: libgnomekbd
Classification: Core
Component: Drawing
2.91.x
Other Linux
: Normal normal
: ---
Assigned To: libgnomekbd maintainers
Sergey V. Udaltsov
: 648582 649376 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2011-04-13 12:29 UTC by Radek Lát
Modified: 2011-06-11 12:49 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
"Huge" window (557.05 KB, image/png)
2011-04-13 12:29 UTC, Radek Lát
Details
"Normal" window (401.19 KB, image/png)
2011-04-13 12:30 UTC, Radek Lát
Details

Description Radek Lát 2011-04-13 12:29:39 UTC
Created attachment 185862 [details]
"Huge" window

Description of problem:
When opening Keyboard layout preview window on multiscreen setup, the windows get hidiously huge and spanned over multiple screens. See two screenshots where "normal" is taken with no external screen attached and "huge" is taken with one external screen.

Version-Release number of selected component (if applicable):
control-center-3.0.0.1-3.fc15.x86_64

How reproducible: 100%

Steps to Reproduce:
1. Obtain multiscreen setup with screens on left-right.
2. Press Alt+F2, type "gnome-control-center region" and press Enter key.
3. Go to "Layouts" tab.
4. Select some layout from the list and press the button with gear image below.
  
Actual results:
Preview window gets spanned over both screens.

Expected results:
Same as in one screen setup.
Comment 1 Radek Lát 2011-04-13 12:30:27 UTC
Created attachment 185863 [details]
"Normal" window
Comment 2 Bastien Nocera 2011-04-13 13:27:51 UTC
That's a bug libgnomekbd.
Comment 3 Sergey V. Udaltsov 2011-04-13 21:42:03 UTC
Currently, the preferred width of the window is 3/4 of the screen width. Will use the current monitor's parameters.
Comment 4 Matthias Clasen 2011-04-26 12:08:35 UTC
*** Bug 648582 has been marked as a duplicate of this bug. ***
Comment 5 Sergey V. Udaltsov 2011-05-03 21:27:50 UTC
Committed. Using primary monitor. Please check.
Comment 6 Radek Lát 2011-05-04 12:47:06 UTC
Checked on lastest commit from gnome GIT repository. Size is ok, but layout preview windows always appears on primary monitor (even when window with preferences is on other monitor). Is that correct behaviour? I checked other windows in gnome-control-center and they all launch new windows on current monitor, not primary.
Comment 7 Bastien Nocera 2011-05-04 14:15:36 UTC
*** Bug 649376 has been marked as a duplicate of this bug. ***
Comment 8 Sergey V. Udaltsov 2011-05-04 20:03:48 UTC
I am not sure how to obtain the "current" monitor. The preview is a separate application, independent of g-c-c. So I cannot even ask g-c-c which monitor to use...
Comment 9 Radek Lát 2011-05-05 09:20:40 UTC
Wouldn't it be then possible to just spawn the window on the same monitor, where the cursor is present? I think a lot of other applications does it like that.
Comment 10 Sergey V. Udaltsov 2011-06-11 12:49:39 UTC
http://git.gnome.org/browse/libgnomekbd/commit/?id=fc9f4a8f558ab93e1cd734ba41bc3268b8b1be2b

Radek, could you please check if that works for you?