summaryrefslogtreecommitdiffstats
path: root/unix/tkUnixWm.c
Commit message (Collapse)AuthorAgeFilesLines
* Make more internal tables "const"nijtmans2010-02-051-2/+2
| | | | tk*Decls.h (regenerated with new genStubs.tcl from Tcl)
* TIP #359: Extended window manager hints support for X11.patthoyts2010-01-191-12/+140
| | | | | | | | | | | | | Modern unix window managers use a set of window properties to give hints as to the purpose of a toplevel window. They then use these hints to apply various animation and decoration options based on the type (dialog, menu, tooltip and more). This patch adds a [wm attributes $w -type] option to control and read the type hint and makes use of this for the ttk::combobox and the dialogs raised from the Tk library scripts. Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
* [Bug 1163496]: Allow windows to be set to be transients for withdrawn mastersdkf2010-01-061-5/+9
| | | | correctly.
* Ooops!dkf2009-12-091-2/+2
|
* Improve generation of EWMH hints for windows.dkf2009-12-091-77/+94
|
* [Bug 2864685] Set correct extended window manager hints on Tk menus.patthoyts2009-12-081-1/+33
|
* Fix [Bug 2902814]. XChangeProperty is misspecified for LP64, but we're stuckdkf2009-11-241-100/+109
| | | | with it.
* Oops; forgot to fix a spot for 64-bitdkf2009-08-011-2/+2
|
* Don't assume that we're on little-endian clients. [Bug 2830420]dkf2009-08-011-26/+21
|
* Don't Panic [Bug 1789819].jenglish2009-04-031-20/+9
|
* - eliminate some unnessary type castsnijtmans2009-01-281-17/+16
| | | | | - some internal const decorations - spacing
* fix warningdas2008-12-101-2/+2
|
* minor improvementsdkf2008-12-091-17/+17
|
* TIP 337dgp2008-12-091-6/+5
| | | | | | | | | | | | | | | | | | | | | | * generic/tkBind.c: Updated callers of Tcl_BackgroundError() * generic/tkCanvas.c: to use the new routine * generic/tkEntry.c: Tcl_BackgroundException() as appropriate. * generic/tkImgBmap.c: * generic/tkListbox.c: * generic/tkSelect.c: * generic/tkTextDisp.c: * generic/tkTextWind.c: * macosx/tkMacOSXHLEvents.c: * macosx/tkMacOSXMenu.c: * macosx/tkMacOSXMenus.c: * macosx/tkMacOSXScale.c: * macosx/tkMacOSXWindowEvent.c: * unix/tkUnixScale.c: * unix/tkUnixWm.c: * win/tkWinButton.c: * win/tkWinMenu.c: * win/tkWinScrlbr.c: * win/tkWinWm.c:
* Minor simplification in fix for [Bug 2312027]:nijtmans2008-11-181-4/+4
| | | | | | | | no need to malloc and copy photo type name because it is a constant to begin with. Convert Tcl_SetResult(......, TCL_DYNAMIC) to Tcl_SetResult(......, TCL_VOLATILE), in preparation for TIP #340
* bug 2239034: restrict [wm manage] to Frame type widgetspatthoyts2008-11-151-1/+7
|
* Lots of small changes to make code more pretty and C89-like.dkf2008-11-081-4/+4
|
* Add "const" to many internalnijtmans2008-10-171-7/+7
| | | | | | | | const tables, so those will be put by the C-compiler in the TEXT segment in stead of the DATA segment. This makes those table sharable in shared libraries.
* * unix/tkUnixWm.c: Restored consistency of error messages fromdgp2008-10-081-3/+3
| | | | | * macosx/tkMacOSXWm.c: [wm iconphoto] with the test suite and across all platforms. [Bug 2021443]
* Greatly clean up Tk's handling of the writability of the Tcl result object.dkf2008-10-051-3/+3
|
* fix [2021443] inconsistant "wrong # args" messages (for Tk)nijtmans2008-07-231-7/+7
|
* Get rid of pre-C89-isms (esp. CONST vs const).dkf2008-04-271-99/+98
|
* merge stable branch onto HEADdgp2007-12-131-1/+1
|
* * generic/tkFocus.c, generic/tkFrame.c, generic/tkInt.h:hobbs2007-10-151-7/+154
| | | | | | | | * macosx/tkMacOSXButton.c, macosx/tkMacOSXMenubutton.c: * macosx/tkMacOSXWm.c, unix/tkUnixWm.c, win/tkWinWm.c: * doc/wm.n, tests/wm.test: TIP #125 implementation [Bug 998125] Adds [wm manage|forget] for dockable frames. Finished X11 and Windows code, needs OS X completion.
* header cleanupdgp2007-09-071-3/+1
|
* Minor syntactic stuffdkf2007-02-271-89/+94
|
* various "const" additions, in line with TIP #27nijtmans2007-01-051-3/+3
| | | | fix bug #1627732
* Fix warnings and (unfortunately introduced with last commit) errorsdkf2006-12-111-15/+24
|
* Support the _NET_WM_PING protocol from EWMH. There's no reason to dodkf2006-12-111-36/+119
| | | | | anything other than what is implemented, so no need for additional script control over it.
* * win/tkWinEmbed.c (TkpGetOtherWindow): [Bug 1212056] do not panichobbs2006-05-291-3/+9
| | | | | | * unix/tkUnixEmbed.c (TkpGetOtherWindow): if no window is found - * unix/tkUnixWm.c (Tk_CoordsToWindow, UpdateGeometryInfo): handle it in the caller
* Added support for [wm attributes] on X11 [TIP#231, patch#1062022].jenglish2005-11-161-26/+374
|
* Whitespace/style/ANSI improvementsdkf2005-10-211-1538/+1490
|
* * macosx/tkMacOSXWm.c (TkWmStackorderToplevelWrapperMap, ↵mdejong2005-04-071-5/+7
| | | | | | | | | | | TkWmStackorderToplevel): * unix/tkUnixWm.c (TkWmStackorderToplevelWrapperMap, TkWmStackorderToplevel): * win/tkWinWm.c (TkWmStackorderToplevelWrapperMap, TkWmStackorderToplevel): Fix panic in wm stackorder when a toplevel is created on another diplay. The code now ignores toplevels that have a display that does not match the display of the parent window. [Bug 1152809]
* silence compiler warningsdgp2004-10-061-5/+5
|
* * doc/wm.n (iconphoto): added support for Tk photohobbs2004-10-051-3/+201
| | | | | | | | * generic/tkInt.h (TkDisplay): images as titlebar icons. TIP #159 * win/tkWinWm.c (WmIconphotoCmd): wm iconphoto ?-default? image1 ... * macosx/tkMacOSXWm.c (WmIconphotoCmd): Implemented for Win/Unix, * unix/tkUnixWm.c (WmIconphotoCmd): stubbed out for OS X. * tests/wm.test, tests/unixWm.test, tests/winWm.test: [Bug 815751]
* Cast argument 7 of XChangeProperty to 'const unsigned char *'jenglish2004-08-191-3/+4
| | | | | (from 'const char *') to satisfy Solaris 8 Forte C compiler [Bug #1012325]
* Fix for #1006686 "wm resizable command not working on Solaris/CDE"jenglish2004-08-101-1/+3
| | | | (patch from Colin McDonald).
* Set _NET_WM_NAME and _NET_WM_ICON_NAME (freedesktop.org)jenglish2004-07-051-36/+67
| | | | | | | in addition to WM_NAME and WM_ICON_NAME (ICCCM). This allows the full Unicode character set to be used in window manager strings (but only for newer WMs that support the EWMH spec). [Tk Bug #959973]
* Fix for #742882 "Potential division by zero in gridded wm geometry"jenglish2004-06-161-5/+15
|
* Fix for bug #915350 "Tk sets min, max size in WM_HINTS when it shouldn't"jenglish2004-04-041-2/+9
| | | | and #922336 "Tk apps have no maximize window button under KDE-3.2.1"
* Replaced TclpGetTime() with Tcl_GetTime(), to removejenglish2004-01-311-3/+2
| | | | dependency on tclInt.h [Bug 874745].
* * generic/tk3d.c: All uses of 'panic' (the macro) changeddavygrvy2004-01-131-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tkBind.c: to 'Tcl_Panic' (the function). The #define * generic/tkBitmap.c: of panic in tcl.h clearly states it is * generic/tkCanvArc.c: deprecated in the comments. * generic/tkCanvBmap.c: [Tcl Patch 865264] * generic/tkCanvImg.c: * generic/tkCanvLine.c: * generic/tkCanvPoly.c: * generic/tkCanvText.c: * generic/tkCanvWind.c: * generic/tkColor.c: * generic/tkConfig.c: * generic/tkCursor.c: * generic/tkError.c: * generic/tkEvent.c: * generic/tkFocus.c: * generic/tkFont.c: * generic/tkFrame.c: * generic/tkGC.c: * generic/tkGrid.c: * generic/tkImgBmap.c: * generic/tkImgPhoto.c: * generic/tkImgUtil.c: * generic/tkMenu.c: * generic/tkObj.c: * generic/tkPack.c: * generic/tkPlace.c: * generic/tkRectOval.c: * generic/tkSelect.c: * generic/tkText.c: * generic/tkTextBTree.c: * generic/tkTextDisp.c: * generic/tkTextImage.c: * generic/tkTextIndex.c: * generic/tkTextMark.c: * generic/tkTextWind.c: * generic/tkVisual.c: * generic/tkWindow.c: * mac/tkMacAppInit.c: * mac/tkMacAppearanceStubs.c: * mac/tkMacButton.c: * mac/tkMacDraw.c: * mac/tkMacEmbed.c: * mac/tkMacFont.c: * mac/tkMacInit.c: * mac/tkMacMenus.c: * mac/tkMacPort.h: * mac/tkMacSubwindows.c: * mac/tkMacWm.c: * mac/tkMacXStubs.c: * macosx/tkMacOSXEmbed.c: * macosx/tkMacOSXFont.c: * macosx/tkMacOSXMenus.c: * macosx/tkMacOSXNotify.c: * macosx/tkMacOSXPort.h: * macosx/tkMacOSXSubwindows.c: * macosx/tkMacOSXWm.c: * macosx/tkMacOSXXStubs.c: * unix/tkUnix3d.c: * unix/tkUnixColor.c: * unix/tkUnixEmbed.c: * unix/tkUnixEvent.c: * unix/tkUnixFocus.c: * unix/tkUnixFont.c: * unix/tkUnixSelect.c: * unix/tkUnixSend.c: * unix/tkUnixWm.c: * win/tkWin3d.c: * win/tkWinButton.c: * win/tkWinColor.c: * win/tkWinDialog.c: * win/tkWinDraw.c: * win/tkWinEmbed.c: * win/tkWinFont.c: * win/tkWinPixmap.c: * win/tkWinPointer.c: * win/tkWinScrlbr.c: * win/tkWinWm.c: * win/tkWinX.c:
* Delete WM_TRANSIENT_FOR property instead of setting it to Nonejenglish2003-10-151-7/+10
| | | | when making a window nontransient [Bug #632816 "cannot remove transient"]
* * doc/wm.n (minimize, maximize): Remove claimmdejong2003-03-121-24/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | that the resizable command keeps scripts from changing the size of windows since it is not true. The resizable command only applies to user sizing via user interaction. * tests/unixWm.test: Replace broken tests with the nonPortable constraint with new tests for maxsize and minsize options. These tests verify that setting the minsize and maxsize will resize the window if needed, and that the wm hints will be updated with the new sizes. * tests/wm.test: Add an exhaustive set of tests for the wm maxsize and wm minsize commands. These tests verify that setting the minsize and maxsize will resize the window if needed. These tests have only been run under Win98 and Window Maker under Linux, so further tweaking may be needed for other systems. * unix/tkUnixWm.c (UpdateGeometryInfo, UpdateSizeHints): Fixup comments and initialization for the minWidth, minHeight, maxWidth, maxHeight, width, and height members of the WmInfo struct. Check to ensure that a new toplevel window size is not larger than the maxsize or smaller than the minsize when updating the geometry at idle time. Pass new width and height values to the UpdateSizeHints method so that it can properly set the window min and max sizes for a window that cannot be resized by the user. This fixes a bug where the window resizes back to the original size when the user clicks on the window border. * win/tkWinWm.c (UpdateGeometryInfo): Fixup comments and initialization for the minWidth, minHeight, maxWidth, maxHeight, width, and height members of the WmInfo struct. Check to ensure that a new toplevel window size is not larger than the maxsize or smaller than the minsize when updating the geometry at idle time. [Patch 568861]
* WaitForEvent(): process Map and Unmap eventsjenglish2002-12-271-9/+13
| | | | | | | as well as Configure events during WaitFor{Configure|Map}Notify. Fixes [Bug 578569] (WaitForMapNotify could process Map and Unmap events out of order, making Tk think a window was unmapped when it really wasn't).
* * tests/wm.test: Add wm-transient-6.3 tomdejong2002-12-011-17/+9
| | | | | | | | | | | check that a transient remains withdrawn when it is first withdrawn and then turned into a transient. * unix/tkUnixWm.c: * win/tkWinWm.c: Replace WM_TRANSIENT_WITHDRAWN with WM_WITHDRAWN and set this flag whenever a window is explicitly withdrawn. This fixes the test case added above. [Bug 644356]
* * tests/wm.test:hobbs2002-09-021-155/+18
| | | | | * unix/tkUnixWm.c: remove possible 2-second delay in 'raise'. [Patch #601518] (english) TIP #107
* * unix/tkUnixWm.c (WmTransientCmd): Apply fix formdejong2002-08-081-4/+4
| | | | | wm transient assertion error that was applied to tkWinWm.c for Tk Bug #592201.
* * tests/wm.test: Add deleteWindows at start ofmdejong2002-08-081-4/+18
| | | | | | | new transient tests so they do not fail if the toplevels already exist. * unix/tkUnixWm.c: Revert patch for Tk Bug #592201 which incorrectly removed numTransients member.
* Fix for Tk Bug #592201 "wm transient fails with two masters".jenglish2002-08-081-18/+4
|