summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2016-04-25 05:35:41 (GMT)
committerfvogel <fvogelnew1@free.fr>2016-04-25 05:35:41 (GMT)
commit1a64042e82238940c820745c5057df95c98e1c5d (patch)
treebbfa2bfb708400b1ddc80e641435274c1792c315
parent6250eb699b51c0410198ede173942cb77c262bc9 (diff)
downloadtk-1a64042e82238940c820745c5057df95c98e1c5d.zip
tk-1a64042e82238940c820745c5057df95c98e1c5d.tar.gz
tk-1a64042e82238940c820745c5057df95c98e1c5d.tar.bz2
Removed unnecessary changes in win/tkWinWm.c (these changes pertain to the next steps for full multiscreen support)
-rw-r--r--win/tkWinWm.c44
1 files changed, 0 insertions, 44 deletions
diff --git a/win/tkWinWm.c b/win/tkWinWm.c
index fd5639c..4200251 100644
--- a/win/tkWinWm.c
+++ b/win/tkWinWm.c
@@ -546,12 +546,6 @@ static int WmWithdrawCmd(Tk_Window tkwin,
static void WmUpdateGeom(WmInfo *wmPtr, TkWindow *winPtr);
/*
- * Declarations of static variables used in this file.
- */
-
-static int screenId = -1; /* Used to enumerate monitors */
-
-/*
* Used in BytesPerLine
*/
@@ -7836,44 +7830,6 @@ TopLevelProc(
/*
*----------------------------------------------------------------------
*
- * MonitorEnumProcScreenChanged
- *
- * Monitors enumeration callback. This updates the screen number for
- * the given window. This callback is called once for each monitor.
- *
- * Results:
- * Screen number of the given window is updated.
- *
- * Side effects:
- * The window becomes "linked" to the new screen.
- * All [winfo screenxxx ...] will return information based on the new
- * screen.
- *
- *----------------------------------------------------------------------
- */
-
-BOOL CALLBACK
-MonitorEnumProcScreenChanged(
- HMONITOR hMonitor,
- HDC hdcMonitor,
- LPRECT lprcMonitor,
- LPARAM dwData)
-{
- HMONITOR hMonitorWin;
-
- screenId++;
- hMonitorWin = MonitorFromWindow(Tk_GetHWND(((TkWindow *) dwData)->window),
- MONITOR_DEFAULTTOPRIMARY);
- if (hMonitor == hMonitorWin) {
- ((TkWindow *) dwData)->screenNum = screenId;
- return FALSE;
- }
- return TRUE;
-}
-
-/*
- *----------------------------------------------------------------------
- *
* WmProc --
*
* Callback from Windows whenever an event occurs on the decorative