The i3 FAQ has migrated to https://github.com/i3/i3/discussions. All content here is read-only.
Ask Your Question
0

Can i prevent programs from resizing windows ?f

asked 2015-04-11 20:37:41 +0000

cancarne gravatar image

I would like to prevent any programs from resizing windows in which they are opened. For instance, if i click fullscreen buttion in vlc media player, it indeed plays in fullscreen, but i want it to only fill its window, and let ME set the window to fullscreen using apropriate shortcut.

Same thing happens if i click fullscreen in flash player (youtube for instance)

This is especially anoying when i put some program in scratch pad, and set its dimensions using shortcut keys, only to find out later that it resized itself somehow. For instance, put vlc in scratch pad, and set the small window size and put it in the corner of your screen. Now click the fullscreen button inside vlc, as if you wanted to see something in fullscreen temporary. When you exit the fullscreen size and position of scratchpad you set are completely messed up.

So i would like to be the only one around who can change existing window dimensions ;)

Thanks in advance

edit retag flag offensive close merge delete

Comments

I've got the same problem, for instance with Firefox that can't be "fullscreen" inside its i3 window box (to get rid of the toolbar for instance). Likewise, flash is bad at getting the full size of the screen. With multiple screen, it's often messed up.

kevin gravatar imagekevin ( 2015-04-17 09:36:47 +0000 )edit

1 answer

Sort by » oldest newest most voted
0

answered 2015-04-11 21:04:01 +0000

Airblader gravatar image

updated 2015-04-11 21:09:26 +0000

Airblader gravatar image

No, this is not possible. And it would not be compliant with the specification:

http://standards.freedesktop.org/wm-s...:

_NET_WM_STATE_FULLSCREEN indicates that the window should fill the entire screen and have no window decorations.

Although I totally get why you'd want it. I found myself thinking about this before, especially for the Youtube scenario.

As for your VLC example, I frankly don't understand it at all. How do you click buttons on a window that is in the scratchpad? Can you elaborate more what exactly you do and how it is messed up? The above specification goes on with

Additionally the Window Manager is responsible for restoring the original geometry after a switch from fullscreen back to normal window. For example, a presentation program would use this hint.

… so if the geometry is messed up when leaving fullscreen, it could be a bug.

edit flag offensive delete link more

Comments

Ok, i mentioned clicking a button in vlc. I actualy set up a vlc shortcut keyboard 'u' to toggle fullscreen, but mentioned the button not to be confused with i3 shortcuts. So again, 'u' is only binded in vlc and only works when vlc is active window, and has nothing to do with i3 configuration. Here is how to recreate the "mess up" : 1) open a blank desktop 2) open vlc, so that it is the only program on the screen and fills it up 3) now toggle vlc fullscreen (i press 'u', or someone clicks button) 4) now while vlc is fullscreen, move it to scratchpad 5) now vlc is in scratchpad, and it can be shown/hidden perfectly. since it is fullscreen in scratchpad, it fills it very nicely. 6) but if i press 'u' again while scratchpad is focused, to exit the fullscreen mode so that i ...(more)

cancarne gravatar imagecancarne ( 2015-04-11 22:13:04 +0000 )edit

I guess this has to do with the fact that i3 floats all windows in the scratchpad. Since VLC is doing the fullscreen resize, it will stay "fullscreen" even after disabling it because that's now just the size of the container. I think both i3 and VLC behave as expected here.

airblader gravatar imageairblader ( 2015-04-11 22:55:37 +0000 )edit

Ok, but when you exit "fullscreen" in VLC itself (not i3), then vlc resizes the container back to the size it was, just before it entered fullscreen mode, instead of just filling the current container size. That's what this is all about. And in the steps i described above, it resizes the floating container almost to the size of the entire screen, which makes no sense to me

cancarne gravatar imagecancarne ( 2015-04-11 23:54:44 +0000 )edit

So I tried to reproduce this with the given steps, but the only thing that happens to me is that when I exit fullscreen, the controls bar is at the bottom of the screen rather than at the bottom of the main VLC window. Can you maybe make a screenshot of what it looks like for you?

airblader gravatar imageairblader ( 2015-04-12 15:10:23 +0000 )edit

http://imgur.com/a/617W1 I think there have been some misunderstanding, because we are mixing 2 different scenarios : when VLC enters fullscreen itself, or when i3 fullscreen-s some container. Anyway, here are the explainations : 1. image - i opened blank empty workspace 2. image - i start vlc and play some media in it (notice it is not i3 fullscreened, i removed the header and have green 1 pixel bounds) 3. image - i either doubleclick the vlc, or press my 'u' shortcut, or click the fullscreen button inside the VLC (note: this is VLC fullscreen-ing, not i3 when you use i3 shortcut). Now while VLC is fullscreen, i move it to scratchpad. 4. image - VLC is moved to scratchpad and empty workspace is shown again. Now i show the scratchpad using aprotiate i3 shortcut 5. image - Scratchpad is shown, with VLC filling it. Now i want to see media name in ...(more)

cancarne gravatar imagecancarne ( 2015-04-12 19:18:53 +0000 )edit

Question Tools

Stats

Asked: 2015-04-11 20:37:41 +0000

Seen: 343 times

Last updated: Apr 11