summaryrefslogtreecommitdiffstats
path: root/win/tkWinWm.c
Commit message (Collapse)AuthorAgeFilesLines
* Change XSetCommand signature to match Xorg, needed for Cygwinjan.nijtmans2012-05-241-1/+1
|
* Change TkpWmSetState signature to match UNIX, needed for Cygwinjan.nijtmans2012-05-091-131/+158
| | | | Don't check for cygwin in win32 static build Some more useful #defines for Cygwin
* Fix bug 533519jan.nijtmans2012-04-161-13/+4
|
* [Bug 3388350] mingw64 compiler warningsjan.nijtmans2011-08-161-23/+5
|
* 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]
* True commit.andreas_kupries2009-01-161-2/+2
|
* * win/tkWinWm.c (WmAttributesCmd): Fix a single use ofandreas_kupries2009-01-161-1/+6
| | | | SetWindowLongPtr which was not properly ifdef'd.
* * win/tkWinInt.h: remove CS_CLASSDC (not recommended for any apps now)hobbs2007-12-051-59/+31
| | | | | | | * win/tkWinX.c: and simplify WNDCLASS to one style. * win/tkWinWm.c: Reduce wrapper update for exStyle to toolwindow change only and set WS_EX_LAYERED as sticky (once set on a window, do not remove it) to reduce alpha transition flicker.
* * win/tkWinWm.c (WmIconphotoCmd): fix wm iconphoto RGBA issues.hobbs2007-06-101-4/+15
| | | | [Bug 1467997] (janssen)
* * doc/wm.n, tests/winWm.test:hobbs2006-12-011-25/+81
| | | | * win/tkWinWm.c: add -transparentcolor attribute for Windows.
* * win/tkWinEmbed.c (TkpGetOtherWindow): do not panic if no windowhobbs2006-04-111-3/+6
| | | | | | * win/tkWinWm.c (UpdateGeometryInfo): is found - handle it in * unix/tkUnixEmbed.c (TkpGetOtherWindow): the caller. [Bug 1212056] * unix/tkUnixWm.c (Tk_CoordsToWindow, UpdateGeometryInfo):
* * win/tkWinWm.c (WmProc): pass WM_QUERYENDSESSION message to Tk ashobbs2006-04-051-1/+13
| | | | WM_SAVE_YOURSELF wm protocol callback.
* 2005-11-16 Don Porter <dgp@users.sourceforge.net>dgp2005-12-011-3/+3
| | | | | | | | | | | *** 8.4.12 TAGGED FOR RELEASE *** * changes: Update changes for 8.4.12 release * mac/tkMacWm.c: Restored consistent error checking and * macosx/tkMacOSXWm.c: messages among different platform's * tests/wm.test: [wm grid] commands. [Bug 1323972]. * win/tkWinWm.c:
* * win/tkWinWm.c (WmAttributesCmd): set (no)topmost window aspecthobbs2005-12-011-2/+14
| | | | before rewrapping. [Bug 1086049]
* * win/tkWinWm.c (UpdateWrapper): Don't install frame menu on deadhobbs2005-11-301-2/+4
| | | | window. Backport of 1233635
* * 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]
* * win/tkWinWm.c (WinSetIcon): fix GCLP_ICONSM -> GCLP_HICONSM.hobbs2005-03-081-2/+2
|
* * win/tkWinWm.c (TkWinGetIcon): fix toplevel retrieval forhobbs2005-02-111-10/+11
| | | | determining icon ref (potential crash). [Bug 1105738]
* * win/tkWinWm.c (TkWinWmCleanup): clean up layered window classhobbs2005-01-041-1/+10
| | | | This caused crash in reinit of Tk (as seen in plugin).
* * tests/wm.test: Add Win32 test cases for attributesmdejong2004-10-291-9/+11
| | | | | | subcommand. * win/tkWinWm.c (WmAttributesCmd): Fixup broken option processing logic for attributes subcommand.
* * win/tkWinWm.c (UpdateWrapper): pass SWP_NOOWNERZORDER tohobbs2004-10-211-2/+3
| | | | | SetWindowPos when maintaining win Z order, to prevent parent from flashing (adjusting Z order).
* Backport of 8.5 wm iconphoto that added support for Tk photohobbs2004-10-051-6/+117
| | | | | | | | * 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]
* * win/tkWinInt.h (TkWinDisplayChanged): added declhobbs2004-09-231-1/+107
| | | | | | | | * win/tkWinX.c (TkWinDisplayChanged, TkpOpenDisplay): Correctly * win/tkWinWm.c (InvalidateSubTreeDepth, WmProc): handle color and screen resolution changes. Tested for 16/24/32 bpp changes on XP. May need more fixes for 8bpp switch, use of special colormaps, or other special palette handling cases. [Bug 223689]
* * win/tkWinWm.c: Rework WS_EX_LAYERED and LWA_ALPHAmdejong2004-09-231-3/+5
| | | | defines so that compiling with mingw works again.
* * win/tkWinWm.c (UpdateWrapper, WmAttributesCmd): handle attributehobbs2004-09-211-41/+41
| | | | | settings prior to window mapping and resort to more forceful wrapper update again for -toolwindow (to remove it from taskbar).
* (UpdateWrapper): don't adjust Z order of TOPMOST window.hobbs2004-09-181-12/+28
| | | | | (WmAttributesCmd): don't call UpdateWrapper for -disabled or -toolwindow attr changes.
* * win/tkWinWm.c (WmAttributesCmd): correct -alpha 0.0/1.0 settinghobbs2004-09-181-19/+14
| | | | and round the value.
* * tests/winWm.test: Add 'wm attributes -alpha' to control toplevelhobbs2004-09-171-20/+156
| | | | | * win/tkWinInt.h: alpha transparency on Win2K/XP+. * win/tkWinWm.c: TIP #222 [Patch 892194]
* * win/tkWinWm.c (UpdateWrapper): Ensure that we maintain Z orderhobbs2004-09-171-11/+32
| | | | | | | * tests/winWm.test: and focus of preexisting window when replacing the wrapper window. * win/tkWinWm.c (WmIconwindowCmd): Replace bogus call to XWithdrawWindow with proper code. (mdejong)
* * win/tkWinWm.c (ReadIconFromFile): fix mem alloc to get the righthobbs2004-09-131-15/+10
| | | | size for both icons ('?:' order of precedence mistake).
* (UpdateWrapper): update to Kovalenko to account for whether thehobbs2004-09-101-14/+16
| | | | | | override window has a transient parent, and apply WS_POPUP in the correct case. The makes splash screens pop up as well as making dropdowns not grab focus away from the parent.
* * win/tkWinWm.c (ActivateWindow): SetFocus to grab window whenhobbs2004-09-101-4/+9
| | | | clicking outside the grab window hierarchy. [Bug 220908]
* * win/tkWinWm.c: backport of several items from 8.5 head:hobbs2004-09-101-64/+152
| | | | | | | | | | | | | | (ReadIconFromFile): when using SHGetFileInfo to retrieve icon, get regular icon as well for correct Alt-Tab icon. (hobbs) Fix for #742882 "Potential division by zero in gridded wm geometry" (jenglish) (UpdateWrapper): Let overrideredirect'ed window's wrapper be the child of desktop window, thus making it to behave more similarly to X11 Override Redirect. Esp. useful for combobox-like megawidgets. (kovalenko) (InstallColormaps): Check for TK_ALREADY_DEAD to avoid handling of dead windows. (kovalenko) Change 'panic' to 'Tcl_Panic' (davygrvy)
* * win/tkWinDialog.c (Tk_MessageBoxObjCmd): Inherit the icon fromhobbs2004-08-201-13/+86
| | | | | * win/tkWinInt.h: the -parent window for * win/tkWinWm.c (TkWinGetIcon): the MessageBox.
* Modified UpdateWrapper to fix bug 767176chengyemao2004-05-151-3/+3
|
* * win/tkWinX.c (TkWinXInit): Move cleanup into an exit handlerhobbs2002-12-061-1/+6
| | | | | | * win/tkWin32Dll.c (DllMain): to ensure that it will be called * win/tkWinWm.c (TkWinWmCleanup): without having to unload the dll. Also reset the static int initialized on cleanup to allow reinit.
* * 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]
* Fix for Tk Bug #592201 "wm transient fails with two masters".jenglish2002-08-081-4/+4
|
* * win/tkWinFont.c: Additional changes to fix CONST warnings ondgp2002-08-051-5/+5
| | | | * win/tkWinWM.c: Windows due to latest patch. Tks Vince Darley.
* Objectifed wm. [Patch #564521]pspjuth2002-07-251-1347/+2310
|
* code cleanupvincentdarley2002-07-171-38/+80
|
* WinWm fixesvincentdarley2002-07-161-20/+216
|
* * Fixes for [Bug 581627].dgp2002-07-151-2/+2
| | | | | | | | * generic/tkTest.c: Test commands not supported on non-Unix platforms should not be defined there in the first place. * tests/constraints.tcl: Fixed "secureserver" constraint. * tests/unixWm.test: Some tests needed "unix" constraint. * win/tkWinWm.c: Typo in error message.
* * tests/winWm.test: Verify that both an unmappedmdejong2002-06-241-3/+13
| | | | | | | | | | | | | | | | | | | | and already mapped toplevel are raised and receive the focus when deiconified. * tests/wm.test: Add wm deiconify tests. Check that a toplevel that has never been mapped is not mapped by the deiconify command since it should be done at idle by MapFrame. * win/tkWinWm.c (Tk_WmCmd): Check the WM_NEVER_MAPPED flag while processing the wm deiconify command. The WM_UPDATE_PENDING flag should never be set when WM_NEVER_MAPPED is set, but double check so that the implementation is more explicit and matches the comment just above. Return without invoking TkWmRestackToplevel or TkSetFocusWin on a toplevel that has never been mapped. This fixes a bug where a toplevel is mapped with the wrong size and is then resized by the idle call to MapFrame. [Tk bug 233150]
* * win/tkWinWm.c (UpdateGeometryInfo): remove the check for a nullhobbs2002-06-241-3/+2
| | | | | | | wrapper introduced in r1.41 on 2002-06-15 because it prevented geometry setting from taking effect if the window was not on the screen. Another check may go in it's place as IsIconic and IsZoomed should not be passed NULL.
* * tests/wm.test: Remove invalid minsize test. Add updatemdejong2002-06-241-4/+4
| | | | | | | | | | calls to wm transient tests so that idle handlers get run. This is needed to get the tests to pass under Win32. * unix/tkUnixWm.c (WmWaitMapProc): Move the special transient withdrawn check into the if body to make it easier to set a breakpoint on this test inside a debugger. No functional changes. * win/tkWinWm.c (WmWaitVisibilityOrMapProc): Ditto.
* * doc/wm.n: TIP #95 Windows implementation andhobbs2002-06-221-51/+49
| | | | | | | | * mac/tkMacWm.c (Tk_WmCmd): docs with mac and unix stubs. * unix/tkUnixWm.c (Tk_WmCmd): * win/tkWinWm.c (Tk_WmCmd): * tests/unixWm.test: * tests/winWm.test: more wm attr tests will be needed.
* * tests/wm.test: Add tests to make sure a withdrawnmdejong2002-06-221-2/+29
| | | | | | | | | | | transient does not get remapped by state changes in the master. * unix/tkUnixWm.c (Tk_WmCmd, WmWaitMapProc): * win/tkWinWm.c (Tk_WmCmd, WmWaitVisibilityOrMapProc): Add a WM_TRANSIENT_WITHDRAWN flag that gets set by the withdraw, deiconify, or state wm subcommands. Check this flag before mapping a transient when processing a MapNotify event. [Tk bug 570764]
* * generic/tkInt.h:hobbs2002-06-151-34/+107
| | | | | | | * generic/tkCmds.c (Tk_WmObjCmd): * unix/tkUnixWm.c (Tk_WmCmd): * win/tkWinWm.c (Tk_WmCmd): changed wmTracing from being an int to just a bit in the flags variable (TK_DISPLAY_WM_TRACING)