summaryrefslogtreecommitdiffstats
path: root/unix/tkUnixWm.c
Commit message (Collapse)AuthorAgeFilesLines
* sync nmakehlp.c with Tcl versionjan.nijtmans2012-10-231-6/+6
|\ | | | | | | <p>purge spaces at end of lines <p>clean-up unix/Makefile.in after carbon removal
* \ 3554026 3561016 Better fix from Emiliano Gavilandgp2012-08-251-2/+2
|\ \ | |/
| * 3554026 3561016 Better fix from Emiliano Gavilan.dgp2012-08-251-2/+2
| |
* | 3554026,3561016 Stop crash with tearoff menus.dgp2012-08-231-0/+7
|\ \ | |/
| * 3554026,3561016 Stop crash with tearoff menus.dgp2012-08-231-0/+7
| |
| * SetOptions.3: minor doc fixjan.nijtmans2012-06-191-4/+4
| | | | | | | | make various other tables CONST (All backported from Tk 8.6)
* | Purge RCS Keywords.dgp2011-06-081-2/+0
|\ \ | |/
| * Purge RCS Keywords.dgp2011-06-081-2/+0
| |
| * [Patch #3129527]: Fix buffer overflow w/ GCC 4.5 and -D_FORTIFY_SOURCE=2.nijtmans2011-01-251-2/+2
| | | | | | | | Just the strcpy->memcpy part, to prevent anything like [Bug #3164879]
| * TIP #359: Extended Window Manager Hints support for 8.4patthoyts2010-01-231-4/+179
| |
| * * win/tkWinEmbed.c (TkpGetOtherWindow): do not panic if no windowhobbs2006-04-111-4/+10
| | | | | | | | | | | | * win/tkWinWm.c (UpdateGeometryInfo): is found - handle it in * unix/tkUnixEmbed.c (TkpGetOtherWindow): the caller. [Bug 1212056] * unix/tkUnixWm.c (Tk_CoordsToWindow, UpdateGeometryInfo):
| * * macosx/tkMacOSXWm.c (TkWmStackorderToplevelWrapperMap, ↵mdejong2005-06-011-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]
| * unix/tkUnixWm.c: Sync with CVS HEAD (r1.47):jenglish2005-01-141-81/+165
| | | | | | | | | | | | | | | | | | | | | | | | | | Fixes: #959973 "wm title bug" (support Unicode titles) Fixes: #742882 "Potential division by zero in gridded wm geometry" Use Tcl_GetTime instead of TclpGetTime [#874745] Use Tcl_Panic() instead of "panic" [#865264] Fixes: #632816 "cannot remove transient" Fixes: #568861 "Fix for wm minsize and maxsize commands" tests/unixWm.test, tests/wm.test: Updated test suite for #632816 (unixWm-37.3, unixWm-37.4, wm-grid-1.11, wm-grid-1.12) and #742882 (unixWm-20.9, unixWm-20.11).
| * backport compiler warning silencersdgp2004-10-271-5/+5
| |
| * Backport of 8.5 wm iconphoto that 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]
| * Fix for #1006686 "wm resizable command not working on Solaris/CDE"jenglish2004-08-101-1/+3
| | | | | | | | (patch from Colin McDonald).
| * Backported fix for bug #915350 "Tk sets min, max size in WM_HINTS when itjenglish2004-04-211-2/+9
| | | | | | | | shouldn't" and #922336 "Tk apps have no maximize window button under KDE-3.2.1"
* | [Patch #3129527]: Fix buffer overflow w/ GCC 4.5 and -D_FORTIFY_SOURCE=2.nijtmans2011-01-251-2/+2
| | | | | | | | Just the strcpy->memcpy part, to prevent anything like [Bug #3164879]
* | make TkSetTransientFor staticnijtmans2010-02-161-2/+2
| |
* | TIP #359: Extended window manager hints support for X11.patthoyts2010-01-201-11/+140
| |
* | [Bug 1163496]: Allow windows to be set to be transients for withdrawn mastersdkf2010-01-061-5/+9
| | | | | | | | correctly.
* | [Bug 2864685] backported extended window manager hinting from HEADpatthoyts2009-12-081-1/+33
| |
* | Fix [Bug 2902814]. XChangeProperty is misspecified for LP64, but we're stuckdkf2009-11-241-38/+41
| | | | | | | | with it.
* | Backport the fix for [Bug 2830420].dkf2009-08-011-23/+18
| |
* | Don't Panic [Bug 1789819].jenglish2009-04-041-20/+9
| |
* | [Bug 2239034] Only frame widgets are acceptable for [wm manage]patthoyts2008-11-151-1/+7
| |
* | 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]