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 561564 - note windows should be marked as transient
note windows should be marked as transient
Status: RESOLVED FIXED
Product: gnome-games-superseded
Classification: Deprecated
Component: gnome-sudoku
2.4.x
Other All
: Normal minor
: ---
Assigned To: GNOME Games maintainers
GNOME Games maintainers
Depends on:
Blocks:
 
 
Reported: 2008-11-19 18:34 UTC by Peter Berry
Modified: 2010-04-06 19:09 UTC
See Also:
GNOME target: ---
GNOME version: 2.23/2.24


Attachments
screenshot illustrating note popup being tiled by xmonad (62.54 KB, image/png)
2008-11-19 18:36 UTC, Peter Berry
  Details
Make the note editor transient (2.64 KB, patch)
2010-03-31 06:30 UTC, Jim Ross
committed Details | Review

Description Peter Berry 2008-11-19 18:34:12 UTC
I'm using xmonad, a tiling window manager that also has support for a
floating layer. It automatically puts windows that are marked as
transient in the floating layer, and tiles all the others (with a few
exceptions). Unfortunately the little window that pops up when you click
on a note in Sudoku is not marked as transient, so it gets tiled, which
is quite wrong.

Other information:
Comment 1 Peter Berry 2008-11-19 18:36:24 UTC
Created attachment 123057 [details]
screenshot illustrating note popup being tiled by xmonad

The popup is the window in the background; note that it even has a tab/title bar, whereas floated windows don't. Because there are no other windows on the tiled layer, the window manager gives it the entire screen (apart from the space reserved for the panel).

A workaround is to configure xmonad specifically to always float gnome-
sudoku's windows.
Comment 2 Jesse Zhang 2009-03-28 13:17:19 UTC
Yeah, the note editor also doesn't work in awesome.

set_transient_for(parent) should be able to fix this. However, the parameter 'parent' it needs is the main window. But the note editor actually knows nothing about the main window, so I think this is not straightforward to fix.
Comment 3 Jim Ross 2010-03-31 06:30:17 UTC
Created attachment 157557 [details] [review]
Make the note editor transient

I managed to figure this one out.  Zhang is right, the note editor is deeper then any access to the parent window.

The patch creates a new data member parent_win in NumberBox where the note editor is created.  It also adds the method SudokuNumberGrid.set_parent_for() which initializes all of the NumberBox's parent_win.  When a note editor is created - it calls set_transient_for()

I tested this patch on both xmonad and awesome - looks like it works.
Comment 4 Thomas Andersen 2010-04-06 19:09:26 UTC
Comment on attachment 157557 [details] [review]
Make the note editor transient

Committed to master:
http://git.gnome.org/browse/gnome-games/commit/?id=1a0232c816f7e8198602f0a594270dc081a615a1

Thanks :)