How change the main window position?

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
luzy080
Level 1
Level 1
Posts: 7
Joined: Tue Mar 31, 2009 2:40 am

How change the main window position?

Post by luzy080 »

Hello everyone,i use the new version 1.1.17 of wine. I can't move the main window.I can use cmd: wine explorer /desktop=1,HeightxHeigh winecfg.exe to change desktop size. but i want to change the main window position.
I try to use winecfg to configure,and donwload the source to modify the window.c and desktop.c. Lost.
Can you help me? Thanks!
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: How change the main window position?

Post by vitamin »

luzy080 wrote:Hello everyone,i use the new version 1.1.17 of wine. I can't move the main window.
Sounds like problem with your window manager not Wine.
luzy080
Level 1
Level 1
Posts: 7
Joined: Tue Mar 31, 2009 2:40 am

Re: How change the main window position?

Post by luzy080 »

I'm sorry not express the problem. I can move the desktop through mouse. But I want to use source code to control the wine Virtual Desktop.
Sounds like problem with your window manager not Wine.
Should I find out the point is window manager not Wine?
luzy080
Level 1
Level 1
Posts: 7
Joined: Tue Mar 31, 2009 2:40 am

Post by luzy080 »

Continue to pay attention to this issue
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: How change the main window position?

Post by vitamin »

luzy080 wrote:But I want to use source code to control the wine Virtual Desktop.
From inside Wine? You can't.
jorl17
Level 5
Level 5
Posts: 365
Joined: Mon Jul 28, 2008 6:44 pm

Post by jorl17 »

I think he means that he wants to set the window position when creating the Virtual Desktop. If there isn't such an option (sorry, but I do not know), you could try to dig through Wine's code and that's probably a one-line change in terms of positioning, while adding the switch code is something larger.

Cheers,

Jorl17
James McKenzie

How change the main window position?

Post by James McKenzie »

vitamin wrote:
luzy080 wrote:
But I want to use source code to control the wine Virtual Desktop.
From inside Wine? You can't.
Talk to your Linux Distro folks. Vitamin is correct, Wine cannot change
the position of the Virtual Desktop as it is an X process and X sets
where the window goes.

James McKenzie
luzy080
Level 1
Level 1
Posts: 7
Joined: Tue Mar 31, 2009 2:40 am

Post by luzy080 »

Thank you for your help!
I want to achieve this function is a bit difficult.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

luzy080 wrote:Thank you for your help!
I want to achieve this function is a bit difficult.
What exactly do you want to do? And from where? You haven't clearly stated any of that.
luzy080
Level 1
Level 1
Posts: 7
Joined: Tue Mar 31, 2009 2:40 am

Post by luzy080 »

Hi vitamin
What exactly do you want to do? And from where? You haven't clearly stated any of that.
My request is simple. Procedures to control my PPT to play in any position.I run PPTVIEW.exe in wine.But PPTVIEW.exe is a full-screen playback.So I can only be used to control the position of wine.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

luzy080 wrote:Procedures to control my PPT to play in any position.
Control how? What you sending it WM_MOUSEDOWN / WM_MOUSEUP events?
luzy080
Level 1
Level 1
Posts: 7
Joined: Tue Mar 31, 2009 2:40 am

Post by luzy080 »

Control how? What you sending it WM_MOUSEDOWN / WM_MOUSEUP events?
This is what I would like to know the answer.At first I thought that wine can use the command line to achieve.Now know that the point of death.By WM_MOUSEDOWN / WM_MOUSEUP events to achieve is a very painful thing.So I have no clue what to do
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

luzy080 wrote:So I have no clue what to do
Same as you would do on windows.
Locked