This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/SFML/Window/Unix/WindowImplX11.cpp b/src/SFML/Window/Unix/WindowImplX11.cpp | |
index 5712f04b..ed7c201d 100644 | |
--- a/src/SFML/Window/Unix/WindowImplX11.cpp | |
+++ b/src/SFML/Window/Unix/WindowImplX11.cpp | |
@@ -66,6 +66,8 @@ namespace | |
sf::Mutex allWindowsMutex; | |
sf::String windowManagerName; | |
+ sf::String wmAbsPosGood[] = { "Enlightenment", "FVWM", "i3" }; | |
+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <SFML/Window.hpp> | |
#include <iostream> | |
void printPosition(sf::Window &window); | |
void printSize(sf::Window &window); | |
void printPosition(sf::Window &window) { | |
const sf::Vector2i currPos = window.getPosition(); | |
std::cout << "Pos x: " << currPos.x << " - y: " << currPos.y << std::endl; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdlib.h> | |
#include <stdbool.h> | |
#include <stdio.h> | |
#include <stdint.h> | |
#include <stdatomic.h> | |
#include <libusb-1.0/libusb.h> | |
#define VID 0x152A | |
#define PID 0x841B | |
#define UEP 0x82 |