Questions tagged [window-managers]

A Window Manager is a service on most modern OSes which provides the UI for manipulating the location and sizes of windows.

A Window Manager is a service on most modern operating systems which provides the UI for manipulating the location and sizes of windows. Some go further, and provide the ability to open or close applications, and display applets.

For example, since Vista, Microsoft Windows has used Desktop Window Manager to handle the display and composition of windows.

The many desktop environments available for Unix/Linux, such as GNOME (Mutter) and KDE (KWin), all provide window managers, among other software.

440 questions
4
votes
1 answer

Is there a way to tell if a JFrame is "Maximised" (MS Windows)

I've been Java applications on OS X, and haven't had the opportunity to fully test in different places. There are 2 different JFrames. The second is loaded exactly in place of the first one, and as such needs to have its size and location set to the…
Redandwhite
  • 2,529
  • 4
  • 25
  • 43
4
votes
1 answer

How to get event when new application launches using XCB

I am trying to make a very simple window manager for learning purposes. I am using C and the xcb library. I am trying to get an event raised if a new application is launched. For now, I create a root window where I can receive mouse and keyboard…
Carlito
  • 805
  • 10
  • 20
4
votes
3 answers

Opening sockets to the Xserver directly

I'm looking to understand how Linux Desktop Environments work with Xserver. I was reading that most window managers don't open sockets directly, instead they use either Xlib bindings for which ever language the WM is being written or you can use…
user961559
  • 109
  • 1
  • 3
  • 9
3
votes
1 answer

is it possible to assign a window id when launching a program from shell?

If you do xwininfo it will give you the window id, however, this requires clicking the mouse over a target window. Is there any way to force the window manager, or at least suggest to the window manager, to use a specific id. Something like gedit…
puk
  • 16,318
  • 29
  • 119
  • 199
3
votes
1 answer

Why is XMonad's Prompt not working for me?

So my MWE xmonad.hs is as follows: import XMonad import XMonad.Prompt import XMonad.Prompt.Shell import XMonad.Util.EZConfig myKeys = [ ("M-s", shellPrompt def) , ("M-", spawn "/usr/bin/alacritty") , ("M-q", kill) , ("M1-r", spawn…
jns-v
  • 73
  • 4
3
votes
2 answers

How do I reveal a file as "selected" in *nix from the command line?

Is there a semi-universal mechanism by which to reveal files as selected in various *nix window managers via the command line? For example, in Windows I can say the following: explorer.exe /select,C:\TestDir\TestFile.txt …and Explorer will reveal…
humble_coder
  • 2,777
  • 7
  • 34
  • 46
3
votes
1 answer

Capture Screenshot from another desktop

I have created a second desktop using CreateDesktop and im not switching to it. Also i have created some processes in it like Explorer.exe and Winrar.exe. Next i have a code which takes Screenshot of current desktop to clipboard. Both CreateDesktop…
0_o
  • 570
  • 6
  • 18
3
votes
1 answer

Weird recursive behavior using XCB

I'm exploring creating a window manager using XCB, but I've run into some troubles pretty early on. My code won't even connect to XCB with xcb_connect. I thought it was pretty straightforward, but I'm getting some really strange behavior. My code…
IntrepidPig
  • 110
  • 2
  • 12
3
votes
6 answers

Developing a simple windowed app for Linux

Okay, I'd like to write a simple C app for Linux (say Ubuntu with Gnome) that would do the following: Open a Window Draw something in that window using a main loop, e.g. the current loop number. I don't want to use controls, but to draw directly on…
Albus Dumbledore
  • 12,368
  • 23
  • 64
  • 105
3
votes
1 answer

Programmatically close a window made with `racket/gui` (to stop a `timer%`)

Racket programs that use racket/gui run until all of the windows are closed. This makes it easy to write a program like: #lang racket/gui (define window (new frame% [label "Hello"] [width 100] [height 100])) (send window show #t) And now the…
Leif Andersen
  • 21,580
  • 20
  • 67
  • 100
3
votes
0 answers

How do I draw a pixmap to root window with xcb?

I'm trying to write a window manager with a wallpaper switcher: void smoke_change_background(smoke_wm_state_t *config, char *desktop) { struct smoke_desktop_list_element_t *node = smoke_desktop_list_node(config->tree, desktop); if…
Christopher
  • 639
  • 1
  • 6
  • 14
3
votes
1 answer

Xvfb - start or attach a window manager to xvfb

For testing purpose, I used Xvfb. Today, I want to do some test with wmctrl commmand. I do some test in python like this : display = ":99" pXvfb = subprocess.Popen(["Xvfb", display, "-screen", "0", "1024x768x24"]) # wait that xvfb is…
Emmanuel DUMAS
  • 680
  • 10
  • 25
3
votes
1 answer

How to move window offscreen with wmctrl

I am trying to programmatically move a window so that it is partially on screen. For instance, clicking the VLC title bar and dragging it so that only half the window is visible works just fine. When I output the results of wmctrl -lG this works…
John
  • 405
  • 4
  • 19
3
votes
3 answers

Xorg loading an image

I'm starting to code up my own window manager, and was wondering how to use the xorg api to get from raw image data ( such as the data given by libpng ), into an Xorg Pixmap or something drawable by Xorg?
DavidG
  • 1,796
  • 4
  • 21
  • 33
3
votes
1 answer

XLib application not redrawing unless resized

So, I have an application in C++ that uses XLib. In it, i access the date and time using the ctime library, and in the Expose event, create a string from that and put it in the window, centered. My problem is that, The time only updates when it is…
Alexis Dumas
  • 1,299
  • 11
  • 30