Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions graf2d/win32gdk/src/TGWin32.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -2110,6 +2110,10 @@ void TGWin32::MoveWindow(Int_t wid, Int_t x, Int_t y)
gTws = fWindows[wid].get();
if (!gTws->open) return;

// prevent hiding the titlebar
if (x == 0 && y == 0) {
x = 1; y = 1;
}
gdk_window_move((GdkDrawable *) gTws->window, x, y);
}

Expand Down Expand Up @@ -4809,6 +4813,10 @@ void TGWin32::MoveWindow(Window_t id, Int_t x, Int_t y)
{
if (!id) return;

// prevent hiding the titlebar
if (x == 0 && y == 0) {
x = 1; y = 1;
}
gdk_window_move((GdkDrawable *) id, x, y);
}

Expand All @@ -4820,6 +4828,10 @@ void TGWin32::MoveResizeWindow(Window_t id, Int_t x, Int_t y, UInt_t w,
{
if (!id) return;

// prevent hiding the titlebar
if (x == 0 && y == 0) {
x = 1; y = 1;
}
gdk_window_move_resize((GdkWindow *) id, x, y, w, h);
}

Expand Down Expand Up @@ -6668,6 +6680,10 @@ void TGWin32::SetWMPosition(Window_t id, Int_t x, Int_t y)
{
if (!id) return;

// prevent hiding the titlebar
if (x == 0 && y == 0) {
x = 1; y = 1;
}
gdk_window_move((GdkDrawable *) id, x, y);
}

Expand Down